]> BookStack Code Mirror - bookstack/commit
Aligned some editor events, Changed wysiwyg custom styles loading
authorDan Brown <redacted>
Tue, 8 Feb 2022 01:01:37 +0000 (01:01 +0000)
committerDan Brown <redacted>
Tue, 8 Feb 2022 01:01:37 +0000 (01:01 +0000)
commite0d938005591c14e1b9ad593b772ea427b8f281d
tree4cdfd924a4c23b4bf96816420a262f874e50aa12
parent15647a040999e8f41265937dc16c1a810b7de631
Aligned some editor events, Changed wysiwyg custom styles loading

- Removed old 'editor-*-update' commands to instead use the aligned
  'editor::replace' command that we already have.
- Changed the way custom styles are loaded for the WYSIWYG editor so we
  don't need an API call but instead scape content from the parent page
  header using comments as identifiers. Added tests to ensure comments
  exist and align.
app/Http/Controllers/HomeController.php
resources/js/components/markdown-editor.js
resources/js/components/page-editor.js
resources/js/wysiwyg/config.js
resources/views/common/custom-head.blade.php
routes/web.php
tests/Settings/CustomHeadContentTest.php