I’m adding two custom marks to a writer field, mark and inline quote.
For the mark tag I’m using the following code:
window.panel.plugin("ck/mark", {
writerMarks: {
mark: {
get button() {
return {
icon: "mark-pen",
label: window.panel.$t("mark")
}
},
commands() {
return () => this.toggle()
},
get name() {
return "mark"
},
get schema() {
return {
parseDOM: [{ tag: "mark" }],
toDOM: () => ["mark", 0]
}
}
}
}
});
I can add the mark (and quote) and save the page but after a page refresh any mark or quote tag is deleted from the text. Also the mark and quote don’t display any tooltip text or label (expecting label: window.panel.$t("mark")
).
Kirby 4.3