Publish hotkey doesn't work in RTE
This commit is contained in:
committed by
Nathan Woulfe
parent
f12c4493b3
commit
976711ef1c
@@ -200,6 +200,10 @@
|
||||
}
|
||||
}));
|
||||
|
||||
evts.push(eventsService.on("rte.shortcut.publish", function () {
|
||||
$scope.saveAndPublish();
|
||||
}));
|
||||
|
||||
evts.push(eventsService.on("content.saved", function () {
|
||||
// Clear out localstorage keys that start with tinymce__
|
||||
// When we save/perist a content node
|
||||
|
||||
@@ -1221,6 +1221,12 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
|
||||
});
|
||||
});
|
||||
|
||||
editor.addShortcut('Ctrl+P', '', function () {
|
||||
angularHelper.safeApply($rootScope, function () {
|
||||
eventsService.emit("rte.shortcut.publish");
|
||||
});
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
insertLinkInEditor: function (editor, target, anchorElm) {
|
||||
|
||||
Reference in New Issue
Block a user