`enableEditing` is attached to to the view and you can get its instance from the model, so select the component and run this in console `editor.getSelected().view.enableEditing()`
Please avoid opening bug issues without following the issue template. You can start a new discussion with a proper description/use case of what you're looking for.
Read full answer below ↓Question
i am getting editor.getSelected().view.enableEditing(); is not a function
Answers (2)
Please avoid opening bug issues without following the issue template. You can start a new discussion with a proper description/use case of what you're looking for.
The error editor.getSelected().view.enableEditing() is not a function occurs because the enableEditing method is not a public API directly available on the ComponentView instance (which editor.getSelected().view refers to). The GrapesJS editor manages inline text editing through its dedicated Rich...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3732
comment component type do not support adding traits
i am working on a script that add a trait on all the component type , but the comment type do not have the prototype object. code
Issue #3309
TextNodes interfere when changing content on element
Version: 0.16.44 Hi @artf I have a custom block with a custom button component, which its content is similar to this one. <a data-gjs-type=...
Issue #3137
When I select an particular element I'm not getting its styles. This issue happens only with some elements.
Not getting styles of the selected element Here is my code, const model = editor.StyleManager.getModelToStyle(component); let styleObject =...
Issue #3124
FEAT: component:clicked / dbclicked event
Hi, i am trying to use video component to upload in the assets manager. And I realize I can leverage editor event component:selected to do...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Related tutorials
In-depth guides on the same topic.
Tutorial
How to Build a Production GrapesJS Editor: The Complete Walkthrough of Brief, Preset, Plugins, and Services
A complete walkthrough of building a production GrapesJS editor: how to choose a preset, pick plugins, and scope setup services without burning a sprint.
Tutorial
Embed GrapesJS in Your SaaS: A Weekend Guide
Embed GrapesJS in your SaaS and ship a white-label page builder over a weekend. Honest tradeoffs, real code, and the plugins that close the UX gap.
Tutorial
Big Updates: TinyMCE 8 and Placeholder 2.0 for GrapesJS
In May we shipped major updates to two of our most popular GrapesJS plugins — TinyMCE Inline Text Editor and Placeholder.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.