]> BookStack Code Mirror - bookstack/log
bookstack
13 months agowhitespace only 4970/head
nesges [Sun, 21 Apr 2024 15:44:01 +0000 (17:44 +0200)]
whitespace only

13 months agobetter accessibility for honepot formfield
nesges [Sun, 21 Apr 2024 14:08:28 +0000 (16:08 +0200)]
better accessibility for honepot formfield

13 months agoadd ambrosia-container to registration form as honeypot for bots: new form field...
nesges [Fri, 19 Apr 2024 07:35:09 +0000 (09:35 +0200)]
add ambrosia-container to registration form as honeypot for bots: new form field "username" must not be filled

13 months agofixed mislabeling of name input
nesges [Fri, 19 Apr 2024 07:18:34 +0000 (09:18 +0200)]
fixed mislabeling of name input

13 months agoCode Editor: Added scala to language list
Dan Brown [Tue, 16 Apr 2024 13:44:17 +0000 (14:44 +0100)]
Code Editor: Added scala to language list

For #4953

13 months agoTags: Stopped recycle bin tags being counted on index
Dan Brown [Mon, 15 Apr 2024 17:44:59 +0000 (18:44 +0100)]
Tags: Stopped recycle bin tags being counted on index

For #4892
Added test to cover.

13 months agoMerge pull request #4904 from C0rn3j/optimize-images
Dan Brown [Mon, 15 Apr 2024 17:07:29 +0000 (18:07 +0100)]
Merge pull request #4904 from C0rn3j/optimize-images

15KB lossless optimization via oxipng(PNG) and svgo(SVG)

13 months agoContent styles: Made links underlined for visibility
Dan Brown [Sat, 13 Apr 2024 14:48:39 +0000 (15:48 +0100)]
Content styles: Made links underlined for visibility

Inline with A11y recommendations where color may not be reliable on its
own.
Tested various content link scenarios across chrome, safari & FF.
For #4939

13 months agoMerge pull request #4930 from BookStackApp/split_md_js
Dan Brown [Mon, 8 Apr 2024 13:46:06 +0000 (14:46 +0100)]
Merge pull request #4930 from BookStackApp/split_md_js

JS Build: Split markdown to own file, updated packages

13 months agoJS Build: Split markdown to own file, updated packages 4930/head
Dan Brown [Mon, 8 Apr 2024 13:41:51 +0000 (14:41 +0100)]
JS Build: Split markdown to own file, updated packages

Markdown-related code was growing, representing half of app.js main
bundle code while only being needed in one view/scenario.
This extracts markdown related code to its own built file.
Related to #4858

13 months agoMerge pull request #4921 from BookStackApp/v24-02
Dan Brown [Fri, 5 Apr 2024 14:21:05 +0000 (15:21 +0100)]
Merge pull request #4921 from BookStackApp/v24-02

v23.02.3 changes

13 months agoCSS: Removed redundant calc 4921/head
Dan Brown [Fri, 5 Apr 2024 14:18:58 +0000 (15:18 +0100)]
CSS: Removed redundant calc

13 months agoPage Content: Aligned max-width across viewer and editors
Dan Brown [Fri, 5 Apr 2024 14:06:08 +0000 (15:06 +0100)]
Page Content: Aligned max-width across viewer and editors

For #4916

13 months agoWYSIWYG descriptions: Allowed anchor target attrs
Dan Brown [Wed, 3 Apr 2024 15:46:53 +0000 (16:46 +0100)]
WYSIWYG descriptions: Allowed anchor target attrs

Allowed since this is a control in the editor UI, but would previously
be stripped by editor config & server-side filtering.
For #4925

14 months agoReferences: Fixed references count/list recycle bin interaction
Dan Brown [Mon, 1 Apr 2024 16:08:53 +0000 (17:08 +0100)]
References: Fixed references count/list recycle bin interaction

Count and reference list would get references then attempt to load
entities, which could fail to load if in the recycle bin.
This updates the queries to effectively ignore references for items we
can't see (in recycle bin).
Added test to cover.

