Replies: 2 comments 4 replies
-
You should be able to update/extend the text component view (eg. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@artf The problem is, I can't find anything in the docs abut disabling the RichTextEditor specifically for a component. I did find info about the view of a component type. So using view -> onActive would contain the logic. But I don't see a way to make it load a textarea without the RTE being active. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The issue I'm facing, is that I'm dealing with an implementation of GrapesJS where we don't want users to style text at all.
We've just got plain text we want to edit, as part of a button (
<a>
tag).On top of that, we're using CKE5 which wraps text in
p
tags and that's not something you can turn off (CKE5 always needs text to be wrapped in block-level tags, and they're very adamant about not changing that).So the easiest way to get rid of both of these issues at once, would be to just have a plain textarea instead of allowing an RTE to render.
Any ideas how we could accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions