Hi,
I want to create a button on the EditLive control that will surround the highlighted text with
<strong> and </strong> tags
.
Can I get an example of how to do it ?
I know how to create the button, I know how to call a custom javascript function. But what will be the code in the javascript ?
It should work just like the BOLD button on the ephox control - User highlights a piece of text and clicks on the ‘B’ button and the text gets enclosed in
This is probaly too late a reply for you, dshenoy, but in case anyone else has this same issue:
In the config file for EditLive, set localEmphasis=“true” in the htmlFilters. This automatically uses ‘strong’ instead of ‘b’ and ‘em’ instead of ‘i’ tags.