1779 Posts in 582 Topics by 556 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 222 Views |
-
How to use the HtmlEditorField like in the CMS?

2 December 2012 at 1:59am
Hello,
does anyone have an example how to use the HtmlEditorField like in the CMS? What are the requirements and how is the field defined and initialized?
Thanks and Greetings
Michael -
Re: How to use the HtmlEditorField like in the CMS?

2 December 2012 at 5:15pm
Create an HtmlEditorField in your form and that should include all the javascript required for the field (at least in 2.4 it does).
http://api.silverstripe.org/3.0/forms/fields-formattedinput/HtmlEditorField.html
-
Re: How to use the HtmlEditorField like in the CMS?

5 December 2012 at 6:34am
Since I'm Ajax loading the form fields the trick was to require the JS files at initial page load and reinitialize the html editor fields after a complete Ajax call.
| 222 Views | ||
|
Page:
1
|
Go to Top |


