This is a migrated thread and some comments may be shown as answers.

How the selected text, plus a custom CSS

1 Answer 8 Views
Editor
This is a migrated thread and some comments may be shown as answers.
TzuTsen
Top achievements
Rank 1
TzuTsen asked on 20 Jul 2017, 01:31 AM
http://demos.telerik.com/aspnet-mvc/editor/custom-tools
Samble is update body css.
But I need is for the selected text, plus a custom CSS style or cancel the style.

1 Answer, 1 is accepted

Sort by
0
Misho
Telerik team
answered on 21 Jul 2017, 12:54 PM
Hi,

You can execute an editor command on the currently selected text by using the exec method or apply custom style to the selected text using the DOM ranges. Here is a very basic example that could be used as a reference for implementing your custom logic: 

http://dojo.telerik.com/@parvanov/etegi

Best Regards,
Misho
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
TzuTsen
Top achievements
Rank 1
Answers by
Misho
Telerik team
Share this question
or