Loading...
 
Features / Usability

Features / Usability


WYSIWYG and ajax auto-save

posts: 1 Canada

I am setting up a wiki in corporate environment. I am trying Tiki for many reasons, one being WYSIWYG support. I think this is a must have if I am going to get by-in from non-technical individuals. Having to learn markup in order to contribute will be a deal-breaker for some users.

However, I am finding that the auto-save feature is becoming a barrier. In the Wysiwyg configuration, Advanced, there is an option for Ajax->Ajax auto-save. That is required in order for Wysiwyg to work. There is a warning saying so if unticked, and I even tried with it unticked, no luck. With auto-save enabled, when the save kicks in, editing is not possible. If you are not paying attention, like me, having to look down at my keyboard a lot, you end up typing away with nothing being added in the editor. I've already found a few mistakes in posts where whole chunks of sentences are missing from when I was typing away while an auto-save was underway. The save kicks in very frequently. Sometimes I only get two or three seconds of typing before it starts another autosave.

So, ideally I'd like to be able to have Wysiwyg without auto-save. Is that possible?
If not, as it seems, is there a way to allow editing to continue while the save is occurring?
And final option would be to turn down the frequency of the autosaves, or modify whatever triggers it.

Any help would be appreciated.

posts: 3 Russia

Hi.

I encountered the same issue, it's quite annoying, here I'll give the information I've found.

1. Using Chrome browser is more preferable than using Firefox. When you typing a text and Auto Save is in progress the same time, Chrome will save that text, Firefox won't.

2. If you want to change the Auto Save interval, you need to edit /lib/ckeditor_tiki/wysiwyglib.php file, you should find the strings:

Copy to clipboard
$headerlib->add_js( '// --- config settings for the autosave plugin --- window.CKEDITOR.config.extraPlugins += (window.CKEDITOR.config.extraPlugins ? ",autosave" : "autosave" ); window.CKEDITOR.plugins.addExternal( "autosave", "'.$tikiroot.'lib/ckeditor_tiki/plugins/autosave/"); window.CKEDITOR.config.ajaxAutoSaveRefreshTime = 30 ; // RefreshTime window.CKEDITOR.config.contentsLangDirection = ' . ($prefs['feature_bidi'] === 'y' ? '"rtl"' : '"ui"') . '; window.CKEDITOR.config.ajaxAutoSaveSensitivity = 2 ; // Sensitivity to key strokes


I've changed window.CKEDITOR.config.ajaxAutoSaveRefreshTime to 300 and window.CKEDITOR.config.ajaxAutoSaveSensitivity to 20, but I'm not sure about the second parameter; I don't know exactly how that parameter works, it's connected with typed symbols amount.