DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Integration: #1676 flat Convert Cell items
aiongg4f8cc475c50e
diff --git a/crates/engine/src/cmd/table/registry.rs b/crates/engine/src/cmd/table/registry.rsindex c6b0dda17..0374b71df 100644--- a/crates/engine/src/cmd/table/registry.rs+++ b/crates/engine/src/cmd/table/registry.rs@@ -208,7 +208,7 @@ fn table_specs() -> Vec<CommandSpec> {cmd!("table.placeGraphic","Convert Cell to Graphic Cell",- ["Table", "Convert Cell Type"],+ ["Table"],None,"{path? | base64?, name?: with base64, fit?: proportional|fill (default proportional), story?, table?, rows?: [a, b] | row?, cols?: [a, b] | col? (the target cells; default: the selection)} — an image in the target cell (its text is kept but hidden)",in_table,@@ -217,7 +217,7 @@ fn table_specs() -> Vec<CommandSpec> {cmd!("table.textCell","Convert Cell to Text Cell",- ["Table", "Convert Cell Type"],+ ["Table"],None,"{story?, table?, rows?: [a, b] | row?, cols?: [a, b] | col? (the target cells; default: the selection)} — drop the target cells' graphics",in_table,diff --git a/crates/ui-egui/src/menus/tables.rs b/crates/ui-egui/src/menus/tables.rsindex b361927cd..d654a02c7 100644--- a/crates/ui-egui/src/menus/tables.rs+++ b/crates/ui-egui/src/menus/tables.rs@@ -453,10 +453,8 @@ pub const MENUS: &[(&str, &[&str])] = &["cmd:table.unmerge","cmd:table.splitHorizontally","cmd:table.splitVertically",- ">Convert Cell Type","ui:app.graphicCell|Convert Cell to Graphic Cell…","cmd:table.textCell",- "<",">Convert Rows","cmd:table.convertRowsToHeader","cmd:table.convertRowsToBody",diff --git a/crates/ui-egui/src/menus/tests.rs b/crates/ui-egui/src/menus/tests.rsindex abf3552d4..d7b6fc0ed 100644--- a/crates/ui-egui/src/menus/tests.rs+++ b/crates/ui-egui/src/menus/tests.rs@@ -2233,7 +2233,8 @@ fn the_table_menu_follows_indesigns_order() {"Unmerge Cells","Split Cell Horizontally","Split Cell Vertically",- "Convert Cell Type >",+ "Convert Cell to Graphic Cell…",+ "Convert Cell to Text Cell","Convert Rows >","-","Distribute Rows Evenly",