|
708 | 708 | // Make the box unselectable.
|
709 | 709 | line.unselectable();
|
710 | 710 |
|
711 |
| - line.setOpacity( that.editor.config.magicline_opacity || 1 ); |
712 |
| - |
713 | 711 | // Handle accessSpace node insertion.
|
714 | 712 | line.lineChildren[ 0 ].on( 'mouseup', function( event ) {
|
715 | 713 | line.detach();
|
|
1518 | 1516 | * causes the box to appear. The distance is expressed in pixels (px).
|
1519 | 1517 | *
|
1520 | 1518 | * // Increases the offset to 15px.
|
1521 |
| - * CKEDITOR.config.line_triggerOffset = 15; |
| 1519 | + * CKEDITOR.config.magicline_triggerOffset = 15; |
1522 | 1520 | *
|
1523 |
| - * @cfg {Number} [line_triggerOffset=30] |
| 1521 | + * @cfg {Number} [magicline_triggerOffset=30] |
1524 | 1522 | * @member CKEDITOR.config
|
1525 |
| - * @see CKEDITOR.config#line_holdDistance |
| 1523 | + * @see CKEDITOR.config#magicline_holdDistance |
1526 | 1524 | */
|
1527 | 1525 |
|
1528 | 1526 | /**
|
1529 | 1527 | * Defines the distance between mouse pointer and the box, within
|
1530 | 1528 | * which the box stays revealed and no other focus space is offered to be accessed.
|
1531 |
| - * The value is relative to {@link #line_triggerOffset}. |
| 1529 | + * The value is relative to {@link #magicline_triggerOffset}. |
1532 | 1530 | *
|
1533 |
| - * // Increases the distance to 80% of CKEDITOR.config.line_triggerOffset. |
1534 |
| - * CKEDITOR.config.line_holdDistance = .8; |
| 1531 | + * // Increases the distance to 80% of CKEDITOR.config.magicline_triggerOffset. |
| 1532 | + * CKEDITOR.config.magicline_holdDistance = .8; |
1535 | 1533 | *
|
1536 |
| - * @cfg {Number} [line_holdDistance=0.5] |
| 1534 | + * @cfg {Number} [magicline_holdDistance=0.5] |
1537 | 1535 | * @member CKEDITOR.config
|
1538 |
| - * @see CKEDITOR.config#line_triggerOffset |
| 1536 | + * @see CKEDITOR.config#magicline_triggerOffset |
1539 | 1537 | */
|
1540 | 1538 |
|
1541 | 1539 | // %REMOVE_START%
|
|
1545 | 1543 | * holds start of the current selection or just simply holds the caret.
|
1546 | 1544 | *
|
1547 | 1545 | * // Changes keystroke to CTRL + SHIFT + ,
|
1548 |
| - * CKEDITOR.config.line_keystrokeBefore = CKEDITOR.CTRL + CKEDITOR.SHIFT + 188; |
| 1546 | + * CKEDITOR.config.magicline_keystrokeBefore = CKEDITOR.CTRL + CKEDITOR.SHIFT + 188; |
1549 | 1547 | *
|
1550 | 1548 | * @ignore
|
1551 |
| - * @cfg {Number} [line_keystrokeBefore=CKEDITOR.CTRL + CKEDITOR.SHIFT + 219 (CTRL + SHIFT + [)] |
| 1549 | + * @cfg {Number} [magicline_keystrokeBefore=CKEDITOR.CTRL + CKEDITOR.SHIFT + 219 (CTRL + SHIFT + [)] |
1552 | 1550 | * @member CKEDITOR.config
|
1553 | 1551 | */
|
1554 | 1552 | // CKEDITOR.config.magicline_keystrokeBefore = CKEDITOR.CTRL + CKEDITOR.SHIFT + 219; // CTRL + SHIFT + [
|
|
1558 | 1556 | * holds start of the current selection or just simply holds the caret.
|
1559 | 1557 | *
|
1560 | 1558 | * // Changes keystroke to CTRL + SHIFT + .
|
1561 |
| - * CKEDITOR.config.line_keystrokeBefore = CKEDITOR.CTRL + CKEDITOR.SHIFT + 190; |
| 1559 | + * CKEDITOR.config.magicline_keystrokeBefore = CKEDITOR.CTRL + CKEDITOR.SHIFT + 190; |
1562 | 1560 | *
|
1563 | 1561 | * @ignore
|
1564 |
| - * @cfg {Number} [line_keystrokeBefore=CKEDITOR.CTRL + CKEDITOR.SHIFT + 221 (CTRK + SHIFT + ])] |
| 1562 | + * @cfg {Number} [magicline_keystrokeBefore=CKEDITOR.CTRL + CKEDITOR.SHIFT + 221 (CTRK + SHIFT + ])] |
1565 | 1563 | * @member CKEDITOR.config
|
1566 | 1564 | */
|
1567 | 1565 | // CKEDITOR.config.magicline_keystrokeAfter = CKEDITOR.CTRL + CKEDITOR.SHIFT + 221; // CTRL + SHIFT + ]
|
|
1572 | 1570 | * Defines box color. The color may be adjusted to enhance readability.
|
1573 | 1571 | *
|
1574 | 1572 | * // Changes color to blue.
|
1575 |
| - * CKEDITOR.config.line_boxColor = '#0000FF'; |
1576 |
| - * |
1577 |
| - * @cfg {String} [line_boxColor='#FF0000'] |
1578 |
| - * @member CKEDITOR.config |
1579 |
| - */ |
1580 |
| - |
1581 |
| -/** |
1582 |
| - * Defines box opacity. The opacity may be adjusted to enhance readability |
1583 |
| - * by revealing underlying elements. |
1584 |
| - * |
1585 |
| - * // Changes opacity to 30%. |
1586 |
| - * CKEDITOR.config.line_boxOpacity = .3; |
| 1573 | + * CKEDITOR.config.magicline_color = '#0000FF'; |
1587 | 1574 | *
|
1588 |
| - * @cfg {Number} [line_boxOpacity=1] |
| 1575 | + * @cfg {String} [magicline_color='#FF0000'] |
1589 | 1576 | * @member CKEDITOR.config
|
1590 | 1577 | */
|
1591 | 1578 |
|
|
1594 | 1581 | * {@link CKEDITOR.dtd#$block} elements as accessible by the box.
|
1595 | 1582 | *
|
1596 | 1583 | * // Enables "put everywhere" mode.
|
1597 |
| - * CKEDITOR.config.line_putEverywhere = true; |
| 1584 | + * CKEDITOR.config.magicline_putEverywhere = true; |
1598 | 1585 | *
|
1599 |
| - * @cfg {Boolean} [line_putEverywhere=false] |
| 1586 | + * @cfg {Boolean} [magicline_putEverywhere=false] |
1600 | 1587 | * @member CKEDITOR.config
|
1601 | 1588 | */
|
0 commit comments