It is also possible to modify the default list of elements that trigger the appearance of magic line. # Adjusting List of Elements Activating Magic Line Changes the keyboard shortcut to Ctrl + ",".Ĭ_keystrokePrevious = CKEDITOR.CTRL + 188
For example: // Changes the keyboard shortcut to Ctrl + ".".Ĭ_keystrokeNext = CKEDITOR.CTRL + 190 You can also adjust the keyboard shortcuts by setting the _keystrokeNext and _keystrokePrevious configuration options, respectively. Shift+Ctrl+4 – Enables entering content (by adding a new paragraph) after a problematic element.Shift+Ctrl+3 – Enables entering content (by adding a new paragraph) before a problematic element.To further enhance CKEditor’s accessibility, the following keyboard shortcuts are available for working with magic line:
This will change magic line’s color to blue, as presented in the image below. If the default striking red color does not suit you, you can easily modify it by setting the _color configuration option, for example: _color = '#0000FF' In this example it was added after a table nested in another table, as visible below. When you click the magic line’s handle, a new paragraph will be inserted into the document. The Magic Line plugin causes a red line with a handle ( ) to appear when you hover you mouse over any such otherwise inaccessible place in an active editor. This pertains to, for example, images, tables or elements that start or end a document, lists, or even adjacent horizontal lines.ĬKEditor 4 introduced the Magic Line plugin that helps overcome these limitations. You can also add it to your custom build with online builder.ĭepending on your environment (OS, browser) it might be difficult to place the cursor and add content near some document elements.
This feature is provided through the Magic Line plugin that is included in the Standard and Full presets available from the official CKEditor 4 Download site.