Tag Archives: TinyMCE

Inserting content into TinyMCE

When developing a plugin for TinyMCE, you often need to insert content into the document. In most cases, this content is at the current cursor position, or selection. But what if you want to enter the content at the beginning or end of the document, irrelevant of the current cursor position?

Continue reading

If you can’t say something constructive…

For the last 6 months I've been contributing to the TinyMCE forums. In this time I've noticed a couple of disturbing trends, one of which became quite evident in a recent members post to a very old thread.

From time to time people will ask questions about how to make TinyMCE do something that it's not really designed to do. This is mostly to output non-standard HTML and is usually due to the "client requirements". The most common one is the use of <BR> tags instead of <P> tags.

I'm not going to join into the argument of using <P> tags as a good friend and colleague posted a great round up of the importance of P tags already. What I'm interested in, is the way people respond both in terms of the initial question, and the followup responses.

Continue reading