vue-editify 0.0.15 → 0.0.16
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/lib/editify.es.js +3 -19
- package/lib/editify.umd.js +1 -1
- package/package.json +1 -1
- package/src/core/index.js +2 -20
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/core/index.js
CHANGED
@@ -174,26 +174,8 @@ export const blockIsTask = element => {
|
|
174
174
|
|
175
175
|
//将某个块元素转为段落
|
176
176
|
export const blockToParagraph = element => {
|
177
|
-
|
178
|
-
|
179
|
-
let marks = {}
|
180
|
-
for (let key in element.marks) {
|
181
|
-
if (key != 'data-editify-list' && key != 'data-editify-value') {
|
182
|
-
marks[key] = element.marks[key]
|
183
|
-
}
|
184
|
-
}
|
185
|
-
element.marks = marks
|
186
|
-
}
|
187
|
-
//如果是任务列表
|
188
|
-
if (blockIsTask(element)) {
|
189
|
-
let marks = {}
|
190
|
-
for (let key in element.marks) {
|
191
|
-
if (key != 'data-editify-task') {
|
192
|
-
marks[key] = element.marks[key]
|
193
|
-
}
|
194
|
-
}
|
195
|
-
element.marks = marks
|
196
|
-
}
|
177
|
+
element.marks = null
|
178
|
+
element.styles = null
|
197
179
|
element.parsedom = AlexElement.BLOCK_NODE
|
198
180
|
}
|
199
181
|
|
package/src/index.js
CHANGED