From be9b6dd4d15f1fdf430121947152ca5f368cfbde Mon Sep 17 00:00:00 2001 From: ulrich <undisclosed> Date: Sun, 05 Mar 2017 10:52:20 +0000 Subject: [PATCH] TinyMCE laden verbessert --- web/ui/ui.js | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/web/ui/ui.js b/web/ui/ui.js index fdaf273..f700f94 100644 --- a/web/ui/ui.js +++ b/web/ui/ui.js @@ -24,6 +24,7 @@ var openEditor; var userid; var tmo; +var tmo2; var cutCopySrcDir; var cutCopyFiles; var cutCopyOperation; @@ -379,8 +380,15 @@ fm_filectls_hide(); fm_dok_editor_init(userid); $("#mce-editor").show(); - ed.setContent(content); - openEditor = 'dok'; + + window.clearTimeout(tmo2); + tmo2 = window.setTimeout(function () { + try { + ed.setContent(content); + openEditor = 'dok'; + } catch (err) { + } + }, 200); } function fm_filectls_hide() { -- Gitblit v1.9.3