Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom tag support #29

Open
n0str opened this issue Oct 14, 2018 · 2 comments
Open

Custom tag support #29

n0str opened this issue Oct 14, 2018 · 2 comments

Comments

@n0str
Copy link
Contributor

n0str commented Oct 14, 2018

A configuration file for appending custom tags to HTML Purifier

@mauritskorse
Copy link

Yes this would still very much be appreciated.
For now I have added two lines to the BlockHandler at line 251

$def->addElement('mark', 'Inline', 'Inline', 'Common');

            $def->addElement('dfn', 'Inline', 'Inline', 'Common');
            $def->addAttribute('dfn', 'data-type', 'CDATA');

@mauritskorse
Copy link

mauritskorse commented Apr 5, 2024

I have added a possible solution to this. Haven't tested, commented and cleaned the code yet, so not ready for a pr.
See this fork: https://github.com/mauritskorse/editorjs-php/tree/feat/support-custom-html-tags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants