BUG: unable to hide rte in latest versions
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Chrome
Reproducible demo link
https://codepen.io/Harshsne/pen/xxoOyXO
Describe the bug
How to reproduce the bug?
- drop text component
- edit text component
What is the expected behavior? rte shouldnt be displayed
What is the current behavior? rte is displayed
this code is working when i change my grapesjs version to 0.20.4,in the latest version only it is not working
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (3)
Yeah onActive is now an async method so extending it with extendFnView is not enough, your code is executed before the original one.
Anyway, you can achieve the same result with a simple line of CSS
.gjs-rte-toolbar {
display: none;
}
but i wanted to hide only some particular type eg:text @artf
You can still extend the view without using extendFnView. Reuse the original component type via prototype, as indicated in here.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #6590
BUG: Able to access/delete/drag the locked components in layermanager
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? chrome Reproducible demo link https://code...
Issue #6263
BUG: Duplicated links are added using rte
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? ChromeReproducible demo link https://codepen...
Issue #6024
BUG: unable to hide rte for some particular component type
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://code...
Issue #6485
BUG: showSelectionPalette doesnt work with custom color picker
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://code...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.