Tinymce extended_valid_elements for BBcodes?

Posted by Emily on Stack Overflow See other posts from Stack Overflow or by Emily
Published on 2010-04-17T23:35:41Z Indexed on 2010/04/18 2:43 UTC
Read the original article Hit count: 373

I use Tinymce with BBcodes plugin so the tags used in the editor are [B] [U] [I] [quote] [color].

If you are familiar with TinyMce there is a great option to filter all unwanted tags when pasting to the editor.

Unfortunately i think this is not working for BBcodes mode, what i want is to remove any <TAGS> Or Other Unwanted BBcodes such as [url] & [img]

So, my white list is : [B] [U] [I] [quote] [color=XXXXXX].

I'm already filtering in the server side, but i want this to be implemented in the client side too, So by example if someone copied from a webpage a mix of images and urls and formatted text, every image will be stripped and every url will be "unclickable" directly after pasting.

Note: this is one of my failed attempts :

extended_valid_elements : 'b,i,u,quote,color'

Thanks

© Stack Overflow or respective owner

Related posts about tinymce

Related posts about wysiwyg