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.

Form Questions /

HtmlEditorField is initialized multiple times


Reply


3 Posts   481 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