|
@@ -234,20 +234,17 @@
|
|
|
(editor-handler/cut-block! block-id))}
|
|
(editor-handler/cut-block! block-id))}
|
|
|
"Cut")
|
|
"Cut")
|
|
|
|
|
|
|
|
- (when (editor-handler/expand-all? block-id)
|
|
|
|
|
- (ui/menu-link
|
|
|
|
|
- {:key "Expand all"
|
|
|
|
|
- :on-click (fn [_e]
|
|
|
|
|
- (editor-handler/expand-all! block-id))}
|
|
|
|
|
- "Expand all"))
|
|
|
|
|
-
|
|
|
|
|
- (when (editor-handler/collapse-all? block-id)
|
|
|
|
|
|
|
+ (ui/menu-link
|
|
|
|
|
+ {:key "Expand all"
|
|
|
|
|
+ :on-click (fn [_e]
|
|
|
|
|
+ (editor-handler/expand-all! block-id))}
|
|
|
|
|
+ "Expand all")
|
|
|
|
|
|
|
|
- (ui/menu-link
|
|
|
|
|
- {:key "Collapse all"
|
|
|
|
|
- :on-click (fn [_e]
|
|
|
|
|
- (editor-handler/collapse-all! block-id))}
|
|
|
|
|
- "Collapse all"))
|
|
|
|
|
|
|
+ (ui/menu-link
|
|
|
|
|
+ {:key "Collapse all"
|
|
|
|
|
+ :on-click (fn [_e]
|
|
|
|
|
+ (editor-handler/collapse-all! block-id))}
|
|
|
|
|
+ "Collapse all")
|
|
|
|
|
|
|
|
(when (state/sub [:plugin/simple-commands])
|
|
(when (state/sub [:plugin/simple-commands])
|
|
|
(when-let [cmds (state/get-plugins-commands-with-type :block-context-menu-item)]
|
|
(when-let [cmds (state/get-plugins-commands-with-type :block-context-menu-item)]
|