在设置正确的大小之前,CKEditor在页面加载时闪烁/调整大小 [英] CKEditor flickers/resizes on page load before settling on correct size
问题描述
您好,我在上下搜寻了一个
的答案,我们将不胜感激
hi there ive searched high and low to try find an answer to this one would appreciate any help
请参阅截屏视频,我选择了
http://screencast.com/t/B4y96D7rXgp
see the screencast i took http://screencast.com/t/B4y96D7rXgp
解释视频
从页面上开始,其中有一个编辑器
i然后点击刷新
,您可以将编辑器加载为100%的高度,然后再加载100%的宽度(从编辑器的左侧开始)点),然后将其稳定到正确的大小
,在视频中刷新3次,以使用CKEditor 3.5.3(修订版6655)演示错误
im。
to explain the video starts on the page with an editor in it i then hit refresh you can the editor loads like 100% height and then 100% width (from the editors left point) at first, then settles into its correct size im hit refresh 3 times in the video to demo the bug im using CKEditor 3.5.3 (revision 6655)
任何人都有任何想法,我尝试了一些设置,例如设置宽度和高度等,但是仍然会进行拉伸和收缩。
anyone got any ideas ive tried a few fixes like setting wifth and height etc but still does this stretch and contract thing
任何想法都会受到赞赏!
any ideas would be appreciated!
推荐答案
您可以使用
editor.on('instanceReady',function()
{
隐藏具有相同容器的容器像ckeditor一样的高度(您可能可以在这里显示
显示正在加载);
显示ckeditor容器;
});
editor.on('instanceReady', function() { hide the container which has same height as ckeditor(you can probably show loading here); show the ckeditor container; });
这篇关于在设置正确的大小之前,CKEditor在页面加载时闪烁/调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!