How the selected text, plus a custom CSS

2 posts, 0 answers
  1. TzuTsen
    TzuTsen avatar
    1 posts
    Member since:
    Jan 2015

    Posted 19 Jul Link to this post
    Samble is update body css.
    But I need is for the selected text, plus a custom CSS style or cancel the style.
  2. Misho
    Misho avatar
    161 posts

    Posted 21 Jul Link to this post


    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:

    Best Regards,
    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.
Back to Top