Kademi / keditor

KEditor is a jQuery plugin which provides a content editor with drag n drop, configurable contents
http://kademi.github.io/keditor/
MIT License
319 stars 153 forks source link

example with content #200

Closed srikanthmovva closed 5 years ago

srikanthmovva commented 5 years ago

i uploaded the code to a server and added a lot more sections in the "basic example with content" . so it is not loading. it gives a popup with "wait" and "exit" options. Am i doing wrong in deploying the code? i mean do i need to minify or build the code before uploading it to the server? because it is working fine in my local machine :/

ducdhm commented 5 years ago

@srikanthmovva can you provide me the example code in live action?

srikanthmovva commented 5 years ago

template.txt i attached the file(it is acually .php file.but for uploading it has some issue with github. so i changed the extension from php to txt while uploading.

i added more components like carousel, lightbox, navbar etc.

ducdhm commented 5 years ago

@srikanthmovva I do not see any js stuff for initialize KEditor.

srikanthmovva commented 5 years ago

@ducdhm acually its because of CKeditor. if we add many(lets say 100) text components "basic example with content" and try to load it, it is taking a lot of time.(i checked the console, it is creating many instances for ckeditor and i think that is the reason for it.)

srikanthmovva commented 5 years ago

image image

srikanthmovva commented 5 years ago

@ducdhm is it possible to activate each editor instance on focus or via a button. Or even cooler would be to edit the text in a popup or a popover, this way it can be destroyed when the html is saved releasing the resources

ducdhm commented 5 years ago

@srikanthmovva In default of KEditor, text-component will load CKEditor script inside iframe to init CKEditor inline. If you want, you can change text-component by your self.

ducdhm commented 5 years ago

@srikanthmovva I have checked in example of KEditor. CKEditor is loaded once inside iframe. There are no issues with KEditor. It's just your code issue. I close this issue now.