Hi,
I installed the wysiwyg filter b/c I want users to have more flexibility in formatting their text.
However, users are unable to insert line breaks with <enter> or <shift><enter>
and all font selections don't work.
I have enabled: Limit allowed HTML tags; WYSIWYG Filter; Convert line breaks into HTML (i.e. <br> and <p>
) and Correct faulty and chopped off HTML.
These are my allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <span> <style> <font> <span style> <img>
My WYSIWYG filter HTML elements and attributes:
a[!href|target<_blank|title],
div[align<center?justify?left?right],
p[align<center?justify?left?right],
br,span,em,strong,cite,code,blockquote,ul,ol,li,dl,dt,dd,img,span[*],span[style],font,img[width|height|alt|title|src]
HTML Comments are enabled.
Policy: Whitelist - Add rel="nofollow"
to all links except those leading to domain names specified in the list below.
Do I have the above settings right?
What am I missing?
Thanks,
CC
Comments
Comment #1
TwoDComment #2
CharlieCastle CreditAttribution: CharlieCastle commentedHi TwoD,
Followed your instructions above (#1 & 2) and it now seems to be working!
I tried adding "...adding the style attribute" per #3 but probably did it wrong b/c it says: "The following elements cannot be allowed: style."
Here's the HTML Elements and attributes block:
I also tried "style[*]" and got the same message.
But I'm not sure I need style since it now seems to be working.
Also, please see this issue: http://drupal.org/node/1782654 as my new WYSIWYG text format only works for comments and not content.
Thanks,
CC
Comment #3
TwoDStyle isn't an element/tag, but an attribute, so you add it in with the list of attribute inside the
[]
blocks after each element name. You could also put@[style]
at the beginning of the HTML Elements and attributes block, to whitelist the style attribute for all elements.I'm not sure what could cause the text formats to only work for comments, unless perhaps you've got another module which restricts that.
Comment #4
CharlieCastle CreditAttribution: CharlieCastle commentedThanks again for your support. It's greatly appreciated.
I'll mark this as closed and post the question about not getting WYSIWYG text format in the general forum. Maybe it'll get a hit there.
PP
Comment #5
CharlieCastle CreditAttribution: CharlieCastle commentedI posted the question here: http://drupal.org/node/1784830
Let's hope I get an answer.
PP