ui-tinymce icon indicating copy to clipboard operation
ui-tinymce copied to clipboard

Model is not saved after inserting images with native image plugin

Open rbecheras opened this issue 10 years ago • 6 comments

rbecheras avatar Jan 11 '16 17:01 rbecheras

Can you please add a plunker reproducing the issue so we can take a closer look at it?

deeg avatar Jan 11 '16 17:01 deeg

Adding an image via the native image plugin should fire a changed event.

See this plunker. The model seems to update for me when I insert an image.

Can you explain when SetContent is needed?

deeg avatar Feb 16 '16 00:02 deeg

Similar problem here.

After setContent the dirty state remains false, which blocks content update in ui-tinymce. My solution is:

editor.setContent(...);
editor.setDirty(true);
editor.fire('change');

gera2ld avatar Jun 03 '16 02:06 gera2ld

Oh, thanks for this notice @gera2ld , I didn't see that point before. I think this is a great clue to correctly resolve the issue. I'll look at that again in detail shortly.

rbecheras avatar Jun 03 '16 07:06 rbecheras

Thanks @gera2ld that was a big help!

ashxerion avatar Nov 04 '16 14:11 ashxerion

likewise thanks @gera2ld :)

garyfagan avatar Mar 15 '17 16:03 garyfagan