In order to enable anchors in the format of I had to remove the '!' from the 'href' attribute.

It took me some time and efforts to figure that out.

Do we really need 'href' to be "required" by default?

Comments

israelshmueli’s picture

Component: User interface » Miscellaneous
israelshmueli’s picture

well, actually meant to be read :

" In order to enable anchors in the format of <a name="someName> I had to remove the '!' from the 'href' attribute..."

markus_petrux’s picture

Status: Active » Closed (works as designed)

The default does not allow you to use that syntax, so you need to change the default anyway. Then... the syntax is not easy, but that's another business. It wants to be like the valid_elements option of TinyMCE, and there's a lot of information about it in the settings form itself, or in the TinyMCE wiki.

[EDIT] You can use different defaults adding $conf entries in settings.php

israelshmueli’s picture

Thank you for the settings.php $conf reference.
In my current situation I use the filter with trusted users and would like to be able to add embed to a custom list of valid elements.

Can I also use $conf to remove embed from blacklist ?

markus_petrux’s picture

Nope, the black list is hardcoded. The EMBED element is too complex to validate here. There are other filters with such a feature, I think, or... if you deal with trusted users, then perhaps no need to filter their input.