1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Added ability to use templates

- Added replace, append and prepend actions for template content into
both the WYSIWYG editor and markdown editor.
- Added further testing to cover.
This commit is contained in:
Dan Brown
2019-08-11 20:04:43 +01:00
parent 2ebbc6b658
commit de3e9ab094
17 changed files with 368 additions and 16 deletions

View File

@ -27,6 +27,7 @@ import customCheckbox from "./custom-checkbox";
import bookSort from "./book-sort";
import settingAppColorPicker from "./setting-app-color-picker";
import entityPermissionsEditor from "./entity-permissions-editor";
import templateManager from "./template-manager";
const componentMapping = {
'dropdown': dropdown,
@ -57,7 +58,8 @@ const componentMapping = {
'custom-checkbox': customCheckbox,
'book-sort': bookSort,
'setting-app-color-picker': settingAppColorPicker,
'entity-permissions-editor': entityPermissionsEditor
'entity-permissions-editor': entityPermissionsEditor,
'template-manager': templateManager,
};
window.components = {};