mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 11:02:27 +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")
|
editor.conversion.for("downcast")
|
||||||
.elementToElement( {
|
.elementToElement( {
|
||||||
model: 'aside',
|
model: 'aside',
|
||||||
view: (modelElement, { writer }) => {
|
view: "aside"
|
||||||
return writer.createContainerElement(
|
|
||||||
"aside", {
|
|
||||||
class: [ "admonition", modelElement.getAttribute("type") ].join(" ")
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.attributeToAttribute({
|
.attributeToAttribute({
|
||||||
model: "type",
|
model: "type",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user