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)
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.
Issue #3098
BUG: cannot configure a video block with src=null
DescriptionThe bug is reproduced on the current demoWhat happens ? I configured my video block with src=null like this : When i drag the bl...
Issue #1917
[QUESTIONS] Icons on Block Manager
Hi, I want to change the icon of a Block in the Block Manager: I know it is part of the attributes in the manner: attributes: { class:'gjs-...
Issue #3704
BUG: load blocks closed by default?
I am using the following bit of code to collapse all the block categories, unfortunately, this is not working live demo : https://jsfiddle....
Issue #2950
Edit panels styles (rookie question)
Hi all, I would like to get some guidance about the code I should add/edit in order to change the way panels look. In general, I will need...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.