2
votes

Using CKEditor 4.x's inline editing feature (using the contenteditable attribute), how do you edit source HTML when you need to do something like paste in a YouTube embed snippet?

It seems like there should be a way to click on an edit source button and have the source appear in a dialog box or something. Overall, the inline editing is great, but sometimes I need to edit/paste HTML.

1

1 Answers

3
votes

Source Dialog plugin is available since CKEditor 4.1 and maintained by the core team. I believe this is what you need:

config.extraPlugins = 'sourcedialog';

More about editing source in CKEditor.