Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

HtmlEditorField is initialized multiple times


Go to End


3 Posts   1312 Views

Avatar
wee-man

Community Member, 21 Posts

5 December 2012 at 7:50am

Hello,
I'm trying to get the HtmlEditorField working. Now I'm at the point that the field is displayed correctly. But when posting a Form the field value is the old one. The problem is that the TinyMCE is initialized multiple times (see screenshot with firebug examination of tinyMCE.EditorManager.editors).

Does anyone have an idea why this happens?

Thanks and Greetings
Michael

Attached Files
Avatar
wee-man

Community Member, 21 Posts

5 December 2012 at 8:12am

Edited: 05/12/2012 8:12am

I found that tinyMCE is once initializes by HtmlEditorField.js and once by the tinyMCE JavaScript. Any idea why both initialize tinyMCE? In the CMS the files are included too and the tinyMCE fields are initialized only once.

Avatar
wee-man

Community Member, 21 Posts

5 December 2012 at 8:52am

I opened a ticket for that http://open.silverstripe.org/ticket/8069