Skip to content

Commit 40f15d4

Browse files
committed
Enlarge default CKEditor font size
1 parent c6a3a6b commit 40f15d4

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

qa-plugin/wysiwyg-editor/ckeditor/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,7 @@ CKEDITOR.editorConfig = function( config ) {
3535

3636
// Prevent blank paragraphs
3737
config.fillEmptyBlocks = false;
38+
39+
// Add custom CSS
40+
config.contentsCss = [CKEDITOR.getUrl('contents.css'), CKEDITOR.getUrl('contents-custom.css')];
3841
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* Q2A custom CSS for CKEditor
3+
* Increases default font size. You can add custom styles here to match your theme, but make sure that you do not overwrite it when upgrading Q2A!
4+
*/
5+
6+
body, .cke_editable {
7+
font-size: 15px;
8+
}

0 commit comments

Comments
 (0)