|
|
|
@ -763,9 +763,17 @@ define([
|
|
|
|
|
|
|
|
|
|
var first = function () {
|
|
|
|
|
Ckeditor = ifrw.CKEDITOR;
|
|
|
|
|
|
|
|
|
|
if (Ckeditor) {
|
|
|
|
|
//andThen(Ckeditor);
|
|
|
|
|
// mobile configuration
|
|
|
|
|
Ckeditor.config.toolbarCanCollapse = true;
|
|
|
|
|
Ckeditor.config.height = '72vh';
|
|
|
|
|
if (screen.height < 800) {
|
|
|
|
|
Ckeditor.config.toolbarStartupExpanded = false;
|
|
|
|
|
$('meta[name=viewport]').attr('content', 'width=device-width, initial-scale=1.0, user-scalable=no');
|
|
|
|
|
} else {
|
|
|
|
|
$('meta[name=viewport]').attr('content', 'width=device-width, initial-scale=1.0, user-scalable=yes');
|
|
|
|
|
}
|
|
|
|
|
second(Ckeditor);
|
|
|
|
|
} else {
|
|
|
|
|
console.log("Ckeditor was not defined. Trying again in %sms",interval);
|
|
|
|
|