-
We are using the RIch Text pluging but we don't want to expose all of its functionalities. We already don't provide buttons for Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
buondevid
Apr 10, 2024
Replies: 1 comment
-
Investigated a bit more and ended up on this solution: /* Disable underline formatting */
useEffect(() => {
editor.registerCommand(
FORMAT_TEXT_COMMAND,
(event) => {
if (['underline'].includes(event)) {
return true;
}
return false;
},
4,
);
}, [editor]); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
buondevid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Investigated a bit more and ended up on this solution: