-
Notifications
You must be signed in to change notification settings - Fork 2
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
Composer: Configurable allowed HTML elements and attributes #52
Comments
Progress
|
If you need to get the list of other extensions during your own extension startup, you run into an inherent problem: You are also an extension, and you might not be able to guarantee the order of loading, so if you do this at startup, the other extension that you're trying to list might not be loaded yet. If that's your problem, I see a number of potential solutions:
|
Thanks for the solutions!
|
Progress
|
Have you tried to google whether other people tried to solve the same problem (esp. the whitelist) and had ideas? |
I have googled the problem and the only possible solution I've seen is to destroy and reinitialize the editor. The UUID pro extension is adding an attribute to all tags which something similar to the global attribute problem. Update Update
Won't work because it doesn't create the schema.
Update
|
Progress
|
Objective
Create a TipTap extension which allows arbitrary HTML elements and attributes, and is configured with simple arrays to list the elements and attributes.
Config format
The format for configuration should look exactly like this:
insane
.*
stands for any HTML element name.Interop
Whitelist
.Importance
The text was updated successfully, but these errors were encountered: