Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

The Products.TinyMCE add editor in divs that have the same id of a field rich. #96

Open
idgserpro opened this issue May 14, 2015 · 1 comment

Comments

@idgserpro
Copy link

If coincidentally, a field rich has the same id that a div in layout, the Products.TinyMCE add the editor to this div.

selecao_010

@idgserpro
Copy link
Author

To simulate this error, customize the main_template and add a div with id 'text' in the portal header. Then edit a Page.

The problem is that the tinymce use only the id of the element to decide which element to add the editor. So it adds the editor on the first element has that id. Including the new version of tinymce is also like that.

My suggestion is remove the id of the textarea with javascript, if there is an element on the screen with the same id. When the element has no id, the tinymce creates a unique id for him. This could be done here. I tested it and it worked! I can not fix because I don't have Contributors Agreement. Anyone can fix it?

@garbas @tomgross @domenkozar @davisagli @malthe @pbauer any idea?

@hvelarde @ericof could you refer someone to fix it? This occurs in brasil.gov.portal + Products.EasyNewsletter.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant