Issue #2156Opened July 21, 2019by paigefos10 reactions

Cannot change existing block's icon

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, 20190 reactions

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.