Skip to content

pantoken-root / renderers/tinymce/src / getIconImageSrc

函数: getIconImageSrc() ​

getIconImageSrc(icon, root?): string | undefined

对于本包捆绑的来源,返回可用作图标 <img src> 的 data: URI;对于其他来源,则从 root 读取自定义属性,该属性在来源的字形样式表加载后解析。若两条路径均未产生字形,则返回 undefined。

参数 ​

icon ​

TaggedIcon

root? ​

Element

返回值 ​

string | undefined