}
});
+ document.addEventListener("keydown", function(event) {
+ if (event.ctrlKey && event.key === "s") {
+ event.preventDefault();
+ event.stopPropagation();
+
+ $this.save.save()
+ }
+ }, true);
+
$(window).on('hashchange', function () {
/*if ($this.maskHashEvent) {
return;
['hr', 'quote'],
['ul'],
['table', 'image', 'link'],
- ['scrollSync']
+ ['scrollSync'],
]
});
-
this.editor.getMarkdown();
},
$("[data-key]").each(function () {
let e = $(this);
- key($(this).data('key'), function () {
+ key($(this).data('key'), function (event) {
if ($(e).is('[data-key-skipintextfields]') && $this.markdowneditor.isfocusOnFormItem()) {
return true;
}
$(e).addClass('hover');
$this.markdowneditor.runAction($(e).data('action'));
+
setTimeout(function () {
$(e).removeClass('hover')
}, 150);
<nav class="markdown-toolbar-left" id="markdown-toolbar-left">
<div class="markdown-toolbar-save-block">
<a href="#" data-icon="save" data-action="save.save" data-tooltip="{{__('Sauvegarder')}} (Ctrl+S)"
- data-key="ctrl+s"></a>
+ ></a>
<a nohref data-icon="loading" class=""></a>
</div>
<a href="#" data-icon="undo" data-action="undo.undo"