OpenSlides/openslides/static/javascript/ckeditor/plugins/insertpre
Emanuel Schuetze ec61bd8cdc Fixed #854: IE fix for ckeditor's plugin insertpre:
Removed 'class' attribute to fix viw in IE8+.
Use monospace in insertpre dialog in IE.
Updated German translation file.
2013-09-06 21:59:50 +02:00
..
icons Initial attempt to integrate CKEditor into OpenSlides 2013-04-18 13:20:27 +02:00
lang Fixed #854: IE fix for ckeditor's plugin insertpre: 2013-09-06 21:59:50 +02:00
plugin.js Fixed #854: IE fix for ckeditor's plugin insertpre: 2013-09-06 21:59:50 +02:00
README.md Initial attempt to integrate CKEditor into OpenSlides 2013-04-18 13:20:27 +02:00

CKEditor Insert <pre> Plugin

This plugin makes it easier to insert a <pre> tag in CKEditor.

Installation

  1. Clone/copy this repository contents in a new "plugins/insertpre" folder in your CKEditor installation.

  2. Enable the "insertpre" plugin in the CKEditor configuration file (config.js):

     config.extraPlugins = 'insertpre';
    

That's all. "InsertPre" button will appear on the editor toolbar and will be ready to use.

  1. Optionally, you may specify which class should be added to the <pre> element:

     CKEDITOR.config.insertpre_class = 'prettyprint';
    

    As well as specify how the <pre> tag should be rendered inside CKEditor:

     CKEDITOR.config.insertpre_style = 'background-color:#F8F8F8;border:1px solid #DDD;padding:10px;';
    

License

Licensed under the terms of any of the following licenses at your choice: GPL, LGPL and MPL.