Page 1 of 1

TinyMCE difference with version 2.7.5.2

Posted: 17 Oct 2011, 13:45
by dirceulima
Hello everyone!

Today i've found something different between versions 2.7.5.1 and 2.7.5.2.

Here one Html code:
Code
<p>teste</p><ul><li>a</li><li>b</li><li>c</li><li>e</li></ul>
Looking into version 5.1:
Image

But when i try paste the same Html code, TinyMCE save with Html structure / spaces:
Code
<p>teste</p>
<ul>
<li>a</li>
<li>b</li>
<li>c</li>
<li>e</li>
</ul>
And final result with version 5.2:
Image

Into README file, TinyMCE was updated right? how we can solve this?

Thanks

Re: TinyMCE difference with version 2.7.5.2

Posted: 19 Oct 2011, 03:05
by mjau-mjau
That's because it reads your code with invisible line-breaks (because they are in fact invisible line-breaks) and so outputs them as line-breaks also. You may need to remove line breaks and paste the code like this:
Code
<p>teste</p><ul><li>a</li><li>b</li><li>c</li><li>e</li></ul>

Re: TinyMCE difference with version 2.7.5.2

Posted: 20 Oct 2011, 16:50
by dirceulima
Hello,

I tried this... but at the moment to save TinyMCE changes with Html structure / spaces:
Code
<p>teste</p>
<ul>
<li>a</li>
<li>b</li>
<li>c</li>
<li>e</li>
</ul>
mjau-mjau wrote:That's because it reads your code with invisible line-breaks (because they are in fact invisible line-breaks) and so outputs them as line-breaks also. You may need to remove line breaks and paste the code like this:
Code
<p>teste</p><ul><li>a</li><li>b</li><li>c</li><li>e</li></ul>

This doen't happened with version 2.7.5.1, only with this new version as i said.

Re: TinyMCE difference with version 2.7.5.2

Posted: 20 Oct 2011, 16:55
by dirceulima
Her dear friend, you can make a test:

Gallery example:
- http://SOLVED

Test page:
- http://SOLVED

Admin page:
- http://SOLVED

User: admin
Pass: admin

Try to do what you said, you will see that TinyMCE will change with Html structure / spaces.

Thanks

Re: TinyMCE difference with version 2.7.5.2

Posted: 25 Oct 2011, 11:47
by Nick
I am not quite sure how did it happen and what was there before, but it is actually spaces between the list items that break the flow.

Anyway you will be glad to know that the next update will fix this problem, we are just stripping extra whitespace between tags now.

Re: TinyMCE difference with version 2.7.5.2

Posted: 28 Oct 2011, 07:35
by dirceulima
Hi

Could you tell me how can i fix this into my version 2.7.5.2? I've tried use new version of TinyMCE but didn't work.

I have several changes into our version...

Thanks

Re: TinyMCE difference with version 2.7.5.2

Posted: 28 Oct 2011, 10:30
by Nick
You can replace /iv-includes/controllers/XmlController.php with the one from the current release, it should fix that.