diff options
Diffstat (limited to 'views/default/ckeditor')
-rw-r--r-- | views/default/ckeditor/css.php | 30 | ||||
-rw-r--r-- | views/default/ckeditor/embed_custom_insert_js.php | 8 | ||||
-rw-r--r-- | views/default/ckeditor/init.php | 8 |
3 files changed, 46 insertions, 0 deletions
diff --git a/views/default/ckeditor/css.php b/views/default/ckeditor/css.php new file mode 100644 index 000000000..8c8790722 --- /dev/null +++ b/views/default/ckeditor/css.php @@ -0,0 +1,30 @@ +<?php +/** + * CKEditor CSS + * + * Overrides on the default CKEditor skin + * Gives the textarea and buttons rounded corners + * + * The rules are extra long in order to have enough + * weight to override the CKEditor rules + */ +?> + +.cke_top { + width: 100% !important; +} + +.cke_bottom .cke_wordcount { + float: left; + padding-top: 1px; + padding-left: 5px; + font-family: Arial,Helvetica,Tahoma,Verdana,Sans-Serif; + font-size: 11px; + font-weight: 700; + color: #5F5F5F; +} + +.cke_bottom .cke_path { + float: right; +} + diff --git a/views/default/ckeditor/embed_custom_insert_js.php b/views/default/ckeditor/embed_custom_insert_js.php new file mode 100644 index 000000000..2b72e58c6 --- /dev/null +++ b/views/default/ckeditor/embed_custom_insert_js.php @@ -0,0 +1,8 @@ + if (CKEDITOR) { + try { + CKEDITOR.instances[textAreaId].insertHtml(content, 'html'); + } catch (e) { + // do nothing. + } + } + diff --git a/views/default/ckeditor/init.php b/views/default/ckeditor/init.php new file mode 100644 index 000000000..f78a5a64d --- /dev/null +++ b/views/default/ckeditor/init.php @@ -0,0 +1,8 @@ +<?php +/** + * Initialize the CKEditor script + */ + +elgg_load_js('ckeditor'); +elgg_load_js('jquery-ckeditor'); +elgg_load_js('elgg.ckeditor'); |