mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
4855b522e3
commit
d3a3b5e7e4
1 changed files with 4 additions and 0 deletions
|
@ -788,6 +788,10 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
|
|||
if (newData === nameElement.dataset.title.trim()) {
|
||||
return;
|
||||
}
|
||||
if (newData.length > Constants.SIZE_TITLE) {
|
||||
showMessage(window.siyuan.languages["_kernel"]["106"]);
|
||||
return false;
|
||||
}
|
||||
const newUpdated = dayjs().format("YYYYMMDDHHmmss");
|
||||
transaction(protyle, [{
|
||||
action: "setAttrViewName",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue