javascript - CKEDITOR.inline first load -
ckeditor giving me hard time first load, use:
ckeditor.inline
on first load takes 2 seconds load, on these 2 seconds if user edit div's content, when ckeditor loads restores before edit :\ there way fix or maybe read-only text untill ckeditor loads? right use opacity0 untill ckeditor ready cheap hack , doesnt good.
on first load, toolbar starts @ left side of screen, on other loads doesnt happen when appears above div being eddited.
i cant figure out how on ckeditor inline demo did perfectly.
the question little vague grasp single underlying question. post comment, long, i'll go ahead , add answer. mean preloading editor? want stop user editing content or want load editor before loading html body content? both same "use opacity0 until ckeditor ready cheap hack , doesn't good.", difference?
i wasn't talking server performance in comment, talking client performance. there many, many things try
- build prettier fake preloader; example mask site overlay until cke ready
- defer dom creation until ckeditor.instanceready or whatever event usable you. mean can create pretty loading animation , actual editable content js, preloader too
- enable content editable in document.ready or in other later event, might help
- monitor network, see how long cke requests load , if acceptable you
- check not using source version of cke
- check caching works expected
- minimize load removing , plugins don't need
all of question number 1. "on first load, toolbar starts @ left side of screen, on other loads doesn't happen when appears above div being edited.", sample or how reproduce or url happens or screenshot? based on hard reproduce.
Comments
Post a Comment