angular-ui / ui-tinymce

AngularUI wrapper for TinyMCE
MIT License
488 stars 370 forks source link

Adding iframe via source results in <img> #140

Closed ddalcu closed 9 years ago

ddalcu commented 9 years ago

It seems the output of TinyMCE to angularjs view module is the WYSYWYG html instead of the source html.

When embedding a iframe, the output results in a instead of the actual iframe.

ddalcu commented 9 years ago

Fixed it on my side by not setting the format:raw option. var content = editor.getContent({format: options.format}).trim(); //options.format is defaulted to 'raw' to var content = editor.getContent();

ghost commented 9 years ago

Thanks ddalcu for the WORK-AROUND. I am gonna open an issue

deeg commented 9 years ago

Closing this as a duplicate of #163. Will take care of it there.