json-editor icon indicating copy to clipboard operation
json-editor copied to clipboard

SCEditor bug with Move down/up buttons or Property Add

Open jbmolle opened this issue 7 years ago • 1 comments

Hi, I'm using the SCEditor plugin and when I click on Move up / down or Property Add buttons the texts in SCEditor disappear. If I switch the SCEditor to source code, I can see the sources. But the WYSIWYG text is blank. Best, JB

jbmolle avatar Mar 31 '17 11:03 jbmolle

Root cause is SCEditor uses iframe and json-editor moves field DOM subtrees during object property change to accommodate property ordering. Content inside iframe is lost during the move due to iframe sandbox scoping constraint. A workaround is switching to summernote with my working fork based on pr #440, which contains some bugs perhaps due to relying on an older version of summernote api. Related discussion on so

f-w avatar Nov 16 '17 23:11 f-w