<![CDATA[ TinyMCE/MODx adds BR after content - My Forums]]> https://forums.modx.com/thread/?thread=89374 <![CDATA[Re: TinyMCE/MODx adds BR after content]]> https://forums.modx.com/thread/89374/tinymce-adds-after-content#dis-post-491536
[[+content:limit=`800`]]


instead of

[[+content:ellipsis=`800`]]


This prevents me from the strange and unwanted < / b r > 's]]>
profilneurotiker Mar 01, 2014, 09:00 AM https://forums.modx.com/thread/89374/tinymce-adds-after-content#dis-post-491536
<![CDATA[Re: TinyMCE adds BR after content]]> https://forums.modx.com/thread/89374/tinymce-adds-after-content#dis-post-491533
I did some further research and tried to deinstall the TinyMCE once again, but there was still the TinyMCE in the Elements>Plugin...so I deleted this manually like posted in this thread: http://forums.modx.com/thread/80848/tinymce-uninstall-issue

Sounds like the plugin wasn't removed?

Can you check under Elements > Plugins if TinyMCE is still there? If it is, go ahead and remove (or deactivate) it and that should sort out your issue. If it indeed wasn't removed, that's a very good bug report for https://github.com/splittingred/TinyMCE/issues

So this finally seemed to completely delete the TinyMCE. If I want to edit a resource I see the html-source-code like it should be:

<h3>HEADLINE</h3>
 
<p>Text</p>
<p> </p>
<p><LOREM<br /></strong>IPSUM<br />DOLORES</p>
<p> </p>
<p><strong>LOREM</strong><br />IPSUM<br />DOLORES</p>
<p> </p>
<p>LOREM<br />IPSUM</p>


But in the Front-End the html-output is again with the totally wrong < / b r > , even WITHOUT TinyMCE...

<h3>HEADLINE</h3>
 
<p>Text</p>
<p> </p>
<p><LOREM<br /></strong>IPSUM<br />DOLORES</p>
<p> </p>
<p><strong>LOREM</strong><br />IPSUM<br />DOLORES</p>
<p> </p>
<p>LOREM<br />IPSUM</p></br></br></br></br></br>


Furthermore I tried to create a new Resource and added some text like this

<p>sdfdsf</p>
<p>dsf</p>
<p>dsf</p>
<p>sdf</p>


With this resource the html-output is the same, but it looks like there are < b r / >'s instead of <p>'s, so it's only a line-break instead of a "double-line-break" as it should be by using <p>. To get it look like it is a normal <p>-souble-line-break I have to add another <p> </p>...strangewise the old resources don't get affected by this, they are displayed correctly...

I'm totally confused?!

EDIT: further testing with an added < b r / >

<p>sdfdsf<br />123</p>
<p> </p>
<p>dsf</p>
<p>dsf</p>
<p>sdf</p>


HTML-OUTPUT:

<p>sdfdsf<br />123</p>
<p> </p>
<p>dsf</p>
<p>dsf</p>
<p>sdf</p></br>


This gets added after each resources that gets displayed via getPage/getResources:

[[!getPage?
   &elementClass=`modSnippet`
   &element=`getResources`
   &parents=`8,4`
   &limit=`7`
   &pageVarKey=`page`
   &includeTVs=`1`
   &processTVs=`1` 
   &includeContent=`1`
   &tpl=`Artikel-Start` 
   &tplOdd=`Artikel-rechts-Start`
]]


This is the chunk:

<div class="ContentBlock">
<div>
[[+tv.YOUTUBE:notempty=`<span id="vid"><iframe width="480" height="320" src="[[+tv.YOUTUBE]]?wmode=transparent"></iframe></span>`]]
</div>

<div>
<span class="kategorielink"><a href="[[~[[+parent]]]]">[[getResourceField ? &id=`[[+parent]]` &field=`pagetitle`]]</a></span>

<h3>[[+pagetitle]]<br /><span>[[+longtitle]]</span></h3>

[[+content:ellipsis=`800`]]
[[+content:len:gt=`800`:then=`<a class="fancybox link" href="#inline">read more...</a>
<div id="inline" style="display:none;padding:1em;width:500px;">
[[+imagelist]]	
[[+tv.YOUTUBE:notempty=`<span id="vid"><iframe width="480" height="320" src="[[+tv.YOUTUBE]]?wmode=transparent"></iframe></span>`]]
</div>`]]

</div>

</div>	


So those strange < / b r >'s get displayed after each

[[+content:ellipsis=`800`]]


Right now i tried to use only

[[+content]]


and this seems to NOT add any wrong < / b r > 's! So it has to do with the ellipsis i guess?]]>
profilneurotiker Mar 01, 2014, 07:29 AM https://forums.modx.com/thread/89374/tinymce-adds-after-content#dis-post-491533
<![CDATA[Re: TinyMCE adds BR after content]]> https://forums.modx.com/thread/89374/tinymce-adds-after-content#dis-post-491513
It does insist on converting a legal with HTML5 br without the / to the XHTML version though.]]>
sottwell Feb 28, 2014, 11:01 PM https://forums.modx.com/thread/89374/tinymce-adds-after-content#dis-post-491513
<![CDATA[TinyMCE/MODx adds BR after content]]> https://forums.modx.com/thread/89374/tinymce-adds-after-content#dis-post-491506
In MODx Revo 2.2.12 I use TinyMCE 4.3.3. and suddenly it adds a
[b]</br>[/b]
for each
[b]<br />[/b
]

I used in the content at the end, so the output looks like this:

<h3>HEADLINE</h3>

<p>Text</p>
<p> </p>
<p><LOREM<br /></strong>IPSUM<br />DOLORES</p>
<p> </p>
<p><strong>LOREM</strong><br />IPSUM<br />DOLORES</p>
<p> </p>
<p>LOREM<br />IPSUM</p></br></br></br></br></br>


I found this post: forums.modx.com/thread/73070/tinymce-keeps-adding-br-tags-in-revo-2-2pl

the only solution that worked for us was to uninstall and remove the Tiny MCE totally form the system.
empty cache
and then reinstall the plugin.
So its a solution, but not a very nice one

but this didn't work for me.

Does anyone else experience this problem?

EDIT2: Headline edited]]>
profilneurotiker Feb 28, 2014, 07:46 PM https://forums.modx.com/thread/89374/tinymce-adds-after-content#dis-post-491506