Status |
---|
| |
---|
colour | Yellow |
---|
title | 릴리즈 2.6.0 이상 |
---|
|
에디터에서 사용할 아이콘 리소스를 추가합니다.
동일한 이름의 아이콘이 있는 경우 덮어쓰기 됩니다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: svg 태그 또는 img 태그 형식의 ObjectObject in the svg tag or img tag format |
Example:
Code Block |
---|
|
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); |
...