ajout de la possibilité de changer les syle de texte en pixel et vert. à vir si ça fonctionne dans le front
All checks were successful
Deploy / Deploy to Production (push) Successful in 9s
All checks were successful
Deploy / Deploy to Production (push) Successful in 9s
This commit is contained in:
parent
b039131102
commit
6e27c1c53b
8 changed files with 112 additions and 0 deletions
32
site/plugins/custom-marks/index.js
Normal file
32
site/plugins/custom-marks/index.js
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
panel.plugin("custom/marks", {
|
||||
writerMarks: {
|
||||
green: {
|
||||
button: {
|
||||
icon: "brush",
|
||||
label: "Vert"
|
||||
},
|
||||
commands() {
|
||||
return () => this.toggle();
|
||||
},
|
||||
name: "green",
|
||||
schema: {
|
||||
parseDOM: [{ tag: "span.green" }],
|
||||
toDOM: () => ["span", { class: "green" }, 0]
|
||||
}
|
||||
},
|
||||
pixel: {
|
||||
button: {
|
||||
icon: "grid-full",
|
||||
label: "Pixel"
|
||||
},
|
||||
commands() {
|
||||
return () => this.toggle();
|
||||
},
|
||||
name: "pixel",
|
||||
schema: {
|
||||
parseDOM: [{ tag: "span.pixel" }],
|
||||
toDOM: () => ["span", { class: "pixel" }, 0]
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue