Can't set "target=_blank"?

1,504 views
Skip to first unread message

BZ

unread,
Jul 31, 2010, 2:13:34 PM7/31/10
to htmlpurifier
I am using TinyMCE in my Drupal installation with the HTML purifier.
When I set the link to open in a new window, TinyMCE applies the
"target=_blank" to the anchor, however when I save the page it gets
stripped out by the purifier. I didn't see where to avoid this from
happening in the configurations. Can anyone help?

Edward Z. Yang

unread,
Jul 31, 2010, 10:16:14 PM7/31/10
to BZ, htmlpurifier
Excerpts from BZ's message of Sat Jul 31 14:13:34 -0400 2010:

Hello BZ,

The configuration directive you are looking for is Attr.AllowedFrameTargets. [1]

Cheers,
Edward

[1] http://htmlpurifier.org/live/configdoc/plain.html#Attr.AllowedFrameTargets

Reply all
Reply to author
Forward
0 new messages