mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 02:02:29 +08:00
refactor(admonitions): remove no longer needed custom conversion
This commit is contained in:
parent
504879b11c
commit
a3354d4d10
@ -73,13 +73,7 @@ export default class AdmonitionEditing extends Plugin {
|
||||
editor.conversion.for("downcast")
|
||||
.elementToElement( {
|
||||
model: 'aside',
|
||||
view: (modelElement, { writer }) => {
|
||||
return writer.createContainerElement(
|
||||
"aside", {
|
||||
class: [ "admonition", modelElement.getAttribute("type") ].join(" ")
|
||||
}
|
||||
)
|
||||
}
|
||||
view: "aside"
|
||||
})
|
||||
.attributeToAttribute({
|
||||
model: "type",
|
||||
|
Loading…
x
Reference in New Issue
Block a user