disabling formgroup with tinymce in material tab gives 'node cannot be null or undefined' bug.
まだ誰も着手していません。
評価
- 難易度
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
-
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 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
copse-dev/agent-pane#2953 ·
-
agentic-workflows
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
githubnext/rig#534 ·
-
automation missing-model model-sync provider:pioneer
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
anomalyco/models.dev#7701 ·