|
1031 | 1031 | * CKEDITOR.instances.editor1.insertHtml( '<p>This is a new paragraph.</p>' );
|
1032 | 1032 | *
|
1033 | 1033 | * Fires the {@link #event-insertHtml} and {@link #event-afterInsertHtml} events. The HTML is inserted
|
1034 |
| - * in {@link #event-insertHtml} event's listener with a default priority (10) so you can add listeners with |
| 1034 | + * in the {@link #event-insertHtml} event's listener with a default priority (10) so you can add listeners with |
1035 | 1035 | * lower or higher priorities in order to execute some code before or after the HTML is inserted.
|
1036 | 1036 | *
|
1037 | 1037 | * @param {String} html HTML code to be inserted into the editor.
|
|
1043 | 1043 | * the selected position. This mode should be used when inserting "htmlified" plain text
|
1044 | 1044 | * (HTML without inline styles and styling elements like `<b>`, `<strong>`, `<span style="...">`).
|
1045 | 1045 | *
|
1046 |
| - * @param {CKEDITOR.dom.range} [range] If specified the HTML will be inserted into the range |
1047 |
| - * instead of into the selection. The selection will be placed at the end of insertion (like in the normal case). |
| 1046 | + * @param {CKEDITOR.dom.range} [range] If specified, the HTML will be inserted into the range |
| 1047 | + * instead of into the selection. The selection will be placed at the end of the insertion (like in the normal case). |
1048 | 1048 | * Introduced in CKEditor 4.5.
|
1049 | 1049 | */
|
1050 | 1050 | insertHtml: function( html, mode, range ) {
|
|
1126 | 1126 |
|
1127 | 1127 | /**
|
1128 | 1128 | * Gets the selected HTML (it is returned as a {@link CKEDITOR.dom.documentFragment document fragment}
|
1129 |
| - * or a string) and removes the selected part of the DOM. This method is designed to work as user would |
| 1129 | + * or a string) and removes the selected part of the DOM. This method is designed to work as the user would |
1130 | 1130 | * expect the cut and delete functionalities to work.
|
1131 | 1131 | *
|
1132 | 1132 | * See also:
|
|
1136 | 1136 | *
|
1137 | 1137 | * @since 4.5
|
1138 | 1138 | * @param {Boolean} [toString] If `true`, then a stringified HTML will be returned.
|
1139 |
| - * @param {Boolean} [removeEmptyBlock=false] Default `false` means that the function will keep empty block (if the |
1140 |
| - * whole content was removed) or it will create it (if block element was removed) and set the selection in that block. |
1141 |
| - * If `true` the empty will be removed or not created. In this case the function will not handle the selection. |
| 1139 | + * @param {Boolean} [removeEmptyBlock=false] Default `false` means that the function will keep an empty block (if the |
| 1140 | + * entire content was removed) or it will create it (if a block element was removed) and set the selection in that block. |
| 1141 | + * If `true`, the empty block will be removed or not created. In this case the function will not handle the selection. |
1142 | 1142 | * @returns {CKEDITOR.dom.documentFragment/String/null}
|
1143 | 1143 | */
|
1144 | 1144 | extractSelectedHtml: function( toString, removeEmptyBlock ) {
|
|
0 commit comments