From 9bce6d3ded08de7bde6f0b64e10df838b8ac064a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Tue, 25 Jun 2024 16:33:08 +0800 Subject: [PATCH] update --- web/src/pages/Edit/components/Edit.vue | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/web/src/pages/Edit/components/Edit.vue b/web/src/pages/Edit/components/Edit.vue index 389d234b..60274a5d 100644 --- a/web/src/pages/Edit/components/Edit.vue +++ b/web/src/pages/Edit/components/Edit.vue @@ -404,7 +404,31 @@ export default { cssText, height: 30 } - } + }, + // createNodePrefixContent: (node) => { + // const el = document.createElement('div') + // el.style.width = '50px' + // el.style.height = '50px' + // el.style.background = 'red' + // return { + // el, + // width: 50, + // height: 50 + // } + // }, + // createNodePostfixContent: node => { + // const domparser = new DOMParser() + // const doc = domparser.parseFromString( + // '白日依山尽', + // 'text/html' + // ) + // const el = doc.querySelector('b') + // return { + // el, + // width: 50, + // height: 50 + // } + // }, // addContentToHeader: () => { // const el = document.createElement('div') // el.className = 'footer'