Model Html Issue
Question
#513 Sorry for opening new issue but you have closed last one so had to create new one, I am struggling with below so if you can help to resolve or guide me at sample code that would be great, or if you have quick 5 mins and create small codepen would be good, really appreciate your help. I tried you suggested but still model is not updated on child components, it only return default values set when component render. now it generate below html but does not update property correctly.
Answers (3)
You can trigger your actions on render...
...Inside your model
init() {
....
}
updateAllStuff() {
this.updateTitle();
this.updateHoverText();
...
}
...Inside your view
render(...args) {
...
this.model.updateAllStuff();
return this;
}
@artf I tried bust still no luck, can you please create small sample if that is possible?
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #527
Model and HTML return issue
#522 @artf I tried as you said but still no luck, I do not want to waste your time but it would be very useful if you can please create sma...
Issue #513
Model and returned html issue
I have below code to create custom component and wants to retrieve updated html via editor.html() but return wrong html, I am sure I am mis...
Issue #911
Could some one please help me with Custom Load.
What I can use instead of followings- editor.setHtml( arrdata['html'] ), editor.setCss( arrdata['css'] ), In below code.
Issue #1547
How to add component attributes (before rendering)
Hello, I'm looking to auto create components inside a block element and it seems that I manage to do that but with a small missing... How I...
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.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.