Foren

Problem with table width percentage and TinyMCE

thumbnail
Aritz Galdos, geändert vor 14 Jahren.

Problem with table width percentage and TinyMCE

Expert Beiträge: 416 Beitrittsdatum: 15.05.07 Neueste Beiträge
Hi;

I am facing the next problem. I have some liferay articles, in wich html code, there are defined some tables. The widht of this tables is specified by percentage symbol, e.j width=100%

Whe edititng the content for the first time, tinyMCE shows the content correctly but when saving (or save and continue or save and approve) and the date is reloaded, the tinyMCE editor shows nothing.

It seems to be a kind of bug of TinyMCE

The version of Liferay I am using is 5.1.2 with its defaut tinyMCE editor.

any known issue about this?

Thanks in advance!
Jack Daniels, geändert vor 12 Jahren.

RE: Problem with table width percentage and TinyMCE

New Member Beiträge: 19 Beitrittsdatum: 17.05.10 Neueste Beiträge
I know this post is old...but was wondering if you ever solved this issue?

Thanks.
Jack Daniels, geändert vor 12 Jahren.

RE: Problem with table width percentage and TinyMCE

New Member Beiträge: 19 Beitrittsdatum: 17.05.10 Neueste Beiträge
I think I found the solution proposed in the related forum post. It essentially suggest modifying the /html/js/editor/tinymce.jsp file; changing the member init function from:

value = decodeURIComponentvalue);


to

value = decodeURIComponent(escape(value));


This will ensure that characters such as % which could trip up the editor initialization, would be safely encoded prior to load.

Hope this is helpful for someone out there.

Cheers.