disabling formgroup with tinymce in material tab gives 'node cannot be null or undefined' bug.
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- angular, typescript
- 领域
- frontend
调研方向
Start by reproducing the issue with @tinymce/tinymce-angular 3.5.0, TinyMCE 5.2.0, the provided editor template, defaultConfig, and _disableFormsDuringProgress method in a Material tab with a reactive form. Trace the editor lifecycle while switching tabs and toggling emailForm.disable()/enable(); done means disabling the form group causes no null-node error or unintended dirty state and the other controls are visibly disabled.
由索引模型根据 Issue 内容生成。
描述
What is the current behavior?
I am using my tinymce editor with form-group reactive forms. As per the standard functional flow in my component there is a global Redux state for progress bar with boolean value which gets set in HTTP interceptor accordingly. I subscribe to it and disable the form group when progress bar (means API call is in progress) is true and enable it when set to false. This piece of functionality have created subtle multiple bugs in my component. Getting 'node cannot be null or undefined' error, form-group with tinymce getting dirty automatically when changing tab, other form fields in form-group also not getting disabled in UI.
What is the expected behavior?
Expected behavior was to disable a whole formgroup without any repercussions.
Which versions of TinyMCE/TinyMCE-Angular, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or TinyMCE-Angular?
I am using version "@tinymce/tinymce-angular": "^3.5.0" and "tinymce": "^5.2.0"
below is my code:
<editor formControlName="inputEditor" [init]="defaultConfig"></editor>
private _disableFormsDuringProgress() {
this.progressBar$.subscribe(res => {
if (res) {
this.emailForm.disable();
} else {
this.emailForm.enable();
}
});
}
public defaultConfig: any = {
height: 700,
base_url: '/tinymce', // Root for resources
suffix: '.min',
plugins: [
'advlist autolink link image lists charmap print hr anchor pagebreak',
'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking',
'table emoticons template paste help'
],
browser_spellcheck: true,
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify |' +
' bullist numlist outdent indent | link image | print media fullpage | ' +
'forecolor backcolor emoticons | help',
menubar: 'file edit view insert format tools table help',
branding: false,
setup: (editor: any) => {
this.editor = editor;
this.editor.on('init', () => {
this.editorLoaded = true;
});
}
};
- 主要语言
- TypeScript
- 星标
- 346
- 派生
- 94
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tinymce/tinymce-angular 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
tinymce/tinymce-angular#425 · 4 条评论 ·
-
Excessive nested span tags generated when repeatedly copy-pasting text with white background color 未关闭needs: more info
难度 4/5 3-5 天 新手友好度 38/100
tinymce/tinymce-angular#420 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
tinymce/tinymce-angular#413 · 1 条评论 ·
-
needs: more info
难度 4/5 3-5 天 新手友好度 42/100
tinymce/tinymce-angular#412 · 3 条评论 ·
查看 tinymce/tinymce-angular 的全部 Issue
相似的 Issue
-
comp/desktop P3 type/bug
难度 1/5 1 小时以内 新手友好度 92/100
NousResearch/hermes-agent#118866 ·
-
Browser Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 85/100
getsentry/sentry-javascript#24577 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
agilepathway/label-checker#640 ·
-
Plugin stuck at "loading" on DSH 0.1.6-alpha.2 — turnTail list slot registration missing options.id 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 68/100
chrisparsons83/flexspotff#153 ·