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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-editify",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "author": "ling0523",
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
- if (blockIsList(element, true) || blockIsList(element, false)) {
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
@@ -7,7 +7,7 @@ import './icon/iconfont.css'
7
7
  //引入国际化
8
8
  import i18n from './locale'
9
9
  //版本号
10
- const version = '0.0.15'
10
+ const version = '0.0.16'
11
11
  //安装函数
12
12
  const install = (app, props) => {
13
13
  const locale = (props ? props.locale : 'zh_CN') || 'zh_CN'