mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +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 {
|
||||
|
||||
//Update the content of textarea fields using CKEDITOR before submitting.
|
||||
|
||||
//@ts-ignore
|
||||
for(let name in CKEDITOR.instances)
|
||||
{
|
||||
if(typeof CKEDITOR !== 'undefined') {
|
||||
//@ts-ignore
|
||||
CKEDITOR.instances[name].updateElement();
|
||||
for (let name in CKEDITOR.instances) {
|
||||
//@ts-ignore
|
||||
CKEDITOR.instances[name].updateElement();
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue