Welcome! » Log In » Create A New Profile

Possible to change native element?

Posted by Frank 
Frank
Possible to change native element?
October 10, 2013 06:10PM

I would like to modify li to support children. I have added the element to the config, but it seems to be overwritten by defaults. Is it possible to replace the built in definition with my own, or to modify the children setting?

Re: Possible to change native element?
October 10, 2013 06:18PM

Mm, maybe the easiest way to do that will be just to patch the relevant HTMLModule. I'm pretty sure you can arrange for the desired effect without patching but it will be a little tricky.

Frank
Re: Possible to change native element?
October 10, 2013 07:14PM

Thank you for the quick reply, and for all of your work on this. I changed the addElement line to the following, but nothin changed:

$this->addElement('li', 'Block', 'Flow', 'Common');

The file I'm editing is /usr/share/php/HTMLPurifier/HTMLModule/List.php

Re: Possible to change native element?
October 10, 2013 07:33PM

You'll need to run 'php maintenance/flush.php'

Sorry, you do not have permission to post/reply in this forum.