mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1144 from silverstripe-droptables/os8222
BUG Flush editors on form submission (os#8222)
This commit is contained in:
commit
c72ba4ecfb
@ -290,6 +290,16 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
|||||||
this._super();
|
this._super();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make sure the editor has flushed all it's buffers before the form is submitted.
|
||||||
|
*/
|
||||||
|
'from .cms-edit-form': {
|
||||||
|
onbeforesubmitform: function(e) {
|
||||||
|
this.getEditor().save();
|
||||||
|
this._super();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
oneditorinit: function() {
|
oneditorinit: function() {
|
||||||
// Delayed show because TinyMCE calls hide() via setTimeout on removing an element,
|
// Delayed show because TinyMCE calls hide() via setTimeout on removing an element,
|
||||||
// which is called in quick succession with adding a new editor after ajax loading new markup
|
// which is called in quick succession with adding a new editor after ajax loading new markup
|
||||||
|
Loading…
Reference in New Issue
Block a user