I am using CKEditor 5 version 36.0.1 because it is the last version compatible with Node 14.
My goal is to add onmouseover events to links during editing. I am using the automatic decorator configuration, but I keep encountering the error: domconverter-unsafe-attribute-detected.
The onmouseover attribute is being renamed to data-ck-unsafe-attribute-onmouseover.
I read about renderUnsafeAttributes in the documentation, but I am unsure how to apply this setting with automatic decorators.
Questions:
Is it possible to add the onmouseover attribute to links through automatic decorators?
How can I use renderUnsafeAttributes with automatic decorators?
I attempted to create a plugin with the following code, but it didn't resolve the issue:
The goal is to use automatic decorators to add custom event handlers (e.g., onmouseover) to links during the editing process, but these attributes are being renamed due to security policies (domconverter-unsafe-attribute-detected). I would like to understand the proper way to bypass this behavior for specific attributes.
Any help or guidance would be greatly appreciated!
Hello,
I am using CKEditor 5 version 36.0.1 because it is the last version compatible with Node 14.
My goal is to add
onmouseover
events to links during editing. I am using the automatic decorator configuration, but I keep encountering the error:domconverter-unsafe-attribute-detected
.The
onmouseover
attribute is being renamed todata-ck-unsafe-attribute-onmouseover
.I read about
renderUnsafeAttributes
in the documentation, but I am unsure how to apply this setting with automatic decorators.Questions:
onmouseover
attribute to links through automatic decorators?renderUnsafeAttributes
with automatic decorators?I attempted to create a plugin with the following code, but it didn't resolve the issue:
Context:
The goal is to use automatic decorators to add custom event handlers (e.g., onmouseover) to links during the editing process, but these attributes are being renamed due to security policies (domconverter-unsafe-attribute-detected). I would like to understand the proper way to bypass this behavior for specific attributes.
Any help or guidance would be greatly appreciated!
Thank you!