Issue #5503Opened November 6, 2023by MaxwellTheSecond1 reactions

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? grapesproblem

Code of Conduct

  • I agree to follow this project's Code of Conduct

Answers (2)

MaxwellTheSecondNovember 6, 20231 reactions

PR: #5504

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.