From 3332bebe4da6dfa0fe3e4b2abddc84b1cc62f8f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 19 Feb 2016 23:38:52 +0100 Subject: Initial commit --- sources/core/editable.js | 3158 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 3158 insertions(+) create mode 100644 sources/core/editable.js (limited to 'sources/core/editable.js') diff --git a/sources/core/editable.js b/sources/core/editable.js new file mode 100644 index 0000000..b9b0270 --- /dev/null +++ b/sources/core/editable.js @@ -0,0 +1,3158 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +( function() { + /** + * Editable class which provides all editing related activities by + * the `contenteditable` element, dynamically get attached to editor instance. + * + * @class CKEDITOR.editable + * @extends CKEDITOR.dom.element + */ + CKEDITOR.editable = CKEDITOR.tools.createClass( { + base: CKEDITOR.dom.element, + /** + * The constructor only stores generic editable creation logic that is commonly shared among + * all different editable elements. + * + * @constructor Creates an editable class instance. + * @param {CKEDITOR.editor} editor The editor instance on which the editable operates. + * @param {HTMLElement/CKEDITOR.dom.element} element Any DOM element that was as the editor's + * editing container, e.g. it could be either an HTML element with the `contenteditable` attribute + * set to the `true` that handles WYSIWYG editing or a `