Editor not loading

未关闭
#59 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
html, javascript
领域
frontend

调研方向

Start by reproducing the intermittent initial-load failure with the shown TinyMCE.Blazor.Editor component in a Blazor app using the hosted editor, then inspect the TinyMCE console errors involving tinymce.min.js and theme.min.js. The issue gives no project files or test to target, so trace how the component initializes the editor and compare a failing load with a successful one. Done means the editor loads reliably on the initial component load.

由索引模型根据 Issue 内容生成。

描述

GitHub

As the title suggests I have an issue where sometimes the editor will not load, I have followed the example for setting up a blazor app to use the hosted version of the editor component.

I'm sure its me doing something wrong so any pointers would be helpful

This is how the editor is added to the page, like I say it works most of the time but on the initial load of the component it doesnt seems to.

<TinyMCE.Blazor.Editor Conf="editorConf" @bind-Value="@Question.QuestionText" Field="() => Question.QuestionText" ApiKey="" />

There are 2 messages in the console output

Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at tinymce.min.js:9:26875
at HTMLLinkElement.h (tinymce.min.js:9:26961)

and

Uncaught TypeError: Cannot read properties of null (reading 'innerWidth')
at jA. (theme.min.js:9:279034)
at hA.dispatch (tinymce.min.js:9:372724)
at jA.dispatch (tinymce.min.js:9:373978)
at Array. (tinymce.min.js:9:400272)
at Ne (tinymce.min.js:9:5303)
at Object.KA (tinymce.min.js:9:400182)
at ia.executeHandlers (tinymce.min.js:9:52234)
at i (tinymce.min.js:9:50072)

主要语言
HTML
星标
57
派生
17
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

tinymce/tinymce-blazor 的其他 Issue

查看 tinymce/tinymce-blazor 的全部 Issue

相似的 Issue

更多 Web Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。