【问题标题】:CKEditor: Add loading gif to dialog before iframe loadsCKEditor:在 iframe 加载之前将加载 gif 添加到对话框
【发布时间】:2014-04-11 22:48:25
【问题描述】:

我在自定义 iframe 对话框中使用 CKEditor。

CKEDITOR.dialog.addIframe(
   'myCustomPluginIframe',
   'Add New Command',
   '/Test/AddNewCommand', 360, 110,.......

问题是,当我打开对话框时,它需要一些时间才能在其中加载 iframe。如何在此之前显示一些加载 gif 图像,或者在单击按钮之前加载 iframe(使用 CKEditor 加载 iframe)?

【问题讨论】:

    标签: javascript iframe ckeditor loading


    【解决方案1】:

    使用对话框事件 show (here) 添加您的自定义预加载器 HTML 代码,并使用 iframe 事件 onContentLoad (here) 隐藏或删除它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多