disabling formgroup with tinymce in material tab gives 'node cannot be null or undefined' bug.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- angular, typescript
- Área
- frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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;
});
}
};
- Lenguaje dominante
- TypeScript
- Estrellas
- 346
- Forks
- 95
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de tinymce/tinymce-angular
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
tinymce/tinymce-angular#425 · 4 comentarios ·
-
Excessive nested span tags generated when repeatedly copy-pasting text with white background colorAbiertoneeds: more info
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
tinymce/tinymce-angular#420 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
tinymce/tinymce-angular#413 · 1 comentario ·
-
needs: more info
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
tinymce/tinymce-angular#412 · 3 comentarios ·
Todos los issues de tinymce/tinymce-angular
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Doist/todoist-cli#576 ·
Los mantenedores suelen responder en 1 día
-
🐛 Bug supabase/cli
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
CopilotKit/aimock#491 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
agilepathway/label-checker#710 · 2 comentarios ·
Los mantenedores suelen responder en 1 día