]> BookStack Code Mirror - bookstack/log
bookstack
3 years agoFixed tests from streaming changes 3365/head
Dan Brown [Sun, 3 Apr 2022 15:22:31 +0000 (16:22 +0100)]
Fixed tests from streaming changes

- Added testing check to buffer stop/clear on streaming output due to
  interference during tests.
- Made content-disposition header a little safer in download responses.
- Also aligned how we check for testing environment.

3 years agoAdded streaming support to API attachment read responses
Dan Brown [Sat, 2 Apr 2022 18:20:59 +0000 (19:20 +0100)]
Added streaming support to API attachment read responses

Required some special handling due to the content being base64-encoded
within a JSON response.

3 years agoAdded streamed uploads for attachments
Dan Brown [Sat, 2 Apr 2022 17:46:48 +0000 (18:46 +0100)]
Added streamed uploads for attachments

3 years agoFixed streamed outputs in more extreme scenarios
Dan Brown [Sat, 2 Apr 2022 17:42:15 +0000 (18:42 +0100)]
Fixed streamed outputs in more extreme scenarios

Fixes hitting memory limits where downloaded file sizes are much greater
than memory limit. Stopping and flushing output buffer seemed to stop
limits causing issues when fpassthru is used.
Tested with 24M memory limit and 734M file

3 years agoUpdated attachment download responses to stream from filesystem
Dan Brown [Sat, 2 Apr 2022 17:07:43 +0000 (18:07 +0100)]
Updated attachment download responses to stream from filesystem

This allows download of attachments that are larger than current memory
limits, since we're not loading the entire file into memory any more.

For inline file responses, we take a 1kb portion of the file to sniff
before to check mime before we proceed.

