javascript - Preserve content within iframe after drag and drop - TinyMCE -
i trying work tinymce big professional project working on. in 1 spot need have multiple instances in table rows draggable. however, when begin dragging 1 of rows content in tinymce iframe (whether loaded page or altered user) disappears. 1 time drop row content still gone re-appears upon page refresh/reload. there way tinymce iframe preserve content without needing page reload? have illustration here:
http://cmzmedia.com/tinymce/examples/simple.html
i can't in jsfiddle because if there , refresh page starts origin again.
or perhaps there way dragged-and-dropped iframe reloaded?
since editor beingness re-rendered on drag , drop, think should set content manually yourself.
you should first grab contents of editor beingness dragged , restore after drop.
to access specific editor can utilize tinymce.get('myiframe')
, , there should getcontent
, setcontent
function on returning editor object gain access editors content.
javascript jquery html dom tinymce
No comments:
Post a Comment