|
|
@ -570,16 +570,10 @@ define([
|
|
|
|
// this should only ever get called once, when the chain syncs
|
|
|
|
// this should only ever get called once, when the chain syncs
|
|
|
|
realtimeOptions.onReady = function (info) {
|
|
|
|
realtimeOptions.onReady = function (info) {
|
|
|
|
if (!module.isMaximized) {
|
|
|
|
if (!module.isMaximized) {
|
|
|
|
editor.execCommand('maximize');
|
|
|
|
|
|
|
|
module.isMaximized = true;
|
|
|
|
module.isMaximized = true;
|
|
|
|
// We have to call it 3 times in Safari
|
|
|
|
$iframe.find('iframe.cke_wysiwyg_frame').css('width', '');
|
|
|
|
// in order to have the editor fully maximized -_-
|
|
|
|
$iframe.find('iframe.cke_wysiwyg_frame').css('height', '');
|
|
|
|
if ((''+window.navigator.vendor).indexOf('Apple') !== -1) {
|
|
|
|
|
|
|
|
editor.execCommand('maximize');
|
|
|
|
|
|
|
|
editor.execCommand('maximize');
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// editor.execCommand('maximize') removes all the classes from the body tag
|
|
|
|
|
|
|
|
$iframe.find('body').addClass('app-pad');
|
|
|
|
$iframe.find('body').addClass('app-pad');
|
|
|
|
|
|
|
|
|
|
|
|
if (module.realtime !== info.realtime) {
|
|
|
|
if (module.realtime !== info.realtime) {
|
|
|
@ -727,7 +721,6 @@ define([
|
|
|
|
if (Ckeditor) {
|
|
|
|
if (Ckeditor) {
|
|
|
|
// mobile configuration
|
|
|
|
// mobile configuration
|
|
|
|
Ckeditor.config.toolbarCanCollapse = true;
|
|
|
|
Ckeditor.config.toolbarCanCollapse = true;
|
|
|
|
Ckeditor.config.height = '72vh';
|
|
|
|
|
|
|
|
if (screen.height < 800) {
|
|
|
|
if (screen.height < 800) {
|
|
|
|
Ckeditor.config.toolbarStartupExpanded = false;
|
|
|
|
Ckeditor.config.toolbarStartupExpanded = false;
|
|
|
|
$('meta[name=viewport]').attr('content', 'width=device-width, initial-scale=1.0, user-scalable=no');
|
|
|
|
$('meta[name=viewport]').attr('content', 'width=device-width, initial-scale=1.0, user-scalable=no');
|
|
|
|