TinyMCE - adding grids that are editable without the tags disappearing -
i have added custom set of buttons adding simple grids editor. these have following structure;
<div class="grid"> <div class="col-1-2"><p>column 1</p></div> <div class="col-1-2"><p>column 2</p></div> </div>
a custom css assigned displays grids correctly. user goes edit text..understandably deleting or highlighting , trying replace, tinymce removes empty tags if user deletes text column 1 end this;
<div class="grid">my new text<br /> <div class="col-1-2"><p>column 2</p></div> </div>
i have tried adding;
extended_valid_elements : 'div[id|class|style]'
but had no effect.
how can stop tinymce removing these empty tags or going wrong way..?
thanks
Comments
Post a Comment