mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-27 01:14:07 +01:00
This commit is contained in:
parent
6d2ff690b2
commit
0d5d63f22a
5 changed files with 14 additions and 2 deletions
|
|
@ -252,6 +252,7 @@ export class Title {
|
|||
private rename(protyle: IProtyle) {
|
||||
clearTimeout(this.timeout);
|
||||
if (!validateName(this.editElement.textContent)) {
|
||||
this.setTitle(this.editElement.textContent.substring(0, Constants.SIZE_TITLE));
|
||||
return false;
|
||||
}
|
||||
this.timeout = window.setTimeout(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue