Replies: 3 comments 9 replies
-
Hi, I'm not aware of any solution for this. |
Beta Was this translation helpful? Give feedback.
-
You might want to consider doing it through the script API |
Beta Was this translation helpful? Give feedback.
-
Check here for the general html bullet point. You have to insert or change the note type to code html type and then back to text. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to insert HTML elements into regular text notes, such as divs with custom classes. My current approach is to create a widget that looks for written HTML tags in the note and actually render them in place within the DOM.
I've encountered a problem where any special HTML being inserted into the note gets removed; inserting
<p class='myClass'>test</p>
into the page just adds the plain text "test" without the class. I assume it's because CK Editor sanitizes input.Is there a better approach? I'd love to have custom elements within text notes without having to include render notes. This would be very useful!
Beta Was this translation helpful? Give feedback.
All reactions