tags:

views:

456

answers:

3

I have a suite of custom tags in my application that abstract some of the common system tasks.

I am using TinyMCE as my HTML editor, and want to be able to render my custom tag as an image in the editor when in the WYSIWYG view. Similar to TinyMCE's built-in behaviour for SWF files.

Is there an easy way to do this in TinyMCE?

UPDATE:

It seems that custom tags barely work in TinyMCE at all. Some of the problem seems to be that face that my tags are namespaced:

<o:some_tag />

Which is causing all sorts of issues.

Is there a editor that supports this kind of functionality better?

+1  A: 

Unfortunately there is no easy way. Tinymce supports "extended_valid_elements" property . However as you want to render this custom tag as an image, all you can do is to create a custom plugin for your task

Tinku
Also you can use standard plugins such as advhr as a reference.
Sam Dark
A: 

Try same code like media plugin (it is not build-in behaviour, it is a plugin). Or yoy can check page break plugin.

Catalin
A: 

I found a method that meets my needs and turned out to be a little easier than constructing a plugin.

Full details here: How-To: Custom tags with TinyMCE.

Toby Hede