-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
2.7.6, 2.8.4
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
Sometimes it is useful to access Editor instance using javascript.
For instance, when content of Editor needs to be cleaned or filled using pre-defined template.
I suggest adding Editor instance to relevant textarea as one of data attribute:
this.textarea.setData('Editor', this);
In this case Editor instance can be accessed by:
Y.one('#textareaid').getData('Editor')
and perform required action like cleanEditorHTML or updateFromTextArea
- has a non-specific relationship to
-
MDL-45787 Create Editor Manager
- Open