mirror of
https://github.com/marktext/marktext.git
synced 2025-05-04 03:51:01 +08:00
remove unnecessary attrs (#1241)
This commit is contained in:
parent
7341568156
commit
1c489f095e
@ -28,9 +28,6 @@ export default function image (h, cursor, block, token, outerClass) {
|
|||||||
const data = {
|
const data = {
|
||||||
dataset: {
|
dataset: {
|
||||||
raw: token.raw
|
raw: token.raw
|
||||||
},
|
|
||||||
attrs: {
|
|
||||||
contenteditable: 'true'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let id
|
let id
|
||||||
@ -55,11 +52,7 @@ export default function image (h, cursor, block, token, outerClass) {
|
|||||||
renderIcon(h, 'ag-image-icon-delete', DeleteIcon)
|
renderIcon(h, 'ag-image-icon-delete', DeleteIcon)
|
||||||
]
|
]
|
||||||
const renderImageContainer = (...args) => {
|
const renderImageContainer = (...args) => {
|
||||||
return h(`span.${CLASS_OR_ID['AG_IMAGE_CONTAINER']}`, {
|
return h(`span.${CLASS_OR_ID['AG_IMAGE_CONTAINER']}`, {}, args)
|
||||||
attrs: {
|
|
||||||
contenteditable: 'true'
|
|
||||||
}
|
|
||||||
}, args)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// the src image is still loading, so use the url Map base64.
|
// the src image is still loading, so use the url Map base64.
|
||||||
|
Loading…
Reference in New Issue
Block a user