mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 06:18:49 +01:00
This commit is contained in:
parent
7d3b55d269
commit
4fc5f0e7ec
1 changed files with 4 additions and 0 deletions
|
|
@ -552,6 +552,10 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
|
|||
const avMaskElement = document.querySelector(".av__mask");
|
||||
const inputElement = avMaskElement.querySelector(".b3-text-field") as HTMLInputElement;
|
||||
if (inputElement) {
|
||||
const style = getComputedStyle(cellElements[0]);
|
||||
inputElement.style.fontSize = style.fontSize;
|
||||
inputElement.style.lineHeight = style.lineHeight;
|
||||
inputElement.style.fontFamily = style.fontFamily;
|
||||
if (["text", "email", "phone", "block", "template"].includes(type)) {
|
||||
inputElement.value = cellElements[0].querySelector(".av__celltext")?.textContent || "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue