release: v4.7.6

This commit is contained in:
luochao 2021-07-30 10:45:55 +08:00
parent 924c1b10f1
commit f683830e9b
6 changed files with 19 additions and 15 deletions

View File

@ -1,3 +1,11 @@
## [4.7.6](https://github.com/wangeditor-team/wangEditor/compare/v4.7.5...v4.7.6) (2021-07-30)
### Bug Fixes
* 解决全选删除后,设置引用,全屏的问题 ([514d563](https://github.com/wangeditor-team/wangEditor/commit/514d56323442685ce1a80faf911208c635daf5ab))
* 修复列表下无法设置超链接的问题 ([00bfdb5](https://github.com/wangeditor-team/wangEditor/commit/00bfdb5bc20e00cd2d632de45a6d9c7b3a2cea67))
## [4.7.5](https://github.com/wangeditor-team/wangEditor/compare/v4.7.4...v4.7.5) (2021-07-02) ## [4.7.5](https://github.com/wangeditor-team/wangEditor/compare/v4.7.4...v4.7.5) (2021-07-02)

View File

@ -1,6 +1,6 @@
{ {
"name": "wangeditor", "name": "wangeditor",
"version": "4.7.5", "version": "4.7.6",
"description": "wangEditor - 轻量级 web 富文本编辑器,配置方便,使用简单,开源免费", "description": "wangEditor - 轻量级 web 富文本编辑器,配置方便,使用简单,开源免费",
"homepage": "http://www.wangeditor.com/", "homepage": "http://www.wangeditor.com/",
"keywords": [ "keywords": [

View File

@ -182,10 +182,9 @@ export default {
// type -> 'emoji' / 'image' // type -> 'emoji' / 'image'
type: 'emoji', type: 'emoji',
// content -> 数组 // content -> 数组
content: content: '😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣'.split(
'😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣'.split( /\s/
/\s/ ),
),
}, },
{ {
// tab 的标题 // tab 的标题
@ -193,10 +192,9 @@ export default {
// type -> 'emoji' / 'image' // type -> 'emoji' / 'image'
type: 'emoji', type: 'emoji',
// content -> 数组 // content -> 数组
content: content: '👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏'.split(
'👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏'.split( /\s/
/\s/ ),
),
}, },
], ],

View File

@ -61,8 +61,7 @@ SimpleHtmlParser.prototype = {
// regexps // regexps
startTagRe: startTagRe: /^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,
/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,
endTagRe: /^<\/([^>\s]+)[^>]*>/m, endTagRe: /^<\/([^>\s]+)[^>]*>/m,
attrRe: /([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm, attrRe: /([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,

View File

@ -69,8 +69,8 @@ class LineHeight extends DropListMenu implements MenuActive {
//获取range 开头结束的dom //获取range 开头结束的dom
const StartElem: DomElement = $(editor.selection.getSelectionStartElem()) const StartElem: DomElement = $(editor.selection.getSelectionStartElem())
const EndElem: DomElement = $(editor.selection.getSelectionEndElem()) const EndElem: DomElement = $(editor.selection.getSelectionEndElem())
const childList: NodeListOf<ChildNode> | undefined = const childList: NodeListOf<ChildNode> | undefined = editor.selection.getRange()
editor.selection.getRange()?.commonAncestorContainer.childNodes ?.commonAncestorContainer.childNodes
arrayDom_a.push(this.getDom(StartElem.elems[0])) arrayDom_a.push(this.getDom(StartElem.elems[0]))
childList?.forEach((item, index) => { childList?.forEach((item, index) => {
if (item === this.getDom(StartElem.elems[0])) { if (item === this.getDom(StartElem.elems[0])) {

View File

@ -6,8 +6,7 @@
export function EMPTY_FN() {} export function EMPTY_FN() {}
//用于校验是否为url格式字符串 //用于校验是否为url格式字符串
export const urlRegex = export const urlRegex = /^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/
/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/
// 编辑器为了方便继续输入/换行等原因 主动生成的空标签 // 编辑器为了方便继续输入/换行等原因 主动生成的空标签
export const EMPTY_P = '<p data-we-empty-p=""><br></p>' export const EMPTY_P = '<p data-we-empty-p=""><br></p>'