mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 03:00:19 +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 = {
|
||||
dataset: {
|
||||
raw: token.raw
|
||||
},
|
||||
attrs: {
|
||||
contenteditable: 'true'
|
||||
}
|
||||
}
|
||||
let id
|
||||
@ -55,11 +52,7 @@ export default function image (h, cursor, block, token, outerClass) {
|
||||
renderIcon(h, 'ag-image-icon-delete', DeleteIcon)
|
||||
]
|
||||
const renderImageContainer = (...args) => {
|
||||
return h(`span.${CLASS_OR_ID['AG_IMAGE_CONTAINER']}`, {
|
||||
attrs: {
|
||||
contenteditable: 'true'
|
||||
}
|
||||
}, args)
|
||||
return h(`span.${CLASS_OR_ID['AG_IMAGE_CONTAINER']}`, {}, args)
|
||||
}
|
||||
|
||||
// the src image is still loading, so use the url Map base64.
|
||||
|
Loading…
Reference in New Issue
Block a user