MASA.Blazor
MASA.Blazor copied to clipboard
[Bug Report]: Editor(富文本编辑器)使用 ToolbarContent 报错
Masa.Blazor version
1.7.4
Describe the bug
Editor(富文本编辑器)使用 ToolbarContent 报错,不使用ToolbarContent时正常,ToolbarContent是直接复制的官方的示例 提示 TypeError: moduleClass is not a constructor 跟踪发现是加载 'emoji-toolbar' 时报错的
报错的代码段 quill.js
value: function addModule(name) { var moduleClass = this.quill.constructor.import('modules/' + name); 备注 name = emoji-toolbar this.modules[name] = new moduleClass(this.quill, this.options.modules[name] || {}); return this.modules[name]; }
moduleClass 结果为空
Expected Behavior
No response
Steps To Reproduce
Reproduction code
No response
.NET version
8.0
What browsers are you seeing the problem on?
Microsoft Edge
Additional context
No response