]> BookStack Code Mirror - bookstack/commit
Aligned page edit controller method data usage
authorDan Brown <redacted>
Sun, 17 Apr 2022 22:01:14 +0000 (23:01 +0100)
committerDan Brown <redacted>
Sun, 17 Apr 2022 22:01:14 +0000 (23:01 +0100)
commit956eb1308fe63b0d1b3cc3765a2f2b77d2dc8396
treee8a7bf82c625fef08a832f395a6266066a672f3e
parent0cc215f8c3ccf75af60d404b385f825d41ad684a
Aligned page edit controller method data usage

Extracted page editor view data gathering to its own class for
alignment. Updated the data used in views as part of the process to use
view-specific variables instead of custom attributes added to models.
Also moved tinymce library loading so it's not loaded when not using the
wysiwyg editor.
app/Entities/Tools/PageEditActivity.php
app/Entities/Tools/PageEditorData.php [new file with mode: 0644]
app/Http/Controllers/PageController.php
resources/views/pages/edit.blade.php
resources/views/pages/parts/form.blade.php
resources/views/pages/parts/wysiwyg-editor.blade.php