-
[DIV] Functionality
Has the way the DIV tag been implemented changed dramatically? i.e. does it have new or changed functionality?
I've noticed the styling and class seems to be ignored.
For example when nesting them like:
Code:
[div] style="float:left;" | [div] class="navcontainer" style="float:right;" | Some Text[/div][/div]
I end up with something like:
Code:
class="navcontainer" |
Some Text
-
The implementation has not really changed since VaultWiki 3. There is still a white-list of class names, which is defined in vault/core/model/parser/handle/clean/vw.php. If you had white-listed classes in the past, you probably have to migrate your plugin to the new location vw_bbcode_cleaner (I think the old name was vault_bbcode_clean).
-
I found the plugin and adjusted it. Still not getting any difference in the existing articles. I've even edited one to see.
I'm listing the classes like so:
Code:
$this->standard['classes']['alt3'] = 1;
Is that the correct format still?
-
$this is not available in the plugin context. Use $cleaner instead.
-
Thanks pegasus.
I tried:
Code:
$cleaner->standard['classes']['alt3'] = 1;
With no success, including reediting an article.
Maybe another setting I've missed?
-
Hmmm... strangely it's suddenly working now. Must be some caching issue somewhere... :S