cm-md-editor 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +2 -1
- package/package.json +1 -1
- package/src/MdEditor.js +2 -2
package/package.json
CHANGED
package/src/MdEditor.js
CHANGED
|
@@ -23,6 +23,7 @@ export class MdEditor {
|
|
|
23
23
|
colorEscape: "128,128,128",
|
|
24
24
|
colorFrontMatter: "128,128,200",
|
|
25
25
|
wordWrap: true,
|
|
26
|
+
iconsPath: new URL('./tools/icons/', import.meta.url).href,
|
|
26
27
|
tools: defaultTools,
|
|
27
28
|
...props
|
|
28
29
|
}
|
|
@@ -121,8 +122,7 @@ export class MdEditor {
|
|
|
121
122
|
}
|
|
122
123
|
|
|
123
124
|
loadIcon(filename) {
|
|
124
|
-
|
|
125
|
-
return this.loadIconFromUrl(new URL(filename, baseUrl).href)
|
|
125
|
+
return this.loadIconFromUrl(new URL(filename, this.props.iconsPath).href)
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
loadIconFromUrl(url) {
|