Issue #1729💬 AnsweredOpened January 15, 2019by K4ST0R0 reactions

Attributes property is not working

快速解答by lock[bot]

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.

Read full answer below ↓

Question

Version: 0.14.50

Edit: Sorry, I saw it is working when i add the trait manager. Attributes are not set in component.

Exemple with : editor.BlockManager.add('h1-block', { label: 'Heading', content: '<h1>Put your title here</h1>', category: 'Basic', attributes: { title: 'Insert h1 block' } });

Results in : <h1 data-gjs-type="text" data-highlightable="1" class="gjs-comp-selected">Put your title here</h1>

Attributes title is not set.

Thank you,

Answers (1)

lock[bot]January 15, 2020

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

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.