File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
lib/web/mage/adminhtml/wysiwyg/tiny_mce Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ define([
101
101
magentoPluginsOptions : magentoPluginsOptions ,
102
102
doctype : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' ,
103
103
setup : function ( ed ) {
104
+ ed . onPreInit . add ( self . onEditorPreInit . bind ( self ) ) ;
105
+
104
106
ed . onInit . add ( self . onEditorInit . bind ( self ) ) ;
105
107
106
108
ed . onSubmit . add ( function ( ed , e ) {
@@ -285,10 +287,18 @@ define([
285
287
}
286
288
} ,
287
289
288
- onEditorInit : function ( editor ) {
290
+ /**
291
+ * Editor pre-initialise event handler.
292
+ */
293
+ onEditorPreInit : function ( editor ) {
289
294
this . applySchema ( editor ) ;
290
295
} ,
291
296
297
+ /**
298
+ * @deprecated
299
+ */
300
+ onEditorInit : function ( ) { } ,
301
+
292
302
onFormValidation : function ( ) {
293
303
if ( tinyMCE . get ( this . id ) ) {
294
304
$ ( this . id ) . value = tinyMCE . get ( this . id ) . getContent ( ) ;
You can’t perform that action at this time.
0 commit comments