diff --git a/compair/static/modules/common/form-directive.js b/compair/static/modules/common/form-directive.js index 9f1752935..cb2a7b127 100644 --- a/compair/static/modules/common/form-directive.js +++ b/compair/static/modules/common/form-directive.js @@ -147,9 +147,7 @@ module.service('EditorOptions', function() { height: "150px", // enable custom plugin that combines ASCIIMath and LaTeX math input and code highlighting - extraPlugins: 'codesnippet,combinedmath,autolink', - - contentsCss: ["body {font-size: 16px !important}"] + extraPlugins: 'codesnippet,combinedmath,autolink' }; }); diff --git a/compair/templates/index-dev.html b/compair/templates/index-dev.html index 4c4d28914..e34e6d260 100644 --- a/compair/templates/index-dev.html +++ b/compair/templates/index-dev.html @@ -83,6 +83,7 @@ // config CKEDITOR CKEDITOR.plugins.addExternal( 'combinedmath', '/app/lib_extension/ckeditor/plugins/combinedmath/' ); CKEDITOR.plugins.addExternal( 'autolink', '/app/lib_extension/ckeditor/plugins/autolink/' ); + CKEDITOR.addCss( '@media screen and (-webkit-min-device-pixel-ratio:0) { .cke_editable { font-size: 16px !important; } }' ); CKEDITOR.on('dialogDefinition', function(ev) { var dialogName = ev.data.name; var dialog = ev.data.definition.dialog; diff --git a/compair/templates/index.html b/compair/templates/index.html index e26448f20..f823d296a 100644 --- a/compair/templates/index.html +++ b/compair/templates/index.html @@ -39,6 +39,7 @@ // config CKEDITOR CKEDITOR.plugins.addExternal( 'combinedmath', '/app/lib_extension/ckeditor/plugins/combinedmath/' ); CKEDITOR.plugins.addExternal( 'autolink', '/app/lib_extension/ckeditor/plugins/autolink/' ); + CKEDITOR.addCss( '@media screen and (-webkit-min-device-pixel-ratio:0) { .cke_editable { font-size: 16px !important; } }' ); CKEDITOR.on('dialogDefinition', function(ev) { var dialogName = ev.data.name; var dialog = ev.data.definition.dialog;