It adds an icon resource to be used in the editor.
If there is an icon with the same name, it is overwritten.
Parameters:
Name | Type | Description |
---|---|---|
iconResources | Object | key: Icon name (function name), value: Object in the svg tag or img tag format |
var iconResources = { 'image': '<img src="data:image/png;base64,iVBORw0KGgoAA.......BJRU5ErkJggg==">', 'bold': '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 16"><rect y="6.062" width="16" height="4"/></svg>', ...... }; SynapEditor.addIcons(iconResources); |