Embedding Monklets using TinyMCE

Just a quick tip that I came across recently. TinyMCE will wrap any text in a paragraph tag by default, which can be problematic if you are including a Monklet call. For example, when inserting a Gallery Monklet call into a Page I don’t want my whole Monklet code block to be wrapped in p tags.

What I do is simply select the whole Monklet call and then choose “Div” from the formatting dropdown. It wraps the code block in a generic, harmless div and all is well.

Luke Simpson
Monk Development

That is a good tip. I had to resort to that sometimes with images getting wrapped in the paragraph tag but needing to float the image but not the paragraph. Thanks Luke.

page 1 of 1

discussions 1 to 2 of 2