Am i correct in thinking i am missing something in valid_elements?
Could someone provide an example or a site on getting it to work? I do
not think i understand the syntax for the valid_elements
Here is the code:
Tinymce::Hammer.install_path = ['/javascripts/tiny_mce']
Tinymce::Hammer.plugins = ['style, table, paste, emotions, media,
spellchecker, print, save']
Tinymce::Hammer.languages = ['en']
Tinymce::Hammer.init = [
[:theme, 'advanced'],
[:theme_advanced_toolbar_align, 'left'],
[:theme_advanced_toolbar_location, 'top'],
[:theme_advanced_buttons1,
'undo,redo,cut,copy,paste,pastetext,|,bold,italic,strikethrough,blockquote,charmap,bullist,numlist,removeformat,|,link,unlink,image,|,cleanup,code'],
[:theme_advanced_buttons2,
'forecolor,backcolor,|,formatselect,fontselect,fontsizeselect,|,justifyleft,justifycenter,justifyright,justifyfull,|,hr'],
[:theme_advanced_buttons3, 'save,
styleprops,|,table,tablecontrols,|,emotions, media, spellchecker,
print'],
[:valid_elements, "a[href|
title],blockquote[cite],br,caption,cite,code,dl,dt,dd,em,i,img[src|alt|
title|width|height|align],li,ol,p,pre,q[cite],small,strike,strong/
b,sub,sup,u,ul"],
]
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements
Just be warned, this is javascript filtering the content the editor
will return. All a user needs to do is disable javascript and they
can post any information they want through the form, unfiltered. It
is therefore highly recommended you filter user-supplied html server-
side. I recomend HTML sanitizer (http://wonko.com/post/sanitize) for
sanitizing html via a whitelist in ruby. If you filter server size
you could disable client side filtering.
--
You received this message because you are subscribed to the Google Groups "tinymce_hammer" group.
To post to this group, send email to tinymce...@googlegroups.com.
To unsubscribe from this group, send email to tinymce_hamme...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tinymce_hammer?hl=en.