Issue #2156💬 AnsweredOpened July 21, 2019by paigefos10 reactions

Cannot change existing block's icon

快速解答by paigefos1

Never mind, it was because I put it in editor.onload, it should be outside of onload

Read full answer below ↓

Question

Hi all, great JS plugin btw! Im new to programming and i would like to know a few things:

editor.BlockManager.get('map').set({
	attributes: {
		class: 'fa fa-heading'
	}
});

I want to set the icon as a "heading" icon from font awesome but it not doing it and its not throwing any error.

thanks to everyone for all the help and great plugin!

Answers (1)

paigefos1July 22, 2019

Never mind, it was because I put it in editor.onload, it should be outside of onload

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.