Issue #1671Opened December 19, 2018by SeongwoonHong0 reactions

[Question] Adding html once canvas is cleared.

Question

Hey Artur I'd like to add some default html code when users click clear button.

for instance 1 section by default.

for clear command, i'm doing const comps = this.editor.DomComponents.clear(); what should i do after this..? Thank you

Answers (2)

artfDecember 20, 20180 reactions

editor.setComponents(<section>...</section>) Use the API Reference

lock[bot]December 20, 20190 reactions

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.

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.