Selaa lähdekoodia

:bug: fix TinyMCE 插入视频,保存时,会将TinyMCE占位图代码保存下来

xiao5 4 vuotta sitten
vanhempi
commit
3ec84d370d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/Form/Field/Editor.php

+ 1 - 1
src/Form/Field/Editor.php

@@ -163,7 +163,7 @@ class Editor extends Field
         return <<<JS
 function (editor) {
     editor.on('Change', function(e) {
-        var content = e.getContent();
+        var content = e.target.getContent();
         if (! content) {
             content = e.level.fragments;
             content = content.length && content.join('');