| | |
| | | 2: '2' |
| | | } |
| | | }) |
| | | // const removeHtmlTags= (html) =>{ |
| | | // const parser = new DOMParser(); |
| | | // const doc = parser.parseFromString(html, 'text/html'); |
| | | // return doc.body.textContent || ""; |
| | | // } |
| | | const removeHtmlTags= (html) =>{ |
| | | const parser = new DOMParser(); |
| | | const doc = parser.parseFromString(html, 'text/html'); |
| | | return doc.body.textContent || ""; |
| | | } |
| | | |
| | | const saveSubmit = async (type) => { |
| | | // 检查场景是否为空 |
| | |
| | | const innerPictureCom = item.innerPicture |
| | | console.log('innerPictureCom:', JSON.stringify(innerPictureCom)) |
| | | console.log(item.pptRemark) |
| | | // item.pptRemark = removeHtmlTags(item.pptRemark) |
| | | item.pptRemark = editorRef.value.getText() |
| | | console.log( item.pptRemark) |
| | | item.pptRemark = removeHtmlTags(item.pptRemark) |
| | | // item.pptRemark = editorRef.value.getText() |
| | | // item.pptRemark=item.pptRemark.replace(/<[^>]+>/g, '') |
| | | const formatItem = { |
| | | background: { |