Add an option to restrict user input within richText input #15050
simovicaleksa
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The problem
Currently you can filter the unwanted features within lexical editor by passing the
editorobject, containing a features array, to arichTextfield.For example we can do something like this to create a rich text input in admin which will only have an option to insert a table. Problem is that this doesn't restrict the user from inserting text or breaks even if you just want a UI to manage a table or a heading for example (screenshot below showcasing the problem).
Suggestion
Introduce 2 new default features,
TextFeatureandBreakFeature, which when not included in the lexical editor config disable the users from creating non-intended formats of rich text.Beta Was this translation helpful? Give feedback.
All reactions