For #4918

14 months agoCode: Fixed highlighting issues when no code language set
Dan Brown [Sun, 31 Mar 2024 13:33:08 +0000 (14:33 +0100)]
Code: Fixed highlighting issues when no code language set

For #4917

14 months agoUse zopfli for oxipng for extra 3KB~ 4904/head
Martin Rys [Tue, 26 Mar 2024 11:31:54 +0000 (12:31 +0100)]
Use zopfli for oxipng for extra 3KB~

14 months agoMerge pull request #4907 from BookStackApp/licensing_update
Dan Brown [Sun, 24 Mar 2024 12:01:01 +0000 (12:01 +0000)]
Merge pull request #4907 from BookStackApp/licensing_update

Dependency Licensing Improvements

14 months agoLicensing: Added license gen as composer command 4907/head
Dan Brown [Sun, 24 Mar 2024 11:58:31 +0000 (11:58 +0000)]
Licensing: Added license gen as composer command

14 months agoLicensing: Added links and tests for new licenses endpoint
Dan Brown [Sat, 23 Mar 2024 22:04:18 +0000 (22:04 +0000)]
Licensing: Added links and tests for new licenses endpoint

For #4907

14 months agoLicensing: Added licenses app view
Dan Brown [Sat, 23 Mar 2024 16:31:13 +0000 (16:31 +0000)]
Licensing: Added licenses app view

Extracted many methods to a new "MetaController" in the process.

14 months ago15KB lossless optimization via oxipng(PNG) and svgo(SVG)
Martin Rys [Sat, 23 Mar 2024 15:33:11 +0000 (16:33 +0100)]
15KB lossless optimization via oxipng(PNG) and svgo(SVG)

14 months agoLicensing: Updated license gen scripts to share logic
Dan Brown [Sat, 23 Mar 2024 15:33:05 +0000 (15:33 +0000)]
Licensing: Updated license gen scripts to share logic

14 months agoLicensing: Added script to gen info for JS packages
Dan Brown [Sat, 23 Mar 2024 15:19:58 +0000 (15:19 +0000)]
Licensing: Added script to gen info for JS packages

14 months agoLicensing: Added script to build PHP library licensing information
Dan Brown [Fri, 22 Mar 2024 14:44:23 +0000 (14:44 +0000)]
Licensing: Added script to build PHP library licensing information

14 months agoMigrations: Added prefix support to schema inspection
Dan Brown [Tue, 19 Mar 2024 10:30:26 +0000 (10:30 +0000)]
Migrations: Added prefix support to schema inspection

14 months agoMerge branch 'development' into C0rn3j/development
Dan Brown [Mon, 18 Mar 2024 14:35:16 +0000 (14:35 +0000)]
Merge branch 'development' into C0rn3j/development

14 months agoMeta: Updated workflows, licence and readme
Dan Brown [Mon, 18 Mar 2024 14:24:14 +0000 (14:24 +0000)]
Meta: Updated workflows, licence and readme

- Updated license year
- Updated some readme wording, removed lapsed sponsor, Removed twitter
  link, added link to alt github source
- Update cache action for GH workflows since GH was complaining

14 months agoMerge pull request #4903 from BookStackApp/laravel10
Dan Brown [Sun, 17 Mar 2024 17:00:03 +0000 (17:00 +0000)]
Merge pull request #4903 from BookStackApp/laravel10

Framework: Upgrade from Laravel 9 to 10

14 months agoFramework: Addressed deprecations 4903/head
Dan Brown [Sun, 17 Mar 2024 16:52:19 +0000 (16:52 +0000)]
Framework: Addressed deprecations

14 months agoDeps: Updated custom symfony/mailer package
Dan Brown [Sun, 17 Mar 2024 16:32:59 +0000 (16:32 +0000)]
Deps: Updated custom symfony/mailer package

Done during #4903 work

