UI improvements for mobile browsers

This commit is contained in:
Brandon Istenes
2017-01-12 04:09:36 +03:00
parent 605072cfbf
commit cd0931c951
3 changed files with 7 additions and 1 deletions

View File

@@ -763,9 +763,13 @@ define([
var first = function () {
Ckeditor = ifrw.CKEDITOR;
if (Ckeditor) {
//andThen(Ckeditor);
// mobile configuration
Ckeditor.config.toolbarCanCollapse = true;
if (screen.height < 800) {
Ckeditor.config.toolbarStartupExpanded = false;
}
second(Ckeditor);
} else {
console.log("Ckeditor was not defined. Trying again in %sms",interval);