Browse Source
Merge pull request #4917 from wangeditor-team/fix-max-length
Merge pull request #4917 from wangeditor-team/fix-max-length
Fix max lengthpull/4919/head

committed by
GitHub

No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 72 additions and 14 deletions
-
12packages/core/src/constants/index.ts
-
14packages/core/src/editor/plugins/with-content.ts
-
60packages/core/src/editor/plugins/with-max-length.ts
@ -0,0 +1,12 @@ |
|||
export const IGNORE_TAGS = new Set([ |
|||
'doctype', |
|||
'!doctype', |
|||
'meta', |
|||
'script', |
|||
'style', |
|||
'link', |
|||
'frame', |
|||
'iframe', |
|||
'title', |
|||
'svg', // TODO 暂时忽略
|
|||
]) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue