Skip to content

Highlight

Mohan Kumar requested to merge Mohan-A/wax-prosemirror:Highlight into master

FEAT(Highlight): Added highlight feature into the editor.

  • User can select any part of the text and apply a background color from a set of predefined colors.
  • Highlight icon will be enabled when the selection is text and selection length is equal or greater than 1 character.
  • It will work both on the main editor and in notes.
  • Higlight icon will be active while clicking the icon and clicking anywhere outside of the editor will disable it.
  • The Last box inside the higlight dropdown will be a white/transparent one which will be used to clear existing highlights.
  • The Last color used should be reflected in the higlight icon
  • When the user has already applied color and makes a new selection double-clicking the toolbar icon will apply the last color. A single click will expand the highlight dropdown to select color.

Merge request reports