Issue #1147✓ SolvedOpened May 30, 2018by JulyanoF6 reactions

Set selected by element or id (not model)

快速解答by artf6

Read full answer below ↓

Question

Is it possible to set selected content in editor by passing an element or element id instead passing a model?

Answers (1)

👍 Most helpfulartfMay 31, 2018
const selector = '#itvmm';
editor.select(editor.DomComponents.getWrapper().find(selector)[0]);

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.