BUG: replaceWith method doesn't have string type
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Chrome
Reproducible demo link
none
Describe the bug
replaceWith method from Component.ts doesn't have a type for string.
What is the expected behavior?
I should be able to replace a component with a string like in the example component.replaceWith('<div>Some new content</div>');
What is the current behavior?
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (2)
PR: #5504
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 #5175
BUG: Move method is not working as expected
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://code...
Issue #5037
FEATURE: How to drag external text into particular index inside the textable component?
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link NA Describe...
Issue #6038
BUG: Inline event declarations like onclick event on a buttons are getting removed
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? ChromeReproducible demo link https://jsfiddl...
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.