mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 21:46:22 +00:00
setear style en los divs de alineación
arregla el estilo en sitios que no tienen css para los [data-align]
This commit is contained in:
parent
b0d78dfade
commit
f798b5781e
1 changed files with 3 additions and 0 deletions
|
@ -27,16 +27,19 @@ export const parentBlocks: { [propName: string]: EditorNode } = {
|
||||||
left: makeParentBlock("div[data-align=left]", () => {
|
left: makeParentBlock("div[data-align=left]", () => {
|
||||||
const el = document.createElement("div");
|
const el = document.createElement("div");
|
||||||
el.dataset.align = "left";
|
el.dataset.align = "left";
|
||||||
|
el.style.textAlign = "left";
|
||||||
return el;
|
return el;
|
||||||
}),
|
}),
|
||||||
center: makeParentBlock("div[data-align=center]", () => {
|
center: makeParentBlock("div[data-align=center]", () => {
|
||||||
const el = document.createElement("div");
|
const el = document.createElement("div");
|
||||||
el.dataset.align = "center";
|
el.dataset.align = "center";
|
||||||
|
el.style.textAlign = "center";
|
||||||
return el;
|
return el;
|
||||||
}),
|
}),
|
||||||
right: makeParentBlock("div[data-align=right]", () => {
|
right: makeParentBlock("div[data-align=right]", () => {
|
||||||
const el = document.createElement("div");
|
const el = document.createElement("div");
|
||||||
el.dataset.align = "right";
|
el.dataset.align = "right";
|
||||||
|
el.style.textAlign = "right";
|
||||||
return el;
|
return el;
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue