/** * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** @class CKEDITOR */ /** * The class name used to identify ` * ... * CKEDITOR.replace( 'myfield' ); * * var textarea = document.body.appendChild( document.createElement( 'textarea' ) ); * CKEDITOR.replace( textarea ); * * @param {Object/String} element The DOM element (textarea), its ID, or name. * @param {Object} [config] The specific configuration to apply to this * editor instance. Configuration set here will override the global CKEditor settings * (see {@link CKEDITOR.config}). * @returns {CKEDITOR.editor} The editor instance created. */ CKEDITOR.replace = function( element, config ) { return createInstance( element, config, null, CKEDITOR.ELEMENT_MODE_REPLACE ); }; /** * Creates a new editor instance at the end of a specific DOM element. * * * * * * CKEditor * * * * *
* * * * * @param {Object/String} element The DOM element, its ID, or name. * @param {Object} [config] The specific configuration to apply to this * editor instance. Configuration set here will override the global CKEditor settings * (see {@link CKEDITOR.config}). * @param {String} [data] Since 3.3. Initial value for the instance. * @returns {CKEDITOR.editor} The editor instance created. */ CKEDITOR.appendTo = function( element, config, data ) { return createInstance( element, config, data, CKEDITOR.ELEMENT_MODE_APPENDTO ); }; /** * Replaces all ` * * * * * * * @param {String} [className] The `