mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
parent
f8c046d182
commit
fec6c65b78
@ -20,7 +20,7 @@ module.exports = function (ngApp, events) {
|
|||||||
link: function (scope, element, attrs) {
|
link: function (scope, element, attrs) {
|
||||||
|
|
||||||
function tinyMceSetup(editor) {
|
function tinyMceSetup(editor) {
|
||||||
editor.on('ExecCommand change NodeChange ObjectResized', (e) => {
|
editor.on('ExecCommand change input NodeChange ObjectResized', (e) => {
|
||||||
let content = editor.getContent();
|
let content = editor.getContent();
|
||||||
$timeout(() => {
|
$timeout(() => {
|
||||||
scope.mceModel = content;
|
scope.mceModel = content;
|
||||||
@ -29,7 +29,10 @@ module.exports = function (ngApp, events) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
editor.on('keydown', (event) => {
|
editor.on('keydown', (event) => {
|
||||||
scope.$emit('editor-keydown', event);
|
if (event.keyCode === 83 && (navigator.platform.match("Mac") ? event.metaKey : event.ctrlKey)) {
|
||||||
|
event.preventDefault();
|
||||||
|
scope.$emit('save-draft', event);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
editor.on('init', (e) => {
|
editor.on('init', (e) => {
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
@import "header";
|
@import "header";
|
||||||
@import "lists";
|
@import "lists";
|
||||||
@import "pages";
|
@import "pages";
|
||||||
@import "comments";
|
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user