14 months agoDeps: Updated intervention library from 2 to 3
Dan Brown [Sun, 17 Mar 2024 16:03:12 +0000 (16:03 +0000)]
Deps: Updated intervention library from 2 to 3

Major version change, required some changes to API
For #4903

14 months agoTesting: Updated PHPUnit from 9 to 10
Dan Brown [Sun, 17 Mar 2024 15:41:11 +0000 (15:41 +0000)]
Testing: Updated PHPUnit from 9 to 10

For #4903

14 months agoMigrations: Updated with type hints instead of php doc
Dan Brown [Sun, 17 Mar 2024 15:29:09 +0000 (15:29 +0000)]
Migrations: Updated with type hints instead of php doc

Also updated code to properly import used facades.
For #4903

14 months agoFramework: Fixed issues breaking tests
Dan Brown [Sat, 16 Mar 2024 15:26:34 +0000 (15:26 +0000)]
Framework: Fixed issues breaking tests

For #4903

14 months agoFramework: Upgrade from Laravel 9 to 10
Dan Brown [Sat, 16 Mar 2024 15:12:14 +0000 (15:12 +0000)]
Framework: Upgrade from Laravel 9 to 10

Following Laravel guidance and GitHub diff.
Not yet in tested state with app-specific changes made.

14 months agoDockerfile: Don't cache 50MB of lists and use a single layer, make it pretty 4895/head
Martin Rys [Tue, 12 Mar 2024 13:04:33 +0000 (14:04 +0100)]
Dockerfile: Don't cache 50MB of lists and use a single layer, make it pretty

14 months agoDev: Fixed flaky OIDC test, updated dev version 4894/head
Dan Brown [Tue, 12 Mar 2024 12:08:26 +0000 (12:08 +0000)]
Dev: Fixed flaky OIDC test, updated dev version

14 months agoUpdated minimum PHP version from 8.0 to 8.1
Dan Brown [Tue, 12 Mar 2024 11:29:51 +0000 (11:29 +0000)]
Updated minimum PHP version from 8.0 to 8.1

For #4893

14 months agoUpdated translator attribution before release v24.02.1
Dan Brown [Sun, 10 Mar 2024 18:45:32 +0000 (18:45 +0000)]
Updated translator attribution before release v24.02.1

