在 ckeditor 加载时提供占位符信息?
在我的快速开发 PC 上,CKEditor 被调用后需要几秒钟才能初始化。在许多电脑上,这将需要更长的时间。
我想在 CKEditor 加载时向用户显示一些信息。 “编辑器加载时请稍候...”或类似的内容。
我确信一定有某种方法可以做到这一点,但我找不到任何关于如何做到这一点的信息。例如,它们可能是我可以监听的“ckeditorloaded”事件。
如何在 CKEditor 加载时向用户显示元素,该元素加载后就会消失?
On my fast dev PC it takes a few seconds for the CKEditor to initialize once it is called. On many PCs, this will take longer.
I want to display some info to the user while the CKEditor is loading. "Please wait while the editor loads..." or something like that.
I'm sure there must be some way of doing this, but I can't find anything on how to do it. For instance, they might be a "ckeditorloaded" event I could listen for.
How do I display an element to the user while the CKEditor is loading, that disappears once it has loaded?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用jquery,您可以轻松添加加载时可见的元素,并在CKEDITOR 的instanceReady 事件中将其删除。
亲切的问候,
埃尔切
Using jquery you can easily add an element that is visible while it's loading, and remove it on CKEDITOR's instanceReady event.
Kind regard,
ElChe