Issue #2336💬 AnsweredOpened October 17, 2019by adriangroch1 reactions

`RichTextEditor` update

Quick answerby artf1

It proposes a change to the actions to have a state, which is an optional function that returns an integer to depict the state of each action; 1 for active, 0 for inactive, -1 for disabled. Thanks for the suggestion, I think it might be a good idea to have this kind of custom check, so go ahead. Remember to add some e...

Read full answer below ↓

Question

Hi @artf , I'm thinking of opening a PR for an update on the RichTextEditor. I thought I'd run the idea past you first before getting to work on it. It proposes a change to the actions to have a state, which is an optional function that returns an integer to depict the state of each action; 1 for active, 0 for inactive, -1 for disabled. This essentially allows the ability to set the styling and functionality of the actions without having to set the name field of the object the same as the Document.queryCommandSupported or Document.queryCommandState parameter. If there is no state function pro...

Answers (1)

artfOctober 19, 2019

It proposes a change to the actions to have a state, which is an optional function that returns an integer to depict the state of each action; 1 for active, 0 for inactive, -1 for disabled. Thanks for the suggestion, I think it might be a good idea to have this kind of custom check, so go ahead. Re...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.