Replies: 1 comment
-
If this is JavaScript shouldn't you be able to replace ' with ` and insert the desired values in it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to create custom html tags inside the span tag given by etherpad by default.
The question is: How can I programmatically write another attribute to this default span?
For instance, we already have:
<span class>Hello world!</span>
But I want to do this:
<span data-id=12345 data-old="test" class>Hello world!</span>
I need to have data-id & data-old tags as default and I need to set these values from client side.
As per the suggestion here, I used the aceCreateDomLine client hook. I modified the domline.js as follows:
Instead of hardcoding static values I need to send the DATA_ID and DATA_OLD from client side.
Please let me know your thoughts.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions