From 74fce720194a8b5e3b1ce57268c3babb17d72a52 Mon Sep 17 00:00:00 2001 From: Angelo Arcillas <69749146+zerexei@users.noreply.github.com> Date: Fri, 12 Aug 2022 20:59:54 +0800 Subject: [PATCH 1/2] fix: [Selector Manager Config] broken link (#4504) fix: [Selector Manager Config] broken link --- docs/modules/Selectors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/Selectors.md b/docs/modules/Selectors.md index 1abeda50e..0684708dd 100644 --- a/docs/modules/Selectors.md +++ b/docs/modules/Selectors.md @@ -29,7 +29,7 @@ const editor = grapesjs.init({ }); ``` -Check the full list of available options here: [Selector Manager Config](https://github.com/artf/grapesjs/blob/master/src/selector_manager/config/config.js) +Check the full list of available options here: [Selector Manager Config](https://github.com/artf/grapesjs/blob/master/src/selector_manager/config/config.ts) ## Initialization From 62fe8d60736c647ca969e7a40e600e25eaca607f Mon Sep 17 00:00:00 2001 From: tyutony <30591406+tyutony@users.noreply.github.com> Date: Fri, 12 Aug 2022 21:26:52 +0800 Subject: [PATCH 2/2] Fix wrong describe type on EditorConfig dragMode (#4505) config dragMode describe would be 'translate' | 'absolute' and not boolean. it cause wrong alert when use typescript. Co-authored-by: Artur Arseniev --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index d1beb8bec..a7c975d24 100644 --- a/index.d.ts +++ b/index.d.ts @@ -175,7 +175,7 @@ declare namespace grapesjs { * 'absolute' - Move components absolutely (design tools way) * 'translate' - Use translate CSS from transform property * To get more about this feature read: https://github.com/artf/grapesjs/issues/1936 */ - dragMode?: boolean; + dragMode?: 'translate' | 'absolute'; /** When the editor is placed in a scrollable container (eg. modals) this might * cause elements inside the canvas (eg. floating toolbars) to be misaligned.