remove unnecessary attrs (#1241)

This commit is contained in:
Ran Luo 2019-08-06 22:41:11 +08:00 committed by Felix Häusler
parent 7341568156
commit 1c489f095e

View File

@ -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.