From ed167288c8801237fec33bc9b9635e510b6dfa80 Mon Sep 17 00:00:00 2001 From: Rick Butterfield Date: Fri, 22 Oct 2021 10:08:11 +0100 Subject: [PATCH] Change event name to `rte.shortcut.saveAndPublish` --- .../src/common/directives/components/content/edit.controller.js | 2 +- .../src/common/services/tinymce.service.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js index 2d78b4b2bd97..50a32e0b0576 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js @@ -200,7 +200,7 @@ } })); - evts.push(eventsService.on("rte.shortcut.publish", function () { + evts.push(eventsService.on("rte.shortcut.saveAndPublish", function () { $scope.saveAndPublish(); })); diff --git a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js index d8e50e9860a0..070504d93232 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js @@ -1223,7 +1223,7 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s editor.addShortcut('Ctrl+P', '', function () { angularHelper.safeApply($rootScope, function () { - eventsService.emit("rte.shortcut.publish"); + eventsService.emit("rte.shortcut.saveAndPublish"); }); });