14 months agoUpdated translations with latest Crowdin changes (#4877)
Dan Brown [Sun, 10 Mar 2024 18:36:12 +0000 (18:36 +0000)]
Updated translations with latest Crowdin changes (#4877)

14 months agoMerge branch 'totp-patch' into development
Dan Brown [Sun, 10 Mar 2024 18:32:02 +0000 (18:32 +0000)]
Merge branch 'totp-patch' into development

14 months agoMFA: Copied autocomplete changes from totp to backup codes
Dan Brown [Sun, 10 Mar 2024 18:31:01 +0000 (18:31 +0000)]
MFA: Copied autocomplete changes from totp to backup codes

Also added tests to cover.
Related to #4849

14 months agoTOTP: Added one-time-code autofill
Dan Brown [Sun, 10 Mar 2024 18:24:42 +0000 (18:24 +0000)]
TOTP: Added one-time-code autofill

During review of #4849
Tested on Firefox & Chromium desktop.

14 months agoPage nav: Fixed nbsp being represented as nothing
Dan Brown [Sat, 9 Mar 2024 15:52:09 +0000 (15:52 +0000)]
Page nav: Fixed nbsp being represented as nothing

Now represented in page nav using a normal space to avoid complete
removal of space.
Added test to cover.
For #4836

14 months agoBreadcrumbs: Set book/shelf lists to use name ordering
Dan Brown [Sat, 9 Mar 2024 15:24:44 +0000 (15:24 +0000)]
Breadcrumbs: Set book/shelf lists to use name ordering

Previously in database order (id) which is not predictable
nor parsable for users.
For #4876

14 months agoPage Display: Fixed highlighting for elements in nested details
Dan Brown [Sat, 9 Mar 2024 15:07:51 +0000 (15:07 +0000)]
Page Display: Fixed highlighting for elements in nested details

For #4878

15 months agoEntity popular queriy: Loaded parents for selector breadcrumbs
Dan Brown [Wed, 28 Feb 2024 13:20:24 +0000 (13:20 +0000)]
Entity popular queriy: Loaded parents for selector breadcrumbs

15 months ago404: Fixed entity list issue with entity with non-visible parent
Dan Brown [Wed, 28 Feb 2024 13:07:34 +0000 (13:07 +0000)]
404: Fixed entity list issue with entity with non-visible parent

Adds our mixed entity list loader to popular queries for more efficient
loading.

15 months agoTranslations: Updated translator attribution, added serbian to locales
Dan Brown [Wed, 28 Feb 2024 12:29:09 +0000 (12:29 +0000)]
Translations: Updated translator attribution, added serbian to locales

15 months agoUpdated translations with latest Crowdin changes (#4803)
Dan Brown [Wed, 28 Feb 2024 12:19:36 +0000 (12:19 +0000)]
Updated translations with latest Crowdin changes (#4803)

15 months agoMerge branch 'v23-12' into development
Dan Brown [Wed, 28 Feb 2024 12:11:39 +0000 (12:11 +0000)]
Merge branch 'v23-12' into development

Updated composer deps again to take lock file to current

15 months agoDeps: Updated composer packages 4870/head
Dan Brown [Mon, 26 Feb 2024 11:17:36 +0000 (11:17 +0000)]
Deps: Updated composer packages

15 months agoSessions: Prevent image urls being part of session URL history
Dan Brown [Thu, 22 Feb 2024 11:22:08 +0000 (11:22 +0000)]
Sessions: Prevent image urls being part of session URL history

To prevent them being considered for redirects.
Includes test to cover.
For #4863

15 months agoTheme System: Added AUTH_PRE_REGISTER logical event
Dan Brown [Wed, 21 Feb 2024 15:30:29 +0000 (15:30 +0000)]
Theme System: Added AUTH_PRE_REGISTER logical event

Included tests to cover.
Manually tested on standard and social (GitHub) auth.
For #4833

15 months agoDeps: Updated npm & composer deps
Dan Brown [Tue, 20 Feb 2024 18:21:59 +0000 (18:21 +0000)]
Deps: Updated npm & composer deps

Avoided updating markdown-it package to 14 for now since it would cause
bundle size to inflate. Don't think ESBuild is properly tree shaking
"entities" sub package which inflates size.
(Copied this message from december deps update).

15 months agoBreadcrumbs: Fixed bad dropdown menu placement at small sizes
Dan Brown [Tue, 20 Feb 2024 18:03:32 +0000 (18:03 +0000)]
Breadcrumbs: Fixed bad dropdown menu placement at small sizes

For #4824

15 months agoWYSIWYG: Improved a range of text direction/alignment scenarios
Dan Brown [Tue, 20 Feb 2024 14:15:22 +0000 (14:15 +0000)]
WYSIWYG: Improved a range of text direction/alignment scenarios

- Removes 'span' from being a valid part of alignment formats so it's
  not used to align contents, since it's going to mostly be an inline
  format, wheras you'd really want alignment on the parent block.
- Adds direction cleaning to all direction change events, to remove
  direction styles and child direction controls which may complicate
  matters and cause direction changes not to show.
- Makes text direction controls work with table cell range selections,
  which TinyMCE does not consider by default, via manual handling.

For #4843

15 months agoCover images: Updated description wording to better detail size
Dan Brown [Mon, 19 Feb 2024 20:26:04 +0000 (20:26 +0000)]
Cover images: Updated description wording to better detail size

To make it clearer that the advised size may not be fixed.
For #4748

15 months agoWYSIWYG: Updated code handling to respect direction
Dan Brown [Sun, 18 Feb 2024 17:55:56 +0000 (17:55 +0000)]
WYSIWYG: Updated code handling to respect direction

Specifically supports "dir" attribute being on top level "pre" element,
and handles application/switching of this within the editor.

For #4809

15 months agoMerge pull request #4850 from BookStackApp/table_improvements
Dan Brown [Sat, 17 Feb 2024 16:40:27 +0000 (16:40 +0000)]
Merge pull request #4850 from BookStackApp/table_improvements

Range of WYSIWYG Editor Table Handling Improvements

15 months agoTables: Added dynamic table header toggle 4850/head
Dan Brown [Sat, 17 Feb 2024 16:28:13 +0000 (16:28 +0000)]
Tables: Added dynamic table header toggle

Shows in table context toolbar when in the first row.

15 months agoTables: Added menu items to clear formatting and sizes
Dan Brown [Fri, 16 Feb 2024 14:38:30 +0000 (14:38 +0000)]
Tables: Added menu items to clear formatting and sizes

15 months agoTables: Added fix to ensure proper clear formatting on cell selections
Dan Brown [Thu, 15 Feb 2024 16:29:37 +0000 (16:29 +0000)]
Tables: Added fix to ensure proper clear formatting on cell selections

15 months agoTurned off autocomplete for TOTP codes 4849/head
Mattic [Thu, 15 Feb 2024 15:22:35 +0000 (09:22 -0600)]
Turned off autocomplete for TOTP codes

Small QOL change to turn off autocomplete when entering TOTP codes since they're one time use only.

15 months agoTables: Updated selection style to avoid scroll overflow
Dan Brown [Thu, 15 Feb 2024 14:40:27 +0000 (14:40 +0000)]
Tables: Updated selection style to avoid scroll overflow

Fixes #4844

15 months agoUpdated tinymce from 6.7.2 to 6.8.3
Dan Brown [Thu, 15 Feb 2024 14:12:47 +0000 (14:12 +0000)]
Updated tinymce from 6.7.2 to 6.8.3

15 months agoMerge branch 'development' of github.com:BookStackApp/BookStack into development
Dan Brown [Wed, 14 Feb 2024 10:36:36 +0000 (10:36 +0000)]
Merge branch 'development' of github.com:BookStackApp/BookStack into development

15 months agoRTL: Fixed pagination not responding to RTL layout
Dan Brown [Wed, 14 Feb 2024 10:36:00 +0000 (10:36 +0000)]
RTL: Fixed pagination not responding to RTL layout

For #4808

15 months agoMerge pull request #4794 from BookStackApp/en_tweaks
Dan Brown [Tue, 13 Feb 2024 14:13:29 +0000 (14:13 +0000)]
Merge pull request #4794 from BookStackApp/en_tweaks

Text: Tweaks to EN text for consistency/readability

15 months agoHeader: Fixed mobile menu falling out of header
Dan Brown [Tue, 13 Feb 2024 14:00:34 +0000 (14:00 +0000)]
Header: Fixed mobile menu falling out of header

Changed button to be within-DOM rather than absolute positioned.
Also improves RTL handling by showing menu on the right side.

Fixes #4841

15 months agoMerge pull request #4827 from BookStackApp/query_revamp
Dan Brown [Sun, 11 Feb 2024 15:56:32 +0000 (15:56 +0000)]
Merge pull request #4827 from BookStackApp/query_revamp

Update of entity loading to be more efficient and avoid global addSelects

15 months agoQueries: Update API to align data with previous versions 4827/head
Dan Brown [Sun, 11 Feb 2024 15:42:37 +0000 (15:42 +0000)]
Queries: Update API to align data with previous versions

Ensures fields returned match API docs and previous versions of
BookStack where we were accidentally returning more fields than
expected.
Updates tests to cover many of these.
Also updated clockwork to ignore image requests for less noisy
debugging.
Also updated chapter page query to not be loading all page data, via new
query in PageQueries.

15 months agoQueries: Addressed failing test cases from recent changes
Dan Brown [Thu, 8 Feb 2024 17:18:03 +0000 (17:18 +0000)]
Queries: Addressed failing test cases from recent changes

15 months agoQueries: Updated old use-specific entity query classes
Dan Brown [Thu, 8 Feb 2024 16:39:59 +0000 (16:39 +0000)]
Queries: Updated old use-specific entity query classes

- Updated name to align, and differentate from new 'XQueries' clases.
- Removed old sketchy base class with app resolving workarounds, to a
  proper injection-based approach.
- Also fixed wrong translation text used in PageQueries.

15 months agoQueries: Moved out or removed some class-level items
Dan Brown [Wed, 7 Feb 2024 22:41:45 +0000 (22:41 +0000)]
Queries: Moved out or removed some class-level items

Also ran auto-removal of unused imports across app folder.

15 months agoQueries: Extracted static page,chapter,shelf queries to classes
Dan Brown [Wed, 7 Feb 2024 21:58:27 +0000 (21:58 +0000)]
Queries: Extracted static page,chapter,shelf queries to classes

15 months agoQueries: Updated all app book static query uses
Dan Brown [Wed, 7 Feb 2024 16:37:36 +0000 (16:37 +0000)]
Queries: Updated all app book static query uses

15 months agoQueries: Migrated revision repo queries to new class
Dan Brown [Wed, 7 Feb 2024 15:09:16 +0000 (15:09 +0000)]
Queries: Migrated revision repo queries to new class

15 months agoQueries: Extracted PageRepo queries to own class
Dan Brown [Mon, 5 Feb 2024 17:35:49 +0000 (17:35 +0000)]
Queries: Extracted PageRepo queries to own class

Started new class for PageRevisions too as part of these changes

15 months agoQueries: Extracted chapter repo queries to class
Dan Brown [Mon, 5 Feb 2024 15:59:20 +0000 (15:59 +0000)]
Queries: Extracted chapter repo queries to class

Updated query classes to align to interface for common aligned
operations.
Extracted repeated string-identifier-based finding from page/chapter
repos to shared higher-level entity queries.

15 months agoMerge pull request #4828 from shashinma/development
Dan Brown [Mon, 5 Feb 2024 11:54:32 +0000 (11:54 +0000)]
Merge pull request #4828 from shashinma/development

Update PWA manifest orientation from 'portrait' to 'any'

15 months agoUpdate PWA manifest orientation to any 4828/head
Mikhail Shashin [Mon, 5 Feb 2024 01:28:22 +0000 (04:28 +0300)]
Update PWA manifest orientation to any

Changed the orientation settings in PwaManifestBuilder.php from 'portrait' to 'any'. This allows the PWA to adjust to any screen orientation, enhancing user flexibility.

15 months agoQueries: Migrated bookshelf repo queries to new class
Dan Brown [Sun, 4 Feb 2024 19:32:19 +0000 (19:32 +0000)]
Queries: Migrated bookshelf repo queries to new class

15 months agoQueries: Migrated BookRepo queries to new query class
Dan Brown [Sun, 4 Feb 2024 17:35:16 +0000 (17:35 +0000)]
Queries: Migrated BookRepo queries to new query class

Also moved to a non-static approach, and added a high-level class to
allow easy access to all other entity queries, for use in mixed-entity
scenarios and easier/simpler injection.

15 months agoDB: Started update of entity loading to avoid global selects
Dan Brown [Sun, 4 Feb 2024 14:39:01 +0000 (14:39 +0000)]
DB: Started update of entity loading to avoid global selects

Removes page/chpater addSelect global query, to load book slug, and
instead extracts base queries to be managed in new static class, while
updating specific entitiy relation loading to use our more efficient
MixedEntityListLoader where appropriate.

Related to #4823

15 months agoPlonker Remediation: Removed dd line left in from debugging
Dan Brown [Thu, 1 Feb 2024 12:57:26 +0000 (12:57 +0000)]
Plonker Remediation: Removed dd line left in from debugging

15 months agoMerge branch 'chapter-templates' into development
Dan Brown [Thu, 1 Feb 2024 12:55:38 +0000 (12:55 +0000)]
Merge branch 'chapter-templates' into development

15 months agoDefault chapter templates: Added tests, extracted repo logic
Dan Brown [Thu, 1 Feb 2024 12:51:47 +0000 (12:51 +0000)]
Default chapter templates: Added tests, extracted repo logic

- Updated existing book tests to be generic to all default templates,
  and updated with chapter testing.
- Extracted repeated logic in the Book/Chapter repos to be shared in the
  BaseRepo.

Review of #4750

15 months agoDefault chapter templates: Updated api docs and tests
Dan Brown [Thu, 1 Feb 2024 12:22:16 +0000 (12:22 +0000)]
Default chapter templates: Updated api docs and tests

Also applied minor tweaks to some wording and logic.

During review of #4750

16 months agoMerge pull request #4815 from BookStackApp/comment_wysiwyg
Dan Brown [Wed, 31 Jan 2024 16:57:36 +0000 (16:57 +0000)]
Merge pull request #4815 from BookStackApp/comment_wysiwyg

Comment WYSIWYG Inputs

16 months agoComments: Added HTML filter test, fixed placeholder in dark mode 4815/head
Dan Brown [Wed, 31 Jan 2024 16:47:58 +0000 (16:47 +0000)]
Comments: Added HTML filter test, fixed placeholder in dark mode

16 months agoComments: Removed remaining uses of redundant 'text' field
Dan Brown [Wed, 31 Jan 2024 16:35:58 +0000 (16:35 +0000)]
Comments: Removed remaining uses of redundant 'text' field

Opened #4821 to remove the DB field in a few releases time.

16 months agoComments: Added HTML filter on load, tinymce elem filtering
Dan Brown [Wed, 31 Jan 2024 16:20:22 +0000 (16:20 +0000)]
Comments: Added HTML filter on load, tinymce elem filtering

- Added filter on load to help prevent potentially dangerous comment
  HTML in DB at load time (if it gets passed input filtering, or is
  existing).
- Added TinyMCE valid_elements for input wysiwygs, to gracefully degrade
  content at point of user-view, rather than surprising the user by
  stripping content, which TinyMCE would show, post-save.

16 months agoComments: Added wysiwyg link selector, updated tests, removed command
Dan Brown [Wed, 31 Jan 2024 14:22:04 +0000 (14:22 +0000)]
Comments: Added wysiwyg link selector, updated tests, removed command

- Updated existing tests with recent back-end changes, mainly to use
  HTML data.
- Removed old comment regen command that's no longer required.

16 months agoComments: Added back-end HTML support, fixed editor focus
Dan Brown [Tue, 30 Jan 2024 15:16:58 +0000 (15:16 +0000)]
Comments: Added back-end HTML support, fixed editor focus

Also fixed handling of editors when moved in DOM, to properly remove
then re-init before & after move to avoid issues.

16 months agoComments: Added input wysiwyg for creating/updating comments
Dan Brown [Tue, 30 Jan 2024 14:27:09 +0000 (14:27 +0000)]
Comments: Added input wysiwyg for creating/updating comments

Not supporting old content, existing HTML or updating yet.

16 months agoWYSIWYG: Altered how custom head added to editors
Dan Brown [Tue, 30 Jan 2024 11:38:47 +0000 (11:38 +0000)]
WYSIWYG: Altered how custom head added to editors

Updated to parse and add as DOM nodes instead of innerHTML to avoid
triggering an update of all head content, which would throw warnings in
chromium in regard to setting the base URI.

For #4814

16 months agoadded template to chapter API controller 4750/head
Sascha [Mon, 29 Jan 2024 18:59:03 +0000 (19:59 +0100)]
added template to chapter API controller

16 months agoextraded template form to own file and changed translations
Sascha [Mon, 29 Jan 2024 18:55:39 +0000 (19:55 +0100)]
extraded template form to own file and changed translations

Morty Proxy This is a proxified and sanitized view of the page, visit original site.