From 725aefba1ecb7c59bcc5bd1de2af4fc4cd72b7b1 Mon Sep 17 00:00:00 2001 From: Andy Kirk Date: Wed, 1 Jul 2015 10:12:08 +0100 Subject: [PATCH] Update --- README.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7bec8ae..2402dec 100644 --- a/README.md +++ b/README.md @@ -7,19 +7,34 @@ Demo: http://demo.gridlight-design.co.uk/ckeditor-footnotes.html CKEditor Addon: http://ckeditor.com/addon/footnotes -Configuring Multiple Instances -------------- +Configuring multiple instances +------------------------------ As of 1.0.5 the plugin accepts a configuration option to allow you to prefix all your footnotes when the editor is instantiated. E.g. -~~~~~~ +~~~ CKEDITOR.replace( 'editor1', { footnotesPrefix: 'a' } ); -~~~~~~ +~~~ This could be set dynamically to allow you to ensure that all chunks of text can contain unique ID's, allowing you to include multiple chunks of text on any given page with ID clashes. For example, it should be possible to use a server-side script to set this variable to the id of a database row. + + +Other configuration +------------------- + +In master, it's now possible to to set configuration for the Footnotes title and the titles elements: + +E.g. + +~~~ +CKEDITOR.replace( 'editor1', { + footnotesHeaderEls: ['

', '

'], // Defaults to ['

', '

'] + footnotesTitle: 'References' // Defaults to 'Footnotes' +} ); +~~~ \ No newline at end of file