Closed vansante closed 10 years ago
These aren't features that are really necessary in core. You could always extend the UrlFilter
and TableFilter
with custom classes and add the attributes manually.
Hi, I'm also interested in target="_blank" ont he [url] tag as well. Would you be able to show an example on how to extend the UrlFilter to support this with custom classes?
Simply extend the UrlFilter
and add new attributes in the constructor.
class MyUrlFilter extends UrlFilter {
public function __construct(array $config = []) {
$this->_tags['url']['attributes']['target'] = '/^(blank|self)$/i';
parent::__construct($config);
}
}
Shouldn't it be htmlAttributes ?
The attributes
is for Decoda attributes and htmlAttributes
is for HTML attributes to directly put on the parsed tag.
Hello,
I have two feature requests: Could you add support for
target="_blank"
on the[url]
tag andwidth="xx"
on the[td]
tag?Thanks!