You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[edit] oops, just seen the thread on this in the "General" discussion... ok, never mind this then.
But, that aside,... JS isn't really my strong point (still trying t work out what is! :) ) and am struggling abit to figure out how to add a custom toolbar item that will wrap the selected text as per:
<span class="myClass">selected text</span>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi - the link to "available actions (listed at https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand)"... this linked to page says the execCommand() method is deprecated.... is likely to cause issues down the line with this editor?
[edit] oops, just seen the thread on this in the "General" discussion... ok, never mind this then.
But, that aside,... JS isn't really my strong point (still trying t work out what is! :) ) and am struggling abit to figure out how to add a custom toolbar item that will wrap the selected text as per:
<span class="myClass">selected text</span>
tia for any clues!
Beta Was this translation helpful? Give feedback.
All reactions