|
@@ -398,18 +398,8 @@ extension KMMainViewController: KMLeftSideViewControllerDelegate {
|
|
}
|
|
}
|
|
|
|
|
|
func enterEditMode(_ obj: KMLeftSideViewController) {
|
|
func enterEditMode(_ obj: KMLeftSideViewController) {
|
|
- if(self.toolbarController.toolbarType != .Page) {
|
|
|
|
- self.toolbarController.toolbarType = .Page
|
|
|
|
- if (hasEnterPageEdit()) {
|
|
|
|
- self.exitPageEdit()
|
|
|
|
- } else {
|
|
|
|
- self.enterPageEdit()
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (hasEnterPageEdit()) {
|
|
|
|
- self.exitPageEdit()
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ let item : KMToolBoxItem = (self.toolbarController.mainToolBarView?.toolbarItemFindItemIdentifiers(value: KMDocumentPageToolbarItemIdentifier))!
|
|
|
|
+ self.toolbarController.mainToolBarView?.delegate?.toolbarViewController?(self.toolbarController.mainToolBarView!, clickMode: .Page, toolbar: item)
|
|
}
|
|
}
|
|
|
|
|
|
func searchAction(searchString: String,isCase:Bool) {
|
|
func searchAction(searchString: String,isCase:Bool) {
|