]> BookStack Code Mirror - bookstack/commit
Added ability to use templates
authorDan Brown <redacted>
Sun, 11 Aug 2019 19:04:43 +0000 (20:04 +0100)
committerDan Brown <redacted>
Sun, 11 Aug 2019 19:04:43 +0000 (20:04 +0100)
commitde3e9ab094eb58b400cd5206bd5b4246094363a9
tree4c43a56688c1005a6350f5c27ce21e5ac5e489b3
parent2ebbc6b658e80c1a291de9d699627c82ed07577f
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.
17 files changed:
app/Entities/Repos/PageRepo.php
app/Http/Controllers/PageController.php
app/Http/Controllers/PageTemplateController.php [new file with mode: 0644]
resources/assets/icons/chevron-down.svg [new file with mode: 0644]
resources/assets/js/components/index.js
resources/assets/js/components/markdown-editor.js
resources/assets/js/components/template-manager.js [new file with mode: 0644]
resources/assets/js/components/wysiwyg-editor.js
resources/assets/sass/_blocks.scss
resources/assets/sass/_components.scss
resources/lang/en/entities.php
resources/views/pages/editor-toolbox.blade.php
resources/views/pages/template-manager-list.blade.php [new file with mode: 0644]
resources/views/pages/template-manager.blade.php [new file with mode: 0644]
resources/views/pages/templates-manager.blade.php [deleted file]
routes/web.php
tests/Entity/PageTemplateTest.php