3 years agoNew Crowdin updates (#3354)
Dan Brown [Wed, 30 Mar 2022 18:29:13 +0000 (19:29 +0100)]
New Crowdin updates (#3354)

3 years agoUpdated composer dependancies
Dan Brown [Wed, 30 Mar 2022 18:22:47 +0000 (19:22 +0100)]
Updated composer dependancies

3 years agoFixed settings redirect issue and custom head display
Dan Brown [Wed, 30 Mar 2022 18:15:24 +0000 (19:15 +0100)]
Fixed settings redirect issue and custom head display

- Fixed issue where redirect for `/settings` view would not be ran
  through base url generator so would not create a correct path in some
  cases. Now routed through controller with normal redirect.
- Fixed custom head content being active on settings pages due to route
  name changes, for when viewing settings, in last release.

Fixes #3356 and #3355

3 years agoNew Crowdin updates (#3353)
Dan Brown [Wed, 30 Mar 2022 12:31:59 +0000 (13:31 +0100)]
New Crowdin updates (#3353)

3 years agoUpdated translation contributors, added Basque to language options
Dan Brown [Wed, 30 Mar 2022 12:12:17 +0000 (13:12 +0100)]
Updated translation contributors, added Basque to language options

3 years agoNew Crowdin updates (#3320)
Dan Brown [Wed, 30 Mar 2022 12:00:27 +0000 (13:00 +0100)]
New Crowdin updates (#3320)

3 years agoUpdated example env with LDAP group dump option
Dan Brown [Tue, 29 Mar 2022 10:49:02 +0000 (11:49 +0100)]
Updated example env with LDAP group dump option

3 years agoPHPStan and StyleCI fixes
Dan Brown [Mon, 28 Mar 2022 10:31:06 +0000 (11:31 +0100)]
PHPStan and StyleCI fixes

- Updated PhpStan PHP version option to match project.
- Applied StyleCI changes.
- Updated static to self in WebhookFormatter, following static analysis
  guidance.
- Fixed mis-matched header tags.

3 years agoMerge pull request #3349 from BookStackApp/settings_reorg
Dan Brown [Mon, 28 Mar 2022 10:22:21 +0000 (11:22 +0100)]
Merge pull request #3349 from BookStackApp/settings_reorg

Reorganization of settings view

3 years agoAdded 404 response for non-existing setting categories 3349/head
Dan Brown [Mon, 28 Mar 2022 10:16:20 +0000 (11:16 +0100)]
Added 404 response for non-existing setting categories

- Added test to cover.

3 years agoSplit out settings view and made functional
Dan Brown [Mon, 28 Mar 2022 10:09:55 +0000 (11:09 +0100)]
Split out settings view and made functional

- Split settings out to new views using a core shared layout.
- Extracted added language text to translation files.
- Updated settings routes to be dynamic to category.
- Added redirect for old primary settings route.
- Updated existing tests to cover settings route changes.
- Added tests to cover settings view.
- Improved contrast of settings links for dark mode.

3 years agoStarted playing with new settings view layout
Dan Brown [Sat, 26 Mar 2022 21:36:05 +0000 (21:36 +0000)]
Started playing with new settings view layout

3 years agoFixed tests, applied StyleCI changes
Dan Brown [Sat, 26 Mar 2022 20:38:03 +0000 (20:38 +0000)]
Fixed tests, applied StyleCI changes

3 years agoAdded extendable/scalable formatter for webhook data
Dan Brown [Sat, 26 Mar 2022 16:44:34 +0000 (16:44 +0000)]
Added extendable/scalable formatter for webhook data

Creates a new organsied formatting system for webhook data, with
interfaces for extending with custom model formatting rules.
Allows easy usage & extension of the default bookstack formatting
behaviour when customizing webhook events via theme system, and keeps
default data customizations organised.

This also makes the following webhook data changes:
- owned_by/created_by/updated_by user details are loaded for events with
  Entity details. (POTENTIALLY BREAKING CHANGE).
- current_revision details are loaded for page update/create events.

Added testing to cover added model formatting rules.

For #3279 and #3218

3 years agoAdded manual image thumbnail exif orientation handling
Dan Brown [Sat, 26 Mar 2022 12:32:08 +0000 (12:32 +0000)]
Added manual image thumbnail exif orientation handling

Uses original image data to extract orientation exif to apply image
transformations before scaling and save. Manually done due to issues
with exif data loss during the existing Invervention image path.

For #1854

3 years agoApplied latest styleCI changes
Dan Brown [Fri, 25 Mar 2022 11:14:27 +0000 (11:14 +0000)]
Applied latest styleCI changes

3 years agoAdded pre-render sizes to wysiwyg code blocks
Dan Brown [Fri, 25 Mar 2022 11:13:04 +0000 (11:13 +0000)]
Added pre-render sizes to wysiwyg code blocks

Sets sizes on WYSIWYG code block sections based on content lines
as an early pre-codemirror height prediction to avoid excessive
jumping in the editor.

For #3326

3 years agoAdded LDAP group debugging env option
Dan Brown [Wed, 23 Mar 2022 16:34:23 +0000 (16:34 +0000)]
Added LDAP group debugging env option

Closes #3345

3 years agoAdded wysiwyg filter to handle <br> tags within code blocks
Dan Brown [Wed, 23 Mar 2022 15:11:14 +0000 (15:11 +0000)]
Added wysiwyg filter to handle <br> tags within code blocks

This filters out <br> elements within code blocks and replaces them with
newlines. The editor started using <br>'s more harshley after some
configuration changes upon upgrading tinymce, in which we standardised
on forced br tags to avoid empty elements.

For #3327

3 years agoAdded additional missing editor translations
Dan Brown [Wed, 23 Mar 2022 14:41:54 +0000 (14:41 +0000)]
Added additional missing editor translations

- Also merged StyleCI fixes

As per #3342

3 years agoFixed conctenation of direct book pages within markdown export
Dan Brown [Wed, 23 Mar 2022 14:31:42 +0000 (14:31 +0000)]
Fixed conctenation of direct book pages within markdown export

- Updated to ensure seperation with newlines.
- Added test to cover.

For #3341

3 years agoApplied StyleCI changes and updated dependancies
Dan Brown [Wed, 23 Mar 2022 12:02:01 +0000 (12:02 +0000)]
Applied StyleCI changes and updated dependancies

3 years agoMerge pull request #3333 from BookStackApp/wysiwyg_tasklist
Dan Brown [Wed, 23 Mar 2022 11:58:16 +0000 (11:58 +0000)]
Merge pull request #3333 from BookStackApp/wysiwyg_tasklist

WYSIWYG tasklist support

3 years agoUpdated justify translation for editor
Dan Brown [Wed, 23 Mar 2022 11:57:20 +0000 (11:57 +0000)]
Updated justify translation for editor

Fixes #3342

3 years agoAdded translation string for tasklist WYSIWYG action 3333/head
Dan Brown [Wed, 23 Mar 2022 11:54:27 +0000 (11:54 +0000)]
Added translation string for tasklist WYSIWYG action

3 years agoUpdated tasklist style and functionality for cross-browser use
Dan Brown [Wed, 23 Mar 2022 11:51:19 +0000 (11:51 +0000)]
Updated tasklist style and functionality for cross-browser use

- Updated styles to better align checkboxes within page content.
- Updated functionality to use a cross-compatible property on checkbox
  click within the editor.

3 years agoAdded tasklist support to markdown exporter
Dan Brown [Tue, 22 Mar 2022 14:56:51 +0000 (14:56 +0000)]
Added tasklist support to markdown exporter

3 years agoImproved tasklist wysiwyg behaviour
Dan Brown [Tue, 22 Mar 2022 14:03:20 +0000 (14:03 +0000)]
Improved tasklist wysiwyg behaviour

- Updated buttons/actions to better handle nesting.
- Added hack for better usage with normal bullets

3 years agoAdded functioning wysiwyg tasklist toolbar button
Dan Brown [Sun, 20 Mar 2022 13:30:48 +0000 (13:30 +0000)]
Added functioning wysiwyg tasklist toolbar button

- Includes new icon.
- Includes menu button overrides of existing list styles to prevent
  incompatible mixing.

3 years agoAdded WYSIWYG tasklist clicking ability
Dan Brown [Sun, 20 Mar 2022 11:59:46 +0000 (11:59 +0000)]
Added WYSIWYG tasklist clicking ability

3 years agoChanged to a psuedo-style approach for tasklist in wysiwyg
Dan Brown [Sat, 19 Mar 2022 17:12:56 +0000 (17:12 +0000)]
Changed to a psuedo-style approach for tasklist in wysiwyg

3 years agoStarted initial tasklist attempt, failed implementation
Dan Brown [Sat, 19 Mar 2022 16:04:33 +0000 (16:04 +0000)]
Started initial tasklist attempt, failed implementation

3 years agoApplied latest styleCI changes
Dan Brown [Wed, 9 Mar 2022 14:30:36 +0000 (14:30 +0000)]
Applied latest styleCI changes

3 years agoMerge pull request #3298 from BookStackApp/wysiwyg_links
Dan Brown [Wed, 9 Mar 2022 14:29:03 +0000 (14:29 +0000)]
Merge pull request #3298 from BookStackApp/wysiwyg_links

WYSIWYG editor link updates

3 years agoUpdated translation attribution before v22.02.3 release
Dan Brown [Mon, 7 Mar 2022 15:06:44 +0000 (15:06 +0000)]
Updated translation attribution before v22.02.3 release

3 years agoNew Crowdin updates (#3312)
Dan Brown [Mon, 7 Mar 2022 15:06:21 +0000 (15:06 +0000)]
New Crowdin updates (#3312)

3 years agoUpdated CSP with frame-src rules
Dan Brown [Mon, 7 Mar 2022 14:27:41 +0000 (14:27 +0000)]
Updated CSP with frame-src rules

- Configurable via 'ALLOWED_IFRAME_SOURCES' .env option.
- Also updated how CSP rules are set, with a single header being used
  instead of many.
- Also applied CSP rules to HTML export outputs.
- Updated tests to cover.

For #3314

3 years agoAdded mysql-ssl-ca option to complete .env
Dan Brown [Wed, 2 Mar 2022 21:51:18 +0000 (21:51 +0000)]
Added mysql-ssl-ca option to complete .env

3 years agoNew translations editor.php (Italian) (#3301)
Dan Brown [Tue, 1 Mar 2022 22:32:43 +0000 (22:32 +0000)]
New translations editor.php (Italian) (#3301)

3 years agoReduced dynamic fade in dark mode
Dan Brown [Tue, 1 Mar 2022 22:29:31 +0000 (22:29 +0000)]
Reduced dynamic fade in dark mode

For #3203

3 years agoUpdated strategy for empty newline sections
Dan Brown [Tue, 1 Mar 2022 17:26:06 +0000 (17:26 +0000)]
Updated strategy for empty newline sections

- For some reason, TinyMCE would handle empty paragraphs with a '&nbsp'
  by default but this would be removed when the paragraph had an
  attribute. This was fine in the old editor.
- This changes the approach to use '<br>' tags within elements
  for "spaced emptiness".
- For compatbility with any existing empty paragraphs, I updated the
  styles to show default height for empty paragraph sections.
- This also makes changes to help preserve encoded &nbsp; html tags
  since they were getting converted along the journey.

Related to #3302

3 years agoAdded cache breaker to tinymce loading systems 3303/head
Dan Brown [Tue, 1 Mar 2022 13:41:53 +0000 (13:41 +0000)]
Added cache breaker to tinymce loading systems

Takes the version from BookStack app.js paths instead of tinyMCE version
since things external from TinyMCE could be loaded using this.

3 years agoAdded a custom link context toolbar 3298/head
Dan Brown [Mon, 28 Feb 2022 13:54:33 +0000 (13:54 +0000)]
Added a custom link context toolbar

- Allows for easy unlinking, link preview or link editing.
- Created custom one to limit actions available.
- Performed refactoring of non-plugin toolbar editor code to extact into
  its own file.

Related to #3276

3 years agoAdded ctrl+shift+k shortcut to WYSIWYG
Dan Brown [Mon, 28 Feb 2022 13:29:34 +0000 (13:29 +0000)]
Added ctrl+shift+k shortcut to WYSIWYG

Shows entity select dialog for more direct entity link insertion.
Aligns with shortcut from markdown editor.

For #3244

3 years agoNew translations editor.php (Chinese Simplified) (#3291)
Dan Brown [Sun, 27 Feb 2022 17:44:58 +0000 (17:44 +0000)]
New translations editor.php (Chinese Simplified) (#3291)

3 years agoUpdated issue templates, readme and dev version
Dan Brown [Sun, 27 Feb 2022 17:26:27 +0000 (17:26 +0000)]
Updated issue templates, readme and dev version

- Updated bug report template to capture browser.
- Updated readme roadmap.
- Bumped dev version.

3 years agoImproved WYSIWYG code block behaviour via range of fixes
Dan Brown [Sun, 27 Feb 2022 17:18:08 +0000 (17:18 +0000)]
Improved WYSIWYG code block behaviour via range of fixes

- Fixed issues with new code blocks breaking or acting odd due to
  misnamed contenteditable attribute.
- Helped fix issue where code blocks may show in a strage blank state
  due to timing within shadow dom loading.
- Fixed some function timing issues where some functions required their
  async predecessor to have finished.

Tested rather heavily in firefox and brave.
Fixes #3292

3 years agoUpdated tinymce link query to break caches
Dan Brown [Sun, 27 Feb 2022 16:03:18 +0000 (16:03 +0000)]
Updated tinymce link query to break caches

Fixes #3293

3 years agoNew Crowdin updates (#3259)
Dan Brown [Sat, 26 Feb 2022 11:46:33 +0000 (11:46 +0000)]
New Crowdin updates (#3259)

3 years agoUpdated translators for v22.02 release
Dan Brown [Sat, 26 Feb 2022 11:40:09 +0000 (11:40 +0000)]
Updated translators for v22.02 release

3 years agoUpdated github issue templates
Dan Brown [Thu, 24 Feb 2022 18:26:34 +0000 (18:26 +0000)]
Updated github issue templates

- Removed titles since they don't provide added benefit upon the labels
  and would often lead to being submitted with just the placeholder
  title.
- Feature request form
  - Added further context to benefits field for hopefully better
    responses that target the core goal.
  - Added a field to ask if feature can already be achieved, to
    gain an idea if the submitter has explored other options (if
    existing).
  - Added a field to ensure the submitter has search the issue list
    before submitting.
  - Added a field to ask existing BookStack usage time to understand
    potential evolution of usage and/or influence of other platforms.

3 years agoApplied latest StyleCI changes
Dan Brown [Thu, 24 Feb 2022 15:04:09 +0000 (15:04 +0000)]
Applied latest StyleCI changes

3 years agoOn WYSIWYG details unwrap, provided better restore of cursor
Dan Brown [Thu, 24 Feb 2022 15:02:23 +0000 (15:02 +0000)]
On WYSIWYG details unwrap, provided better restore of cursor

Also prevents the toolbar from sticking around after the details block
was removed.

3 years agoUpdated JS deps
Dan Brown [Thu, 24 Feb 2022 15:02:06 +0000 (15:02 +0000)]
Updated JS deps

3 years agoUpdated composer dependancies
Dan Brown [Thu, 24 Feb 2022 14:30:55 +0000 (14:30 +0000)]
Updated composer dependancies

Includes update to dompdf v1.2 which helps address image sizing in
tables and hence fix #3190

3 years agoUpdated OIDC error handling for better error reporting
Dan Brown [Thu, 24 Feb 2022 14:16:09 +0000 (14:16 +0000)]
Updated OIDC error handling for better error reporting

Fixes issue where certain errors would not show to the user
due to extra navigation jumps which lost the error message
in the process.
This simplifies and aligns exceptions with more directly
handled exception usage at the controller level.

Fixes #3264

3 years agoUpdated incorrect feature request template description
Dan Brown [Sun, 13 Feb 2022 13:18:42 +0000 (13:18 +0000)]
Updated incorrect feature request template description

3 years agoApplied StyleCI changes, updated readme badges & roadmap
Dan Brown [Sun, 13 Feb 2022 13:16:43 +0000 (13:16 +0000)]
Applied StyleCI changes, updated readme badges & roadmap

3 years agoUpdated github actions to ignore language branch
Dan Brown [Sun, 13 Feb 2022 13:03:41 +0000 (13:03 +0000)]
Updated github actions to ignore language branch

Old branch filters did not seem to work since they are supposed to
reference the target branch, not source branch.
Instead used if statement to prevent run on crowdin branch.

3 years agoMade a pass to clean up UserRepo
Dan Brown [Sun, 13 Feb 2022 12:56:26 +0000 (12:56 +0000)]
Made a pass to clean up UserRepo

3 years agoMerge pull request #3260 from BookStackApp/wysiwyg_details
Dan Brown [Wed, 9 Feb 2022 19:33:53 +0000 (19:33 +0000)]
Merge pull request #3260 from BookStackApp/wysiwyg_details

WYSIWYG details/summary blocks

3 years agoRevamped workings of WYSIWYG code blocks 3260/head
Dan Brown [Wed, 9 Feb 2022 19:24:27 +0000 (19:24 +0000)]
Revamped workings of WYSIWYG code blocks

Code blocks in tinymce could sometimes end up exploded into the sub
elements of the codemirror display.
This changes the strategy to render codemirror within the shadow dom of
a custom element while preserving the normal pre/code DOM structure.

Still a little instability when moving/adding code blocks within details
blocks but much harder to break things now.

3 years agoUpdated PDF export to open detail blocks
Dan Brown [Wed, 9 Feb 2022 11:33:23 +0000 (11:33 +0000)]
Updated PDF export to open detail blocks

3 years agoWYSIWYG details: Improved usage reliability and dark mdoe styles
Dan Brown [Wed, 9 Feb 2022 11:25:22 +0000 (11:25 +0000)]
WYSIWYG details: Improved usage reliability and dark mdoe styles

3 years agoImproved wysiwyg details/summary edit controls
Dan Brown [Wed, 9 Feb 2022 10:40:46 +0000 (10:40 +0000)]
Improved wysiwyg details/summary edit controls

- Added specific non-editable/editable filtering to make editing within
  box more reliable.
- Updated toolbar icons and controls.

3 years agoStarted support for WYSIWYG details/summary blocks
Dan Brown [Tue, 8 Feb 2022 23:08:00 +0000 (23:08 +0000)]
Started support for WYSIWYG details/summary blocks

3 years agoChanged editor bottom padding technique
Dan Brown [Tue, 8 Feb 2022 17:05:38 +0000 (17:05 +0000)]
Changed editor bottom padding technique

- Ensures padding works across FF & Chrome, was only working on FF
  before.
- Fixes sketchy editor positioning focus on FF, since tinyMCE would
  add a hidden element to the bottom of the body which would remove/add
  our body padding causing unstable positioning.

3 years agoMerged in editor translation strings
Dan Brown [Tue, 8 Feb 2022 15:57:19 +0000 (15:57 +0000)]
Merged in editor translation strings

3 years agoUpdated with latest styleci changes
Dan Brown [Tue, 8 Feb 2022 15:29:58 +0000 (15:29 +0000)]
Updated with latest styleci changes

3 years agoMerge branch 'tinymce' into development
Dan Brown [Tue, 8 Feb 2022 15:28:56 +0000 (15:28 +0000)]
Merge branch 'tinymce' into development

3 years agoMerge crowdin changes from users API changes
Dan Brown [Tue, 8 Feb 2022 15:14:18 +0000 (15:14 +0000)]
Merge crowdin changes from users API changes

3 years agoMerge pull request #3238 from BookStackApp/users_api
Dan Brown [Tue, 8 Feb 2022 13:32:45 +0000 (13:32 +0000)]
Merge pull request #3238 from BookStackApp/users_api

User Management API

3 years agoMerge pull request #3245 from BookStackApp/php7.4
Dan Brown [Tue, 8 Feb 2022 13:31:15 +0000 (13:31 +0000)]
Merge pull request #3245 from BookStackApp/php7.4

Updated minimum php version from 7.3 to 7.4

3 years agoNew Crowdin updates (#3251)
Dan Brown [Tue, 8 Feb 2022 13:29:16 +0000 (13:29 +0000)]
New Crowdin updates (#3251)

* New translations activities.php (Hebrew)

* New translations auth.php (Hebrew)

* New translations common.php (Hebrew)

* New translations activities.php (Hebrew)

* New translations common.php (Hebrew)

* New translations entities.php (Hebrew)

* New translations errors.php (Hebrew)

* New translations validation.php (Spanish)

3 years agoUpdate Korean translation (#3256)
ististyle [Tue, 8 Feb 2022 13:29:01 +0000 (22:29 +0900)]
Update Korean translation (#3256)

* Update validation.php

* Update activities.php

* Update passwords.php

* Update common.php

* Update common.php

* Update auth.php

* Update components.php

* Add files via upload

* Update errors.php

* Update entities.php

* Update entities.php

* Update entities.php

* Update auth.php

* Update activities.php

* Update components.php

* Update components.php

* Update entities.php

* Update components.php

* Update entities.php

* Update errors.php

* Update settings.php

* Update settings.php

* Add files via upload

* Update errors.php

3 years agoSplit out codemirror JS to its own module 3247/head
Dan Brown [Tue, 8 Feb 2022 11:10:01 +0000 (11:10 +0000)]
Split out codemirror JS to its own module

Added a cache-compatible module loading system/pattern to the codebase.

3 years agoUpdated wysiwyg with dark mode patches
Dan Brown [Tue, 8 Feb 2022 10:09:17 +0000 (10:09 +0000)]
Updated wysiwyg with dark mode patches

- To better fit in with default BookStack dark theme.

3 years agoRemoved unused scroll patch after testing
Dan Brown [Tue, 8 Feb 2022 09:42:18 +0000 (09:42 +0000)]
Removed unused scroll patch after testing

- Tested on android and ios
- Also checked on translations and removed todo.

3 years agoAligned some editor events, Changed wysiwyg custom styles loading
Dan Brown [Tue, 8 Feb 2022 01:01:37 +0000 (01:01 +0000)]
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.

3 years agoMerged color and formats wysiwyg groups
Dan Brown [Tue, 8 Feb 2022 00:20:36 +0000 (00:20 +0000)]
Merged color and formats wysiwyg groups

3 years agoAdded license references to readme attribution
Dan Brown [Tue, 8 Feb 2022 00:18:29 +0000 (00:18 +0000)]
Added license references to readme attribution

3 years agoSimplified wysiwyg toolbar with a overflow groups
Dan Brown [Mon, 7 Feb 2022 23:56:39 +0000 (23:56 +0000)]
Simplified wysiwyg toolbar with a overflow groups

3 years agoAdded help/about box to wysiwyg editor
Dan Brown [Mon, 7 Feb 2022 23:19:04 +0000 (23:19 +0000)]
Added help/about box to wysiwyg editor

- To display license info along with shortcuts.
- Extracted out plain layout from 503 error page.
- Added tests to ensure license references are as expected.

3 years agoMade WYSIWYG editor translatable
Dan Brown [Sun, 6 Feb 2022 21:17:08 +0000 (21:17 +0000)]
Made WYSIWYG editor translatable

- Created new translation file for editor view.
- Added simple logic to format for tinymce.
- Aligned some of the custom labels we were using.

3 years agoNew Crowdin updates (#3225)
Dan Brown [Sun, 6 Feb 2022 15:46:28 +0000 (15:46 +0000)]
New Crowdin updates (#3225)

3 years agoMerge branch 'fix-code-block-linefeed' into development
Dan Brown [Sun, 6 Feb 2022 15:19:52 +0000 (15:19 +0000)]
Merge branch 'fix-code-block-linefeed' into development

3 years agoWYSIWG: Improved handling of cross-block code block creation
Dan Brown [Sun, 6 Feb 2022 15:14:57 +0000 (15:14 +0000)]
WYSIWG: Improved handling of cross-block code block creation

- Updated code content to get specific text selection instead of using
  node-based handling which could return the whole document when
  multiple top-level nodes were in selection.
- Simplified how code gets applied into the page to not be node based
  but use native editor methods to replace the selection. Allows
  creation from half-way through a block.

Tested on chrome+Firefox on Fedora 35.
Builds upon changes in #3246.
For #3200.

3 years agoAdded missing validation.file message
Dan Brown [Sun, 6 Feb 2022 14:47:33 +0000 (14:47 +0000)]
Added missing validation.file message

- Included test to cover
- Also applied StyleCI fixes

Closes #3248

3 years agoPrevented PCRE limit issues in markdown base64 extraction
Dan Brown [Sun, 6 Feb 2022 07:51:38 +0000 (07:51 +0000)]
Prevented PCRE limit issues in markdown base64 extraction

For #3249

3 years agoAdded attachment API file size limit test
Dan Brown [Sun, 6 Feb 2022 05:05:17 +0000 (05:05 +0000)]
Added attachment API file size limit test

Created while testing for #3248, Was not something that's currently
failing within BookStack but will still add for coverage.

3 years agoModularised our tinymce config and plugins
Dan Brown [Sat, 5 Feb 2022 23:15:58 +0000 (23:15 +0000)]
Modularised our tinymce config and plugins

- Split everything into specific plugin/concern files to make things
  more managable. Means original component file is now simple and much
  of the core config is focused in one place.

3 years agoMade further tweaks to align with current editor
Dan Brown [Sat, 5 Feb 2022 21:20:20 +0000 (21:20 +0000)]
Made further tweaks to align with current editor

- Ensured each of the core actions worked at a high level.
- Handled some TinyMCE API changes.
- Moved code block insert to its own button.

3 years agoGot TinyMCE 5 added in barely working state
Dan Brown [Sat, 5 Feb 2022 16:55:53 +0000 (16:55 +0000)]
Got TinyMCE 5 added in barely working state

- Some extensions & custom actions not working.
- Updated anything visual to not be breaking (Icons) and anything
  functional that prevented loading.

3 years agofix(wysiwyg): preserves line feeds in code block mode 3246/head
julesdevops [Sat, 5 Feb 2022 09:17:13 +0000 (10:17 +0100)]
fix(wysiwyg): preserves line feeds in code block mode

3 years agoUpdated minimum php version from 7.3 to 7.4 3245/head
Dan Brown [Fri, 4 Feb 2022 13:26:39 +0000 (13:26 +0000)]
Updated minimum php version from 7.3 to 7.4

Closes #3152

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