mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
parent
4fa73be80e
commit
8681c5f613
@ -166,13 +166,13 @@ function getSetupCallback(options) {
|
||||
return function(editor) {
|
||||
editor.on('ExecCommand change input NodeChange ObjectResized', editorChange);
|
||||
listenForCommonEvents(editor);
|
||||
registerShortcuts(editor);
|
||||
listenForDragAndPaste(editor, options);
|
||||
|
||||
editor.on('init', () => {
|
||||
editorChange();
|
||||
scrollToQueryString(editor);
|
||||
window.editor = editor;
|
||||
registerShortcuts(editor);
|
||||
});
|
||||
|
||||
editor.on('PreInit', () => {
|
||||
|
@ -16,6 +16,8 @@ export function register(editor) {
|
||||
editor.shortcuts.add('meta+e', '', ['codeeditor', false, 'pre']);
|
||||
editor.shortcuts.add('meta+8', '', ['FormatBlock', false, 'code']);
|
||||
editor.shortcuts.add('meta+shift+E', '', ['FormatBlock', false, 'code']);
|
||||
editor.shortcuts.add('meta+o', '', 'InsertOrderedList');
|
||||
editor.shortcuts.add('meta+p', '', 'InsertUnorderedList');
|
||||
|
||||
// Save draft shortcut
|
||||
editor.shortcuts.add('meta+S', '', () => {
|
||||
|
@ -1,10 +1,10 @@
|
||||
@extends('layouts.plain')
|
||||
@section('document-class', setting()->getForCurrentUser('dark-mode-enabled') ? 'dark-mode ' : '')
|
||||
@section('document-class', 'bg-white ' . (setting()->getForCurrentUser('dark-mode-enabled') ? 'dark-mode ' : ''))
|
||||
|
||||
@section('content')
|
||||
<div class="px-l pb-m m-s card">
|
||||
<div class="p-m">
|
||||
|
||||
<h4>{{ trans('editor.editor_license') }}</h4>
|
||||
<h4 class="mt-s">{{ trans('editor.editor_license') }}</h4>
|
||||
<p>
|
||||
{!! trans('editor.editor_tiny_license', ['tinyLink' => '<a href="https://www.tiny.cloud/" target="_blank" rel="noopener noreferrer">TinyMCE</a>']) !!}
|
||||
<br>
|
||||
@ -112,7 +112,21 @@
|
||||
<td><code>Cmd</code>+<code>9</code></td>
|
||||
<td>
|
||||
{{ trans('editor.callouts') }} <br>
|
||||
{{ trans('editor.callouts_cycle') }}
|
||||
<small>{{ trans('editor.callouts_cycle') }}</small>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>Ctrl</code>+<code>O</code> <br>
|
||||
<code>Ctrl</code>+<code>P</code>
|
||||
</td>
|
||||
<td>
|
||||
<code>Cmd</code>+<code>O</code> <br>
|
||||
<code>Cmd</code>+<code>P</code>
|
||||
</td>
|
||||
<td>
|
||||
{{ trans('editor.list_numbered') }} <br>
|
||||
{{ trans('editor.list_bullet') }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user