/** * @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 `