@zipify/wysiwyg 3.6.1-0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/cli.js +3 -3
- package/dist/wysiwyg.mjs +1 -43
- package/example/ai-component/AiComponent.vue +0 -14
- package/lib/composables/__tests__/__snapshots__/useEditor.test.js.snap +0 -3
- package/lib/extensions/__tests__/__snapshots__/Alignment.test.js.snap +0 -15
- package/lib/extensions/__tests__/__snapshots__/BackgroundColor.test.js.snap +0 -15
- package/lib/extensions/__tests__/__snapshots__/CaseStyle.test.js.snap +0 -12
- package/lib/extensions/__tests__/__snapshots__/FontColor.test.js.snap +0 -15
- package/lib/extensions/__tests__/__snapshots__/FontFamily.test.js.snap +0 -33
- package/lib/extensions/__tests__/__snapshots__/FontSize.test.js.snap +0 -27
- package/lib/extensions/__tests__/__snapshots__/FontStyle.test.js.snap +0 -27
- package/lib/extensions/__tests__/__snapshots__/FontWeight.test.js.snap +0 -39
- package/lib/extensions/__tests__/__snapshots__/LineHeight.test.js.snap +0 -18
- package/lib/extensions/__tests__/__snapshots__/Link.test.js.snap +0 -30
- package/lib/extensions/__tests__/__snapshots__/Margin.test.js.snap +0 -9
- package/lib/extensions/__tests__/__snapshots__/StylePreset.test.js.snap +0 -45
- package/lib/extensions/__tests__/__snapshots__/Superscript.test.js.snap +0 -15
- package/lib/extensions/__tests__/__snapshots__/TextDecoration.test.js.snap +0 -63
- package/lib/extensions/core/Document.js +0 -14
- package/lib/extensions/core/__tests__/__snapshots__/NodeProcessor.test.js.snap +0 -57
- package/lib/extensions/core/__tests__/__snapshots__/TextProcessor.test.js.snap +0 -6
- package/lib/extensions/list/__tests__/__snapshots__/List.test.js.snap +0 -54
- package/package.json +1 -1
- package/lib/extensions/steps/SetDocAttr.js +0 -42
- package/lib/extensions/steps/index.js +0 -1
package/dist/wysiwyg.mjs
CHANGED
|
@@ -19584,55 +19584,13 @@ const Document$1 = Node2.create({
|
|
|
19584
19584
|
topNode: true,
|
|
19585
19585
|
content: "block+"
|
|
19586
19586
|
});
|
|
19587
|
-
class SetDocAttr extends Step {
|
|
19588
|
-
constructor(key, value, schema, stepType = "SetDocAttr") {
|
|
19589
|
-
super();
|
|
19590
|
-
this.key = key;
|
|
19591
|
-
this.value = value;
|
|
19592
|
-
this.schema = schema;
|
|
19593
|
-
this.stepType = stepType;
|
|
19594
|
-
}
|
|
19595
|
-
apply(doc2) {
|
|
19596
|
-
this.prevValue = doc2.attrs.meta[this.key];
|
|
19597
|
-
const newDoc = Node$1.fromJSON(this.schema, doc2.toJSON());
|
|
19598
|
-
newDoc.attrs.meta[this.key] = this.value;
|
|
19599
|
-
return StepResult.ok(newDoc);
|
|
19600
|
-
}
|
|
19601
|
-
invert() {
|
|
19602
|
-
return new SetDocAttr(this.key, this.prevValue, this.schema, "revertSetDocAttr");
|
|
19603
|
-
}
|
|
19604
|
-
map() {
|
|
19605
|
-
return null;
|
|
19606
|
-
}
|
|
19607
|
-
toJSON() {
|
|
19608
|
-
return {
|
|
19609
|
-
stepType: this.stepType,
|
|
19610
|
-
key: this.key,
|
|
19611
|
-
value: this.value
|
|
19612
|
-
};
|
|
19613
|
-
}
|
|
19614
|
-
static fromJSON(json) {
|
|
19615
|
-
return new SetDocAttr(json.key, json.value, json.stepType);
|
|
19616
|
-
}
|
|
19617
|
-
}
|
|
19618
|
-
Step.jsonID("setDocAttr", SetDocAttr);
|
|
19619
19587
|
const Document = Document$1.extend({
|
|
19620
19588
|
marks: MarkGroups.SETTINGS,
|
|
19621
|
-
addAttributes: () => ({
|
|
19622
|
-
meta: { default: {} }
|
|
19623
|
-
}),
|
|
19624
19589
|
onCreate() {
|
|
19625
19590
|
this.editor.view.dom.addEventListener("click", (event) => {
|
|
19626
19591
|
if (event.target.closest("a"))
|
|
19627
19592
|
event.preventDefault();
|
|
19628
19593
|
});
|
|
19629
|
-
},
|
|
19630
|
-
addCommands() {
|
|
19631
|
-
return {
|
|
19632
|
-
setDocMeta: createCommand(({ state }, key, value) => {
|
|
19633
|
-
state.tr.step(new SetDocAttr(key, value, state.schema));
|
|
19634
|
-
})
|
|
19635
|
-
};
|
|
19636
19594
|
}
|
|
19637
19595
|
});
|
|
19638
19596
|
const Paragraph$1 = Node2.create({
|
|
@@ -27482,7 +27440,7 @@ var render = function __render__46() {
|
|
|
27482
27440
|
})], 1);
|
|
27483
27441
|
};
|
|
27484
27442
|
var staticRenderFns = [];
|
|
27485
|
-
const
|
|
27443
|
+
const main_css_vue_type_style_index_0_from__2FUsers_2Fmaster_2FProjects_2FZipifyWysiwyg_2Flib_2FWysiwyg_vue_src_lang = "";
|
|
27486
27444
|
const MIN_FONT_SIZE = 5;
|
|
27487
27445
|
const MAX_FONT_SIZE = 112;
|
|
27488
27446
|
const __vue2_script = {
|
|
@@ -7,10 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
<Modal ref="modalRef" class="zw-ai-component__modal" :toggler="toggler" focus-first-control>
|
|
9
9
|
<p>Modal content</p>
|
|
10
|
-
|
|
11
|
-
<Button skin="primary" @click="onInsert">
|
|
12
|
-
Insert Content
|
|
13
|
-
</Button>
|
|
14
10
|
</Modal>
|
|
15
11
|
</div>
|
|
16
12
|
</template>
|
|
@@ -47,15 +43,6 @@ export default {
|
|
|
47
43
|
modalRef
|
|
48
44
|
});
|
|
49
45
|
|
|
50
|
-
const onInsert = () => {
|
|
51
|
-
editor.chain()
|
|
52
|
-
.focus()
|
|
53
|
-
.insertContent('Hello from AI component')
|
|
54
|
-
.setDocMeta('ai_generated', true)
|
|
55
|
-
.run();
|
|
56
|
-
toggler.close();
|
|
57
|
-
};
|
|
58
|
-
|
|
59
46
|
const isActive = computed(() => unref(toggler.isOpened));
|
|
60
47
|
|
|
61
48
|
return {
|
|
@@ -63,7 +50,6 @@ export default {
|
|
|
63
50
|
wrapperRef,
|
|
64
51
|
modalRef,
|
|
65
52
|
toggler,
|
|
66
|
-
onInsert,
|
|
67
53
|
isActive
|
|
68
54
|
};
|
|
69
55
|
}
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`change value should apply value 1`] = `
|
|
4
4
|
Object {
|
|
5
|
-
"attrs": Object {
|
|
6
|
-
"meta": Object {},
|
|
7
|
-
},
|
|
8
5
|
"content": Array [
|
|
9
6
|
Object {
|
|
10
7
|
"attrs": Object {
|
|
@@ -29,9 +26,6 @@ Object {
|
|
|
29
26
|
|
|
30
27
|
exports[`change value should remove value 1`] = `
|
|
31
28
|
Object {
|
|
32
|
-
"attrs": Object {
|
|
33
|
-
"meta": Object {},
|
|
34
|
-
},
|
|
35
29
|
"content": Array [
|
|
36
30
|
Object {
|
|
37
31
|
"attrs": Object {
|
|
@@ -52,9 +46,6 @@ Object {
|
|
|
52
46
|
|
|
53
47
|
exports[`parsing html should get alignment from rendered view 1`] = `
|
|
54
48
|
Object {
|
|
55
|
-
"attrs": Object {
|
|
56
|
-
"meta": Object {},
|
|
57
|
-
},
|
|
58
49
|
"content": Array [
|
|
59
50
|
Object {
|
|
60
51
|
"attrs": Object {
|
|
@@ -79,9 +70,6 @@ Object {
|
|
|
79
70
|
|
|
80
71
|
exports[`parsing html should get alignment from text 1`] = `
|
|
81
72
|
Object {
|
|
82
|
-
"attrs": Object {
|
|
83
|
-
"meta": Object {},
|
|
84
|
-
},
|
|
85
73
|
"content": Array [
|
|
86
74
|
Object {
|
|
87
75
|
"attrs": Object {
|
|
@@ -106,9 +94,6 @@ Object {
|
|
|
106
94
|
|
|
107
95
|
exports[`parsing html should set null if no alignment 1`] = `
|
|
108
96
|
Object {
|
|
109
|
-
"attrs": Object {
|
|
110
|
-
"meta": Object {},
|
|
111
|
-
},
|
|
112
97
|
"content": Array [
|
|
113
98
|
Object {
|
|
114
99
|
"attrs": Object {
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`apply background color should change background color 1`] = `
|
|
4
4
|
Object {
|
|
5
|
-
"attrs": Object {
|
|
6
|
-
"meta": Object {},
|
|
7
|
-
},
|
|
8
5
|
"content": Array [
|
|
9
6
|
Object {
|
|
10
7
|
"content": Array [
|
|
@@ -30,9 +27,6 @@ Object {
|
|
|
30
27
|
|
|
31
28
|
exports[`parsing html should get value from paragraph 1`] = `
|
|
32
29
|
Object {
|
|
33
|
-
"attrs": Object {
|
|
34
|
-
"meta": Object {},
|
|
35
|
-
},
|
|
36
30
|
"content": Array [
|
|
37
31
|
Object {
|
|
38
32
|
"content": Array [
|
|
@@ -58,9 +52,6 @@ Object {
|
|
|
58
52
|
|
|
59
53
|
exports[`parsing html should get value from rendered view 1`] = `
|
|
60
54
|
Object {
|
|
61
|
-
"attrs": Object {
|
|
62
|
-
"meta": Object {},
|
|
63
|
-
},
|
|
64
55
|
"content": Array [
|
|
65
56
|
Object {
|
|
66
57
|
"content": Array [
|
|
@@ -90,9 +81,6 @@ Object {
|
|
|
90
81
|
|
|
91
82
|
exports[`parsing html should get value from text 1`] = `
|
|
92
83
|
Object {
|
|
93
|
-
"attrs": Object {
|
|
94
|
-
"meta": Object {},
|
|
95
|
-
},
|
|
96
84
|
"content": Array [
|
|
97
85
|
Object {
|
|
98
86
|
"content": Array [
|
|
@@ -122,9 +110,6 @@ Object {
|
|
|
122
110
|
|
|
123
111
|
exports[`parsing html should merge paragraph and text settings 1`] = `
|
|
124
112
|
Object {
|
|
125
|
-
"attrs": Object {
|
|
126
|
-
"meta": Object {},
|
|
127
|
-
},
|
|
128
113
|
"content": Array [
|
|
129
114
|
Object {
|
|
130
115
|
"content": Array [
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`apply case style should apply capitalize 1`] = `
|
|
4
4
|
Object {
|
|
5
|
-
"attrs": Object {
|
|
6
|
-
"meta": Object {},
|
|
7
|
-
},
|
|
8
5
|
"content": Array [
|
|
9
6
|
Object {
|
|
10
7
|
"content": Array [
|
|
@@ -22,9 +19,6 @@ Object {
|
|
|
22
19
|
|
|
23
20
|
exports[`apply case style should apply case by type 1`] = `
|
|
24
21
|
Object {
|
|
25
|
-
"attrs": Object {
|
|
26
|
-
"meta": Object {},
|
|
27
|
-
},
|
|
28
22
|
"content": Array [
|
|
29
23
|
Object {
|
|
30
24
|
"content": Array [
|
|
@@ -42,9 +36,6 @@ Object {
|
|
|
42
36
|
|
|
43
37
|
exports[`apply case style should apply lowercase 1`] = `
|
|
44
38
|
Object {
|
|
45
|
-
"attrs": Object {
|
|
46
|
-
"meta": Object {},
|
|
47
|
-
},
|
|
48
39
|
"content": Array [
|
|
49
40
|
Object {
|
|
50
41
|
"content": Array [
|
|
@@ -62,9 +53,6 @@ Object {
|
|
|
62
53
|
|
|
63
54
|
exports[`apply case style should apply uppercase 1`] = `
|
|
64
55
|
Object {
|
|
65
|
-
"attrs": Object {
|
|
66
|
-
"meta": Object {},
|
|
67
|
-
},
|
|
68
56
|
"content": Array [
|
|
69
57
|
Object {
|
|
70
58
|
"content": Array [
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`apply font color should change font color 1`] = `
|
|
4
4
|
Object {
|
|
5
|
-
"attrs": Object {
|
|
6
|
-
"meta": Object {},
|
|
7
|
-
},
|
|
8
5
|
"content": Array [
|
|
9
6
|
Object {
|
|
10
7
|
"content": Array [
|
|
@@ -30,9 +27,6 @@ Object {
|
|
|
30
27
|
|
|
31
28
|
exports[`parsing html should get value from paragraph 1`] = `
|
|
32
29
|
Object {
|
|
33
|
-
"attrs": Object {
|
|
34
|
-
"meta": Object {},
|
|
35
|
-
},
|
|
36
30
|
"content": Array [
|
|
37
31
|
Object {
|
|
38
32
|
"content": Array [
|
|
@@ -58,9 +52,6 @@ Object {
|
|
|
58
52
|
|
|
59
53
|
exports[`parsing html should get value from parsed view 1`] = `
|
|
60
54
|
Object {
|
|
61
|
-
"attrs": Object {
|
|
62
|
-
"meta": Object {},
|
|
63
|
-
},
|
|
64
55
|
"content": Array [
|
|
65
56
|
Object {
|
|
66
57
|
"content": Array [
|
|
@@ -78,9 +69,6 @@ Object {
|
|
|
78
69
|
|
|
79
70
|
exports[`parsing html should get value from text 1`] = `
|
|
80
71
|
Object {
|
|
81
|
-
"attrs": Object {
|
|
82
|
-
"meta": Object {},
|
|
83
|
-
},
|
|
84
72
|
"content": Array [
|
|
85
73
|
Object {
|
|
86
74
|
"content": Array [
|
|
@@ -110,9 +98,6 @@ Object {
|
|
|
110
98
|
|
|
111
99
|
exports[`parsing html should merge paragraph and text settings 1`] = `
|
|
112
100
|
Object {
|
|
113
|
-
"attrs": Object {
|
|
114
|
-
"meta": Object {},
|
|
115
|
-
},
|
|
116
101
|
"content": Array [
|
|
117
102
|
Object {
|
|
118
103
|
"content": Array [
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`apply font family should apply closest font weight if current is unavailable 1`] = `
|
|
4
4
|
Object {
|
|
5
|
-
"attrs": Object {
|
|
6
|
-
"meta": Object {},
|
|
7
|
-
},
|
|
8
5
|
"content": Array [
|
|
9
6
|
Object {
|
|
10
7
|
"content": Array [
|
|
@@ -42,9 +39,6 @@ Object {
|
|
|
42
39
|
|
|
43
40
|
exports[`apply font family should change font family 1`] = `
|
|
44
41
|
Object {
|
|
45
|
-
"attrs": Object {
|
|
46
|
-
"meta": Object {},
|
|
47
|
-
},
|
|
48
42
|
"content": Array [
|
|
49
43
|
Object {
|
|
50
44
|
"content": Array [
|
|
@@ -76,9 +70,6 @@ Object {
|
|
|
76
70
|
|
|
77
71
|
exports[`apply font family should not change current font weight if available 1`] = `
|
|
78
72
|
Object {
|
|
79
|
-
"attrs": Object {
|
|
80
|
-
"meta": Object {},
|
|
81
|
-
},
|
|
82
73
|
"content": Array [
|
|
83
74
|
Object {
|
|
84
75
|
"content": Array [
|
|
@@ -110,9 +101,6 @@ Object {
|
|
|
110
101
|
|
|
111
102
|
exports[`apply font family should not change italic if available 1`] = `
|
|
112
103
|
Object {
|
|
113
|
-
"attrs": Object {
|
|
114
|
-
"meta": Object {},
|
|
115
|
-
},
|
|
116
104
|
"content": Array [
|
|
117
105
|
Object {
|
|
118
106
|
"content": Array [
|
|
@@ -150,9 +138,6 @@ Object {
|
|
|
150
138
|
|
|
151
139
|
exports[`apply font family should remove italic if unavailable 1`] = `
|
|
152
140
|
Object {
|
|
153
|
-
"attrs": Object {
|
|
154
|
-
"meta": Object {},
|
|
155
|
-
},
|
|
156
141
|
"content": Array [
|
|
157
142
|
Object {
|
|
158
143
|
"content": Array [
|
|
@@ -190,9 +175,6 @@ Object {
|
|
|
190
175
|
|
|
191
176
|
exports[`parsing html should get parse font name with quotes 1`] = `
|
|
192
177
|
Object {
|
|
193
|
-
"attrs": Object {
|
|
194
|
-
"meta": Object {},
|
|
195
|
-
},
|
|
196
178
|
"content": Array [
|
|
197
179
|
Object {
|
|
198
180
|
"content": Array [
|
|
@@ -222,9 +204,6 @@ Object {
|
|
|
222
204
|
|
|
223
205
|
exports[`parsing html should get set default if undefined font 1`] = `
|
|
224
206
|
Object {
|
|
225
|
-
"attrs": Object {
|
|
226
|
-
"meta": Object {},
|
|
227
|
-
},
|
|
228
207
|
"content": Array [
|
|
229
208
|
Object {
|
|
230
209
|
"content": Array [
|
|
@@ -254,9 +233,6 @@ Object {
|
|
|
254
233
|
|
|
255
234
|
exports[`parsing html should get value from paragraph 1`] = `
|
|
256
235
|
Object {
|
|
257
|
-
"attrs": Object {
|
|
258
|
-
"meta": Object {},
|
|
259
|
-
},
|
|
260
236
|
"content": Array [
|
|
261
237
|
Object {
|
|
262
238
|
"content": Array [
|
|
@@ -282,9 +258,6 @@ Object {
|
|
|
282
258
|
|
|
283
259
|
exports[`parsing html should get value from rendered view 1`] = `
|
|
284
260
|
Object {
|
|
285
|
-
"attrs": Object {
|
|
286
|
-
"meta": Object {},
|
|
287
|
-
},
|
|
288
261
|
"content": Array [
|
|
289
262
|
Object {
|
|
290
263
|
"content": Array [
|
|
@@ -314,9 +287,6 @@ Object {
|
|
|
314
287
|
|
|
315
288
|
exports[`parsing html should get value from text 1`] = `
|
|
316
289
|
Object {
|
|
317
|
-
"attrs": Object {
|
|
318
|
-
"meta": Object {},
|
|
319
|
-
},
|
|
320
290
|
"content": Array [
|
|
321
291
|
Object {
|
|
322
292
|
"content": Array [
|
|
@@ -346,9 +316,6 @@ Object {
|
|
|
346
316
|
|
|
347
317
|
exports[`parsing html should merge paragraph and text settings 1`] = `
|
|
348
318
|
Object {
|
|
349
|
-
"attrs": Object {
|
|
350
|
-
"meta": Object {},
|
|
351
|
-
},
|
|
352
319
|
"content": Array [
|
|
353
320
|
Object {
|
|
354
321
|
"content": Array [
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`apply font size should change font size 1`] = `
|
|
4
4
|
Object {
|
|
5
|
-
"attrs": Object {
|
|
6
|
-
"meta": Object {},
|
|
7
|
-
},
|
|
8
5
|
"content": Array [
|
|
9
6
|
Object {
|
|
10
7
|
"content": Array [
|
|
@@ -32,9 +29,6 @@ Object {
|
|
|
32
29
|
|
|
33
30
|
exports[`apply font size should decrease font size 1`] = `
|
|
34
31
|
Object {
|
|
35
|
-
"attrs": Object {
|
|
36
|
-
"meta": Object {},
|
|
37
|
-
},
|
|
38
32
|
"content": Array [
|
|
39
33
|
Object {
|
|
40
34
|
"content": Array [
|
|
@@ -62,9 +56,6 @@ Object {
|
|
|
62
56
|
|
|
63
57
|
exports[`apply font size should increase font size 1`] = `
|
|
64
58
|
Object {
|
|
65
|
-
"attrs": Object {
|
|
66
|
-
"meta": Object {},
|
|
67
|
-
},
|
|
68
59
|
"content": Array [
|
|
69
60
|
Object {
|
|
70
61
|
"content": Array [
|
|
@@ -92,9 +83,6 @@ Object {
|
|
|
92
83
|
|
|
93
84
|
exports[`apply font size should not decrease font size if reached limit 1`] = `
|
|
94
85
|
Object {
|
|
95
|
-
"attrs": Object {
|
|
96
|
-
"meta": Object {},
|
|
97
|
-
},
|
|
98
86
|
"content": Array [
|
|
99
87
|
Object {
|
|
100
88
|
"content": Array [
|
|
@@ -122,9 +110,6 @@ Object {
|
|
|
122
110
|
|
|
123
111
|
exports[`apply font size should not increase font size if reached limit 1`] = `
|
|
124
112
|
Object {
|
|
125
|
-
"attrs": Object {
|
|
126
|
-
"meta": Object {},
|
|
127
|
-
},
|
|
128
113
|
"content": Array [
|
|
129
114
|
Object {
|
|
130
115
|
"content": Array [
|
|
@@ -152,9 +137,6 @@ Object {
|
|
|
152
137
|
|
|
153
138
|
exports[`parsing html should get value from paragraph 1`] = `
|
|
154
139
|
Object {
|
|
155
|
-
"attrs": Object {
|
|
156
|
-
"meta": Object {},
|
|
157
|
-
},
|
|
158
140
|
"content": Array [
|
|
159
141
|
Object {
|
|
160
142
|
"content": Array [
|
|
@@ -182,9 +164,6 @@ Object {
|
|
|
182
164
|
|
|
183
165
|
exports[`parsing html should get value from rendered view 1`] = `
|
|
184
166
|
Object {
|
|
185
|
-
"attrs": Object {
|
|
186
|
-
"meta": Object {},
|
|
187
|
-
},
|
|
188
167
|
"content": Array [
|
|
189
168
|
Object {
|
|
190
169
|
"content": Array [
|
|
@@ -216,9 +195,6 @@ Object {
|
|
|
216
195
|
|
|
217
196
|
exports[`parsing html should get value from text 1`] = `
|
|
218
197
|
Object {
|
|
219
|
-
"attrs": Object {
|
|
220
|
-
"meta": Object {},
|
|
221
|
-
},
|
|
222
198
|
"content": Array [
|
|
223
199
|
Object {
|
|
224
200
|
"content": Array [
|
|
@@ -250,9 +226,6 @@ Object {
|
|
|
250
226
|
|
|
251
227
|
exports[`parsing html should merge paragraph and text settings 1`] = `
|
|
252
228
|
Object {
|
|
253
|
-
"attrs": Object {
|
|
254
|
-
"meta": Object {},
|
|
255
|
-
},
|
|
256
229
|
"content": Array [
|
|
257
230
|
Object {
|
|
258
231
|
"content": Array [
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`apply font style should make italic 1`] = `
|
|
4
4
|
Object {
|
|
5
|
-
"attrs": Object {
|
|
6
|
-
"meta": Object {},
|
|
7
|
-
},
|
|
8
5
|
"content": Array [
|
|
9
6
|
Object {
|
|
10
7
|
"content": Array [
|
|
@@ -30,9 +27,6 @@ Object {
|
|
|
30
27
|
|
|
31
28
|
exports[`apply font style should remove italic 1`] = `
|
|
32
29
|
Object {
|
|
33
|
-
"attrs": Object {
|
|
34
|
-
"meta": Object {},
|
|
35
|
-
},
|
|
36
30
|
"content": Array [
|
|
37
31
|
Object {
|
|
38
32
|
"content": Array [
|
|
@@ -58,9 +52,6 @@ Object {
|
|
|
58
52
|
|
|
59
53
|
exports[`apply font style should toggle italic to removed 1`] = `
|
|
60
54
|
Object {
|
|
61
|
-
"attrs": Object {
|
|
62
|
-
"meta": Object {},
|
|
63
|
-
},
|
|
64
55
|
"content": Array [
|
|
65
56
|
Object {
|
|
66
57
|
"content": Array [
|
|
@@ -86,9 +77,6 @@ Object {
|
|
|
86
77
|
|
|
87
78
|
exports[`apply font style should toggle italic to used 1`] = `
|
|
88
79
|
Object {
|
|
89
|
-
"attrs": Object {
|
|
90
|
-
"meta": Object {},
|
|
91
|
-
},
|
|
92
80
|
"content": Array [
|
|
93
81
|
Object {
|
|
94
82
|
"content": Array [
|
|
@@ -114,9 +102,6 @@ Object {
|
|
|
114
102
|
|
|
115
103
|
exports[`parsing html should get value from i tag 1`] = `
|
|
116
104
|
Object {
|
|
117
|
-
"attrs": Object {
|
|
118
|
-
"meta": Object {},
|
|
119
|
-
},
|
|
120
105
|
"content": Array [
|
|
121
106
|
Object {
|
|
122
107
|
"content": Array [
|
|
@@ -146,9 +131,6 @@ Object {
|
|
|
146
131
|
|
|
147
132
|
exports[`parsing html should get value from paragraph 1`] = `
|
|
148
133
|
Object {
|
|
149
|
-
"attrs": Object {
|
|
150
|
-
"meta": Object {},
|
|
151
|
-
},
|
|
152
134
|
"content": Array [
|
|
153
135
|
Object {
|
|
154
136
|
"content": Array [
|
|
@@ -174,9 +156,6 @@ Object {
|
|
|
174
156
|
|
|
175
157
|
exports[`parsing html should get value from rendered view 1`] = `
|
|
176
158
|
Object {
|
|
177
|
-
"attrs": Object {
|
|
178
|
-
"meta": Object {},
|
|
179
|
-
},
|
|
180
159
|
"content": Array [
|
|
181
160
|
Object {
|
|
182
161
|
"content": Array [
|
|
@@ -206,9 +185,6 @@ Object {
|
|
|
206
185
|
|
|
207
186
|
exports[`parsing html should get value from text 1`] = `
|
|
208
187
|
Object {
|
|
209
|
-
"attrs": Object {
|
|
210
|
-
"meta": Object {},
|
|
211
|
-
},
|
|
212
188
|
"content": Array [
|
|
213
189
|
Object {
|
|
214
190
|
"content": Array [
|
|
@@ -238,9 +214,6 @@ Object {
|
|
|
238
214
|
|
|
239
215
|
exports[`parsing html should merge paragraph and text settings 1`] = `
|
|
240
216
|
Object {
|
|
241
|
-
"attrs": Object {
|
|
242
|
-
"meta": Object {},
|
|
243
|
-
},
|
|
244
217
|
"content": Array [
|
|
245
218
|
Object {
|
|
246
219
|
"content": Array [
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`apply font weight should change font weight 1`] = `
|
|
4
4
|
Object {
|
|
5
|
-
"attrs": Object {
|
|
6
|
-
"meta": Object {},
|
|
7
|
-
},
|
|
8
5
|
"content": Array [
|
|
9
6
|
Object {
|
|
10
7
|
"content": Array [
|
|
@@ -30,9 +27,6 @@ Object {
|
|
|
30
27
|
|
|
31
28
|
exports[`apply font weight should toggle weight to bold 1`] = `
|
|
32
29
|
Object {
|
|
33
|
-
"attrs": Object {
|
|
34
|
-
"meta": Object {},
|
|
35
|
-
},
|
|
36
30
|
"content": Array [
|
|
37
31
|
Object {
|
|
38
32
|
"content": Array [
|
|
@@ -58,9 +52,6 @@ Object {
|
|
|
58
52
|
|
|
59
53
|
exports[`apply font weight should toggle weight to closest bold 1`] = `
|
|
60
54
|
Object {
|
|
61
|
-
"attrs": Object {
|
|
62
|
-
"meta": Object {},
|
|
63
|
-
},
|
|
64
55
|
"content": Array [
|
|
65
56
|
Object {
|
|
66
57
|
"content": Array [
|
|
@@ -92,9 +83,6 @@ Object {
|
|
|
92
83
|
|
|
93
84
|
exports[`apply font weight should toggle weight to closest medium 1`] = `
|
|
94
85
|
Object {
|
|
95
|
-
"attrs": Object {
|
|
96
|
-
"meta": Object {},
|
|
97
|
-
},
|
|
98
86
|
"content": Array [
|
|
99
87
|
Object {
|
|
100
88
|
"content": Array [
|
|
@@ -126,9 +114,6 @@ Object {
|
|
|
126
114
|
|
|
127
115
|
exports[`apply font weight should toggle weight to medium 1`] = `
|
|
128
116
|
Object {
|
|
129
|
-
"attrs": Object {
|
|
130
|
-
"meta": Object {},
|
|
131
|
-
},
|
|
132
117
|
"content": Array [
|
|
133
118
|
Object {
|
|
134
119
|
"content": Array [
|
|
@@ -154,9 +139,6 @@ Object {
|
|
|
154
139
|
|
|
155
140
|
exports[`parsing html should get value from b tag 1`] = `
|
|
156
141
|
Object {
|
|
157
|
-
"attrs": Object {
|
|
158
|
-
"meta": Object {},
|
|
159
|
-
},
|
|
160
142
|
"content": Array [
|
|
161
143
|
Object {
|
|
162
144
|
"content": Array [
|
|
@@ -186,9 +168,6 @@ Object {
|
|
|
186
168
|
|
|
187
169
|
exports[`parsing html should get value from paragraph 1`] = `
|
|
188
170
|
Object {
|
|
189
|
-
"attrs": Object {
|
|
190
|
-
"meta": Object {},
|
|
191
|
-
},
|
|
192
171
|
"content": Array [
|
|
193
172
|
Object {
|
|
194
173
|
"content": Array [
|
|
@@ -214,9 +193,6 @@ Object {
|
|
|
214
193
|
|
|
215
194
|
exports[`parsing html should get value from rendered view 1`] = `
|
|
216
195
|
Object {
|
|
217
|
-
"attrs": Object {
|
|
218
|
-
"meta": Object {},
|
|
219
|
-
},
|
|
220
196
|
"content": Array [
|
|
221
197
|
Object {
|
|
222
198
|
"content": Array [
|
|
@@ -246,9 +222,6 @@ Object {
|
|
|
246
222
|
|
|
247
223
|
exports[`parsing html should get value from strong tag 1`] = `
|
|
248
224
|
Object {
|
|
249
|
-
"attrs": Object {
|
|
250
|
-
"meta": Object {},
|
|
251
|
-
},
|
|
252
225
|
"content": Array [
|
|
253
226
|
Object {
|
|
254
227
|
"content": Array [
|
|
@@ -278,9 +251,6 @@ Object {
|
|
|
278
251
|
|
|
279
252
|
exports[`parsing html should get value from text 1`] = `
|
|
280
253
|
Object {
|
|
281
|
-
"attrs": Object {
|
|
282
|
-
"meta": Object {},
|
|
283
|
-
},
|
|
284
254
|
"content": Array [
|
|
285
255
|
Object {
|
|
286
256
|
"content": Array [
|
|
@@ -310,9 +280,6 @@ Object {
|
|
|
310
280
|
|
|
311
281
|
exports[`parsing html should ignore invalid value 1`] = `
|
|
312
282
|
Object {
|
|
313
|
-
"attrs": Object {
|
|
314
|
-
"meta": Object {},
|
|
315
|
-
},
|
|
316
283
|
"content": Array [
|
|
317
284
|
Object {
|
|
318
285
|
"content": Array [
|
|
@@ -330,9 +297,6 @@ Object {
|
|
|
330
297
|
|
|
331
298
|
exports[`parsing html should merge paragraph and text settings 1`] = `
|
|
332
299
|
Object {
|
|
333
|
-
"attrs": Object {
|
|
334
|
-
"meta": Object {},
|
|
335
|
-
},
|
|
336
300
|
"content": Array [
|
|
337
301
|
Object {
|
|
338
302
|
"content": Array [
|
|
@@ -370,9 +334,6 @@ Object {
|
|
|
370
334
|
|
|
371
335
|
exports[`parsing html should parse style shorthand 1`] = `
|
|
372
336
|
Object {
|
|
373
|
-
"attrs": Object {
|
|
374
|
-
"meta": Object {},
|
|
375
|
-
},
|
|
376
337
|
"content": Array [
|
|
377
338
|
Object {
|
|
378
339
|
"content": Array [
|