@@ -17,88 +17,88 @@ describePlugin(FontAwesome, testEditor => {
1717 it ( 'should parse an old-school fontawesome' , async ( ) => {
1818 await testEditor ( BasicEditor , {
1919 contentBefore : '<p><i class="fa fa-star"></i></p>' ,
20- contentAfter : '<p>\u200b <i class="fa fa-star"></i>\u200b </p>' ,
20+ contentAfter : '<p><i class="fa fa-star"></i></p>' ,
2121 } ) ;
2222 } ) ;
2323 it ( 'should parse a brand fontawesome' , async ( ) => {
2424 await testEditor ( BasicEditor , {
2525 contentBefore : '<p><i class="fab fa-opera"></i></p>' ,
26- contentAfter : '<p>\u200b <i class="fab fa-opera"></i>\u200b </p>' ,
26+ contentAfter : '<p><i class="fab fa-opera"></i></p>' ,
2727 } ) ;
2828 } ) ;
2929 it ( 'should parse a duotone fontawesome' , async ( ) => {
3030 await testEditor ( BasicEditor , {
3131 contentBefore : '<p><i class="fad fa-bus-alt"></i></p>' ,
32- contentAfter : '<p>\u200b <i class="fad fa-bus-alt"></i>\u200b </p>' ,
32+ contentAfter : '<p><i class="fad fa-bus-alt"></i></p>' ,
3333 } ) ;
3434 } ) ;
3535 it ( 'should parse a light fontawesome' , async ( ) => {
3636 await testEditor ( BasicEditor , {
3737 contentBefore : '<p><i class="fab fa-accessible-icon"></i></p>' ,
38- contentAfter : '<p>\u200b <i class="fab fa-accessible-icon"></i>\u200b </p>' ,
38+ contentAfter : '<p><i class="fab fa-accessible-icon"></i></p>' ,
3939 } ) ;
4040 } ) ;
4141 it ( 'should parse a regular fontawesome' , async ( ) => {
4242 await testEditor ( BasicEditor , {
4343 contentBefore : '<p><i class="far fa-money-bill-alt"></i></p>' ,
44- contentAfter : '<p>\u200b <i class="far fa-money-bill-alt"></i>\u200b </p>' ,
44+ contentAfter : '<p><i class="far fa-money-bill-alt"></i></p>' ,
4545 } ) ;
4646 } ) ;
4747 it ( 'should parse a solid fontawesome' , async ( ) => {
4848 await testEditor ( BasicEditor , {
4949 contentBefore : '<p><i class="fa fa-pastafarianism"></i></span></p>' ,
50- contentAfter : '<p>\u200b <i class="fa fa-pastafarianism"></i>\u200b </p>' ,
50+ contentAfter : '<p><i class="fa fa-pastafarianism"></i></p>' ,
5151 } ) ;
5252 } ) ;
5353 it ( 'should parse a fontawesome in a <span>' , async ( ) => {
5454 await testEditor ( BasicEditor , {
5555 contentBefore : '<p><span class="fa fa-pastafarianism"></span></p>' ,
56- contentAfter : '<p>\u200b <span class="fa fa-pastafarianism"></span>\u200b </p>' ,
56+ contentAfter : '<p><span class="fa fa-pastafarianism"></span></p>' ,
5757 } ) ;
5858 } ) ;
5959 it ( 'should parse a fontawesome in a <i>' , async ( ) => {
6060 await testEditor ( BasicEditor , {
6161 contentBefore : '<p><i class="fa fa-pastafarianism"></i></i></p>' ,
62- contentAfter : '<p>\u200b <i class="fa fa-pastafarianism"></i>\u200b </p>' ,
62+ contentAfter : '<p><i class="fa fa-pastafarianism"></i></p>' ,
6363 } ) ;
6464 } ) ;
6565 it ( 'should parse a fontawesome with more classes' , async ( ) => {
6666 await testEditor ( BasicEditor , {
6767 contentBefore : '<p><i class="red fa bordered fa-pastafarianism big"></i></p>' ,
6868 contentAfter :
69- '<p>\u200b <i class="red fa bordered fa-pastafarianism big"></i>\u200b </p>' ,
69+ '<p><i class="red fa bordered fa-pastafarianism big"></i></p>' ,
7070 } ) ;
7171 } ) ;
7272 it ( 'should parse a fontawesome with multi-line classes' , async ( ) => {
7373 await testEditor ( BasicEditor , {
7474 contentBefore : `<p><i class="fa
7575 fa-pastafarianism"></i></p>` ,
76- contentAfter : `<p>\u200b <i class="fa fa-pastafarianism"></i>\u200b </p>` ,
76+ contentAfter : `<p><i class="fa fa-pastafarianism"></i></p>` ,
7777 } ) ;
7878 } ) ;
7979 it ( 'should parse a fontawesome with more multi-line classes' , async ( ) => {
8080 await testEditor ( BasicEditor , {
8181 contentBefore : `<p><i class="red fa bordered
8282 big fa-pastafarianism scary"></i></p>` ,
83- contentAfter : `<p>\u200b <i class="red fa bordered big fa-pastafarianism scary"></i>\u200b </p>` ,
83+ contentAfter : `<p><i class="red fa bordered big fa-pastafarianism scary"></i></p>` ,
8484 } ) ;
8585 } ) ;
8686 it ( 'should parse a fontawesome at the beginning of a paragraph' , async ( ) => {
8787 await testEditor ( BasicEditor , {
8888 contentBefore : '<p><i class="fa fa-pastafarianism"></i>a[b]c</p>' ,
89- contentAfter : '<p>\u200b <i class="fa fa-pastafarianism"></i>\u200ba [b]c</p>' ,
89+ contentAfter : '<p><i class="fa fa-pastafarianism"></i>a [b]c</p>' ,
9090 } ) ;
9191 } ) ;
9292 it ( 'should parse a fontawesome in the middle of a paragraph' , async ( ) => {
9393 await testEditor ( BasicEditor , {
9494 contentBefore : '<p>a[b]c<i class="fa fa-pastafarianism"></i>def</p>' ,
95- contentAfter : '<p>a[b]c\u200b <i class="fa fa-pastafarianism"></i>\u200bdef </p>' ,
95+ contentAfter : '<p>a[b]c<i class="fa fa-pastafarianism"></i>def </p>' ,
9696 } ) ;
9797 } ) ;
9898 it ( 'should parse a fontawesome at the end of a paragraph' , async ( ) => {
9999 await testEditor ( BasicEditor , {
100100 contentBefore : '<p>a[b]c<i class="fa fa-pastafarianism"></i></p>' ,
101- contentAfter : '<p>a[b]c\u200b <i class="fa fa-pastafarianism"></i>\u200b </p>' ,
101+ contentAfter : '<p>a[b]c<i class="fa fa-pastafarianism"></i></p>' ,
102102 } ) ;
103103 } ) ;
104104 } ) ;
@@ -117,7 +117,7 @@ describePlugin(FontAwesome, testEditor => {
117117 contentBefore : '<p>ab<i class="fa fa-pastafarianism"></i>[]cd</p>' ,
118118 stepFunction : deleteForward ,
119119 contentAfter :
120- '<p>ab\u200b <i class="fa fa-pastafarianism"></i>\u200b []d</p>' ,
120+ '<p>ab\u200B <i class="fa fa-pastafarianism"></i>\u200B []d</p>' ,
121121 } ) ;
122122 } ) ;
123123 } ) ;
@@ -156,7 +156,7 @@ describePlugin(FontAwesome, testEditor => {
156156 contentBefore : '<p>ab[]<i class="fa fa-pastafarianism"></i>cd</p>' ,
157157 stepFunction : deleteBackward ,
158158 contentAfter :
159- '<p>a[]\u200b <i class="fa fa-pastafarianism"></i>\u200bcd </p>' ,
159+ '<p>a[]\u200B <i class="fa fa-pastafarianism"></i>\u200Bcd </p>' ,
160160 } ) ;
161161 } ) ;
162162 } ) ;
@@ -187,7 +187,7 @@ describePlugin(FontAwesome, testEditor => {
187187 stepFunction : async editor => {
188188 await editor . execCommand < Char > ( 'insertText' , { text : 's' } ) ;
189189 } ,
190- contentAfter : '<p>abs[]\u200b <i class="fa fa-pastafarianism"></i>\u200bcd </p>' ,
190+ contentAfter : '<p>abs[]\u200B <i class="fa fa-pastafarianism"></i>\u200Bcd </p>' ,
191191 } ) ;
192192 } ) ;
193193 it ( 'should insert a character after' , async ( ) => {
@@ -196,7 +196,7 @@ describePlugin(FontAwesome, testEditor => {
196196 stepFunction : async editor => {
197197 await editor . execCommand < Char > ( 'insertText' , { text : 's' } ) ;
198198 } ,
199- contentAfter : '<p>ab\u200b <i class="fa fa-pastafarianism"></i>\u200bs []cd</p>' ,
199+ contentAfter : '<p>ab<i class="fa fa-pastafarianism"></i>s []cd</p>' ,
200200 } ) ;
201201 } ) ;
202202 } ) ;
0 commit comments