TypeError:主题不是构造函数

时间:2019-05-08 15:10:32

标签: javascript reactjs annotations editor

我正在尝试在reactjs中创建一个具有注释功能的文本编辑器。我尝试使用this库来执行此操作,但是我在代码中遇到了问题。这是与react一起使用的支持,还是我们有其他免费的库可供使用。

TypeError: Theme is not a constructor
initTheme
tinymce/tinymce.js:43422


43419 | if (typeof settings.theme != "function") {
  43420 |   settings.theme = settings.theme.replace(/-/, '');
  43421 |   Theme = ThemeManager.get(settings.theme);
> 43422 |   editor.theme = new Theme(editor, ThemeManager.urls[settings.theme]);
        | ^  43423 | 
  43424 |   if (editor.theme.init) {
  43425 |     editor.theme.init(editor, ThemeManager.urls[settings.theme] || editor.documentBaseUrl.replace(/\/$/, ''), editor.$);
View compiled
init
/tinymce/tinymce.js:43603
  43600 | 
  43601 | editor.fire('ScriptsLoaded');
  43602 | 
> 43603 | initTheme(editor);
        | ^  43604 | initPlugins(editor);
  43605 | boxInfo = measueBox(editor);
  43606 | 
View compiled
Editor.<anonymous>
tinymce/tinymce.js:43738
  43735 | 
  43736 | scriptLoader.loadQueue(function () {
  43737 |   if (!editor.removed) {
> 43738 |     Init.init(editor);
        | ^  43739 |   }
  43740 | }, editor, function (urls) {
  43741 |   ErrorReporter.pluginLoadError(editor, urls[0]);

0 个答案:

没有答案