Filters, HTML, anf TinyMCE...
larry - December 4, 2006 - 14:01
Hey all,
Two quick questions.
First, I'm using TinyMCE and I would like to use filtered HTML with it. How could I find out all the HTML tags used by the buttons/pluggins used by a default install so that when I chose one, I can input it's tag within the Filtered HTML configuration?
Second, if I must use Full HTML because the above question cannot be answered, is there any danger to my site, other than users messing with my theme format for respective nodes, that I am unaware of. I think not, I just want to be certain.
thanks,
larry

TinyMCE and Filters
You can use tinyMCE with filtered html. But, what you need to filter depends on your tinyMCE configuration. Basically, what options do you have installed?
Start with tinyMCE. Start at admin/settings/tinymce where you can get to the tinyMCE settings. Go to the profile you have created and check the buttons you want the users to have.
Then, once that is saved go to admin/filters and either created a new 'input format' or edit (configure link) the existing filtered html. Go to the configure tab for the filter and under 'HTML filter' enter the tags to let pass. This should correspond to the buttons you chose with tinymce. Example, the Bold button would need <strong> to be allowed.
I appreciate your response...
Actually, that's what I was getting at...sorry if I was'nt clear enough. I want a list for all the HTML tags for each available plugin selection. However, the tags for what I'm using is enough. Here are my plugins:
Advanced HR
italic
justify left
justify full
justify center
justify right
bellet list
outdent redo
forecolor
fontselect – font
emoticons
image link unlink
backcolor
fontsizeselect – font
Insert date/time
Paste text/word
bold
numlist
undo
hr
I want these so I can add them to my Filtered HTML tags list so these tags can pass through the filter. I'd appreciate any help...these are not as simple to find as I thought and some, like "backcolor", are very difficult. For example, with "backcolor", I thought "Font" because it's a background for characters. That's wrong...and I don't know what is. THere are others like this as well. That's why I want as many as possible so I do not have to permit Full HTML. Thanks again.
cheers,
larry
--There are no Kangaroos in Austria--
some of the picture.
Some of these buttons don't have any code along with them, like undo and redo. They just preform an action. Here are the others:
italic = <em>
bold = <strong>
hr and advanced hr = <hr>
justifies = <div>
lists = <ul>, <ol>, <li>
emoicons and images = <img>
font color, font select, and other font stuff = <font>
If some of these fail to work it's because parts of the tag are being filtered out and some more changes need to be made to the filter. You will notice that several of these, and more, are already in the Filtered HTML filter by default.
thanks again...
I appreciate your help. I'll keep at it and see what I come up with...I'll be back...
cheers,
larry
--There are no Kangaroos in Austria--