views:

61

answers:

0

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