How can I update the nodeValue (text value) of components by inputs forms
Question
Hello.
Grapesjs is a great tool. Thanks for it.
I want to update the text value of a component by inputs, how can I do that?? if a user filled the input box with something like: TEA SITE, the title should change to it

Answers (3)
Just find the component and update it as you wish
const typedByUser = 'type something...';
const cmp = editor.getWrapper().find('.any-query-selector')[0];
cmp && cmp.components(typedByUser);
I'm also want something similar with my grapes app, but using react to update a text component via a control input. Somebody can help with that?
it works, thanks
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2187
How to change the title for Image component on Hover?
Hello @artf , How can I change the title for my image component when I hover on it? LIke the highlighted text on this image: Thanks!
Issue #2404
Question: how to observe children changes in component
Is there an easy way to subscribe/listen to changes in the components/children of my custom component type? Perhaps an event I can subscrib...
Issue #3231
BUG: how to change gjs-ckeditor-format component
hi guys, we all know that gjs-ckeditor-plugin working with [data-gjs-type]="text" components. I wanna know , could we change this option? I...
Issue #1961
Some user return
Hello i try to use grapesjs like an enduser to builde a page some returns : how to select row to change width when we use column blocks ? i...
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.