432 Star 3K Fork 1.1K

GVP进击的皇虫 / BookStack

 / 详情

当编辑器的标题栏显示了搜索按钮时,搜索按钮不能正常工作

待办的
创建于  
2019-12-25 00:26
           var action = window.editor.toolbarHandlers[name];
           if (action !== "undefined") {
               $.proxy(action, window.editor)();
               window.editor.focus();
           }
       }

原因在于:当编辑器的按钮中显示了搜索按钮时,该操作去调用了.search(),然后再返回时,编辑器区域获得了焦点,又把搜索界面给隐藏了。
需要添加

else if (name == "search"){
			window.editor.search();
		}

的判断。

评论 (0)

cnspray 创建了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
Go
1
https://gitee.com/truthhun/BookStack.git
git@gitee.com:truthhun/BookStack.git
truthhun
BookStack
BookStack

搜索帮助