diff --git a/docs/modules/Plugins.md b/docs/modules/Plugins.md index 40872ec76..9089d166e 100644 --- a/docs/modules/Plugins.md +++ b/docs/modules/Plugins.md @@ -182,4 +182,4 @@ grapesjs.init({ ## Boilerplate -For fast plugin development, we highly recommend using [grapesjs-cli](https://github.com/GrapesJS/cli) which helps to avoid the hassle of setting up all the dependencies and configurations for development and building (no need to touch Webpack o Babel configurations). For more information check the repository. +For fast plugin development, we highly recommend using [grapesjs-cli](https://github.com/GrapesJS/cli) which helps to avoid the hassle of setting up all the dependencies and configurations for development and building (no need to touch Webpack or Babel configurations). For more information check the repository. diff --git a/src/commands/index.ts b/src/commands/index.ts index fe8546d85..089bf6066 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -141,7 +141,7 @@ export default class CommandsModule extends Module trg.delegate?.move?.(trg) || trg).filter(Boolean); - const target = targets[0] as Component | undefined; + const target = targets[targets.length - 1] as Component | undefined; const nativeDrag = event?.type === 'dragstart'; const modes = ['absolute', 'translate']; diff --git a/src/undo_manager/index.ts b/src/undo_manager/index.ts index 2328cef42..450555772 100644 --- a/src/undo_manager/index.ts +++ b/src/undo_manager/index.ts @@ -321,6 +321,14 @@ export default class UndoManagerModule extends Module { + * // Do stuff without tracking + * }); + */ skip(clb: Function) { const isTracking = !!this.um.isTracking();