I want to add my own control to tinymce editor (for example <editable />
).
This control must display form like:
<div class="editable">
<label>Test<input type="text" /></label>
<label>Test2<input type="text" /></label>
</div>
No problems for now. I can do that. But I need to make it readonly (no problems with it as well - using noneditable plugin)
My problem is:
if user press "Edit HTML Source", I must display <editable />
element only (without labels and textboxes).
I don't know if it is possible, but looking to the Embeded Media
element -
it shows image in editor, but replace it with iframe in HTML Source.