Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-10-29 11:45:27 +08:00
parent 15fc11e600
commit 65c8344add
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -357,6 +357,7 @@ const renderKeyboardToolbar = () => {
}
const protyle = getCurrentEditor().protyle;
protyle.toolbar.range = range;
if (!dynamicElements[0].classList.contains("fn__none")) {
if (protyle.undo.undoStack.length === 0) {
dynamicElements[0].querySelector('[data-type="undo"]').setAttribute("disabled", "disabled");