Changes between Version 63 and Version 78 of Ticket #9998


Ignore:
Timestamp:
Apr 25, 2014, 11:13:55 AM (5 years ago)
Author:
Olek Nowodziński
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9998 – Description

    v63 v78  
    4444
    4545* Related issues: #8438, #8439, #8440, #10359, #10515, #11483, #11592.
     46
     47----
     48
     49== Cases ==
     50
     51=== <span> created while joining two adjacent elements ===
     52Related issues: #9998
     53
     54==== Example 1 ====
     55
     561. `<p>foo</p>`
     572. `<p>^bar</p>`
     583. Backspace.
     594. `<p>line1<span style="line-height:1.6">line2</span></p>`
     60
     61==== Example 2 ====
     62
     631. `<h1>foo</h1>`
     642. `<p>^bar</p>`
     653. Backspace.
     664. `<h1>foo<span style="font-size:13px; line-height:1.6">bar</span></h1>`
     67
     68=== Attempt to preserve the visual style of the contents -> i.e. <strong> becomes <b> ===
     69
     70==== Backspace (unable to remove formatting) ====
     71
     72Related issues: #8438, #11592, #11483
     73
     741. `<p>x<strong>y^</strong></p>`
     752. Backspace.
     763. Type “z”.
     774. `<p>x<b>z^</b></p>`
     78
     79====  Backspace (underlined link becomes `<u>`) ====
     80
     81Related issues: #11592
     82
     831. `<p><a href="http://foo">[foo]</a>bar</p>`
     842. Backspace.
     853. Type "foo".
     864. `<p><u>foo^</u>bar</p>`
     875. ''Frown''
     886. ''Grin''
     89
     90'''Note''': This case uncovers the algorithm used in Webkit.
     91The engine attempts to preserve the style no matter how ridiculous it would be – it uses `<u>` because it is the closest style,
     92which corresponds visually with underlined link.
     93
     94==== Del (unable to remove formatting) ====
     95
     96Related issues: #8439, #8440
     97
     981. `<p>foo</p>`
     992. CTRL+A.
     1003. Bold.
     1014. DEL.
     1025. Type “bar”.
     1036. `<p><b>bar^</b></p>`
     104
     105=== <span> created while splitting elements (DnD), extra &nbsp; ===
     106  Related issues: #10515
     107
     1081. Set the following HTML
     109 {{{
     110<p>
     111    <span style="font-size:28px">
     112        foo
     113        <strong>[bar]</strong>
     114        <em>bam</em>
     115        bang
     116    </span>
     117</p>
     118}}}
     1192. Drag `[bar]` into `ba|m`
     1203. `editor.getData()`.
     1214. See the result.
     122 {{{
     123<p>
     124    <span style="font-size:28px">
     125        foo &nbsp;
     126        <em>ba</em>
     127    </span>
     128    <strong style="font-size:28px; line-height:44.79999923706055px">bar</strong>
     129    <em style="font-size:28px; line-height:1.6">m</em>
     130    <span style="font-size:28px; line-height:1.6"> bang</span>
     131</p>
     132}}}
     1335. Then WYSIWYG->Source->WYSIWYG.
     1346. ACF brings the ultimate destruction.
     135 {{{
     136<p>
     137    <span style="font-size:28px">foo &nbsp;<em>ba</em></span>
     138    <strong>bar</strong>
     139    <em>m</em>
     140    <span style="font-size:28px"> bang</span>
     141</p>
     142}}}
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy