Dan Brown [Mon, 22 May 2023 13:05:07 +0000 (14:05 +0100)]
Updated code view block line highlighting to only show on focus
The default 1st line highlighting confused users when existing on
read-only blocks as it was not clear this represented the active line.
This changes the highlight to only show when the block is focused upon.
Dan Brown [Mon, 8 May 2023 14:16:30 +0000 (15:16 +0100)]
Updated system CLI
- Fixed wrong env details being used on restore.
- Updated update-url on restore actually work.
- Added better support for symlinked locations.
- Added warning against updating in docker-like (non git controlled)
environments.
Dan Brown [Mon, 8 May 2023 11:21:53 +0000 (12:21 +0100)]
WYSWIYG code blocks: copied head styles into shadow root
Currently only link-based styles are made available in the shadow root
code editor environment, this adds normal styles to apply any user-added
via custom head content.
Focus now returns to the editor properly when you quit out the code
editor without saving.
This also sets the return location to be correct on normal saving (Would
sometimes jump to the end of the document).
Dan Brown [Thu, 27 Apr 2023 12:47:49 +0000 (13:47 +0100)]
Fixed sort urls with no params not building full path
The provided partial path would be return which may not resolve to the
full URL when used on systems like those hosting BookStack on a
sub-path.
Fixes #4201
Updated dom layout of attahcments to prevent nested dropzones (No issue
but potential to be one) and updated edit form dropzone handling so the
dropzone item card was not as distracting.
Dan Brown [Wed, 26 Apr 2023 15:41:34 +0000 (16:41 +0100)]
Updated attachments to work with new dropzone
- Fixes existing broken attachment edit tabs.
- Redesigns area to move away from old tabbed interface.
- Integrates new dropzone system, for both addition and edit.
Dan Brown [Wed, 26 Apr 2023 13:23:28 +0000 (14:23 +0100)]
Image manager: fix upload control for drawing, updated styles
- Tightened image manager styles to address things that looked akward.
- Prevented visiblity/use of upload controls for drawings.
- Updated dropzone to use error handling from validation messages.
Dan Brown [Tue, 25 Apr 2023 15:41:39 +0000 (16:41 +0100)]
Dropzone: Polished image manager elements
- Added file placeholder for non-image uploads.
- Added use of upload limits.
- Removed upload timeout variable.
- Added pass-through and usage of filetypes.
- Extracted some view text to language files and made use of existing
text.
Dan Brown [Mon, 24 Apr 2023 22:24:58 +0000 (23:24 +0100)]
Dropzone: started on design/ui of uploading
- Added new wider target handling.
- Updated upload item dom with design and seperate "landing" zone.
- Added new helper for simple dom element creation.
Dan Brown [Tue, 18 Apr 2023 14:08:17 +0000 (15:08 +0100)]
CM6: Further fixes/improvements after testing
- Updated event naming to be "cm6" when codemirror-specific.
- Removed cm block border in md editor to prevent double bordering.
- Updated copy handling to fallback to execCommand.
Dan Brown [Tue, 18 Apr 2023 13:21:22 +0000 (14:21 +0100)]
CM6: Fixed a range of issues during browser testing
- Fixed some keybindings not running as expected, due to some editor
defaults overriding or further actions taking place since the action
would not indicate it's been dealt with (by returning boolean).
- Fixed spacing/border-radius being used on codeblocks on non-intended
areas like the MD editor.
- Fixed lack of BG on default light theme, visible on full screen md
editor.
- Fixed error thrown when the user does not have access to change the
current editor (Likely non-cm related existing issue)
Dan Brown [Fri, 14 Apr 2023 13:08:40 +0000 (14:08 +0100)]
Addressed existing cm6 todos
- Updated clipboard handling
- Removed old clipboard package for browser-native API.
- Updated codemirror editor events to use new props for new data types.
Dan Brown [Fri, 7 Apr 2023 16:47:46 +0000 (17:47 +0100)]
Fixed click issue with tag suggestions in safari
Updated selectable elements to be divs instead of buttons since Safari
akwardly does not focus on buttons on click.
Also standardised keyboard handling to our standard nav class.
Also addressed empty tag values showing in results.
For #4139