Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a rather annoying problem. Every time I publish or preview the content from an Rich Text Editor(TinyMCE) it adds two <br /> tags after every <p> section. And I can't seem to make it stop, I've tried all the TinyMCE configurations I could find on TinyMCEs developer page. Everything looks fine in editor mode, and also in the html in editor mode.
I am testing this in IE9, but have also tried in Chrome, with the same result.
Has anyone encounted the same problem, and know how to fix it?
On an sidenote:
When I add these to the TinyMCE configuration - which makes the enter key add an <br> instead of an <p> tag.
<config key="force_p_newlines">false</config><config key="force_br_newlines">true</config><config key="forced_root_block">false</config>
Very strange. When you're in the RTE do you press enter when going to a new line or shift-enter? The last one will generate a <br/>.
It doesn't matter which I press, the result is the same.. Or almost, it seems that the output is _always_ two <br> tags.
1: If i use 'enter', and adds an <p> tag, it adds two <br> tags to the output.2: If i use 'shift+enter', and adds an <br> tag, it only adds one extra <br> tag to the out.
Still everything looks fine the editor mode, and in html mode inside the editor, there are no <br> tags between the <p> tags, these are only added on the output. And if I reload the editor, they are still not there in editor mode, so they aren't stacking either.
I know this is old, but one of my team came across a very similar problem. In the end it was caused by how the field was being output on the page.
The pagefield was being inserted as <umbraco:Item field="content" stripParagraph="true" convertLineBreaks="true" runat="server" /> whereas what it needed to be inserted as was <umbraco:Item field="content" runat="server" />.
Did you ever get this resolved? I am having the same issue.
If I copy and paste plain text out of notepad into the RTE instead of separating the paragraphs with
it separates them with .
I tried all the config settings as other posts suggest and no effect
I finally figured this out with a little help from another post I found. Well for Umbraco 7.6 which I am guessing is different from when this post was initially created.
Here is the new setup for the config/tinyMceConfig.config file which works for me. It also cleans up the nasty html formatting when copy and pasting from Microsoft Word.
<!-- <config key="myKey">mySetting</config>-->
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted