mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Check if CKEDITOR is defined, before updating them.
This commit is contained in:
parent
f872f4a80c
commit
6ae1429868
1 changed files with 5 additions and 4 deletions
|
@ -251,12 +251,13 @@ class AjaxUI {
|
||||||
beforeSerialize: function() : boolean {
|
beforeSerialize: function() : boolean {
|
||||||
|
|
||||||
//Update the content of textarea fields using CKEDITOR before submitting.
|
//Update the content of textarea fields using CKEDITOR before submitting.
|
||||||
|
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
for(let name in CKEDITOR.instances)
|
if(typeof CKEDITOR !== 'undefined') {
|
||||||
{
|
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
CKEDITOR.instances[name].updateElement();
|
for (let name in CKEDITOR.instances) {
|
||||||
|
//@ts-ignore
|
||||||
|
CKEDITOR.instances[name].updateElement();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue