1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-19 22:03:19 +03:00
Commit Graph

128 Commits

Author SHA1 Message Date
d34f837e19 Started work on details/summary blocks 2022-01-21 17:07:27 +00:00
264966de02 Crawled forward slightly on table resizing 2022-01-21 12:16:05 +00:00
8b4f112462 Improved iframe embed interaction within editor 2022-01-20 13:55:44 +00:00
20f37292a1 Added support for iframe node blocks 2022-01-20 13:38:16 +00:00
b1f5495a7f Shared link mark update logic with color controls 2022-01-19 23:54:59 +00:00
bb12541179 Improved anchor updating/remove action
Now will update the link mark if you have a no-range selection on the
link.
2022-01-19 23:22:48 +00:00
e3ead1c115 Added radio options for anchor target option 2022-01-19 22:14:09 +00:00
9b4ea368dc Started on table editing/resizing 2022-01-19 16:46:45 +00:00
4b08eef12c Added table creation and insertion 2022-01-19 15:22:10 +00:00
b2283106fc Added source code view/set button 2022-01-19 11:31:02 +00:00
7125530e55 Added image resizing via drag handles 2022-01-17 17:43:16 +00:00
7622106665 Added jsdoc types for prosemirror
Also added link markdown handling when target is set.
2022-01-16 15:21:57 +00:00
89194a3f85 Got link insert/editor working 2022-01-16 14:37:58 +00:00
7703face52 Started menu dialog support 2022-01-14 20:56:05 +00:00
c013d7e549 Added inline code and clear formatting 2022-01-14 18:27:37 +00:00
07c8876e22 Imported marks from example schema for customization 2022-01-14 14:55:07 +00:00
0dc64d22ef Added horizonal rule insert 2022-01-14 14:33:37 +00:00
013943dcc5 Added list buttons 2022-01-14 13:14:25 +00:00
dc1c9807ef Reorganised & aligned editor icons 2022-01-12 16:10:16 +00:00
56d7864bdf Added bg-color mark, added color grid selectors 2022-01-12 15:33:59 +00:00
1018b5627e Added text color mark 2022-01-12 11:02:28 +00:00
717557df89 Rolled out text alignment to other block types
Completed off alignment types and markdown handling in the process.
2022-01-12 10:18:06 +00:00
6744ab2ff9 Got alignment buttons barely working for paragraphs 2022-01-11 18:58:24 +00:00
4e5153d372 Copied in default node types for control and future editing 2022-01-11 17:13:40 +00:00
34db138a64 Split marks and nodes into their own files 2022-01-11 16:26:12 +00:00
c3595b1807 Added strike, sup and sub marks 2022-01-11 16:00:57 +00:00
a8f48185b5 Got underline working in editor
Major step, since this is the first inline HTML element which needed
advanced parsing out on the markdown side, since not commonmark
supported.
2022-01-10 13:38:32 +00:00
9d7174557e Added in a custom menubar
This is a copy of the ProseMirror/prosemirror-menu repo files
which suggest working from a fork of this.

These changes include the ability to select callouts
from the menubar.
2022-01-09 16:37:16 +00:00
47c3d4fc0f Fixed issue with new nodes being callouts 2022-01-07 21:56:04 +00:00
81dfe9c345 Got callouts about working, simplified markdown setup 2022-01-07 21:22:07 +00:00
0fb8ba00a5 Attempted adding tricky custom block
Attempted adding callouts, which have the challenge of being shown via
HTML within markdown content. Got stuck on parsing back to the state
from markdown.
2022-01-07 16:37:36 +00:00
aa9fe9ca82 Added notes file 2022-01-07 13:36:53 +00:00
27f9e8e4bd Started playing with prosemirror
- Got base setup together with WYSIWYG/Markdown switching, where HTML is
  the base content format.
- Added some testing routes/views for initial development.
- Added some dev npm tasks to support editor-specific actions.
2022-01-07 13:36:52 +00:00
819ec55b1b Fixed code block language parsing issue
Language parsing of code blocks could falter on pasted code blocks due
to the lanuage being parsed with a space which would throw an error when
used as a css class.
This adds more extensive language parsing to be safer.

Fixes #3133
2022-01-04 11:54:24 +00:00
dba506a20e Added search autofocus on entity-selector-popup
Closes #3127
2022-01-04 11:30:44 +00:00
8716b1922b Completed webhook management interface
Got webhook CRUD actions in place within the interface.
Quick manual test pass done, Needs automated tests.
2021-12-08 17:35:58 +00:00
4621d8bcc5 Initial controller/views for webhooks management 2021-12-08 14:29:42 +00:00
85154fff69 Added an env configurable file upload size limit
Replaces the old suggestion of setting JS head 'window.uploadLimit'
variable. This new env option will be used by back-end validation and
front-end libs/logic too.

Limits already likely exist within prod environments at a PHP and
webserver level but this allows an app-level limit and centralises the
option on the BookStack side into the .env

Closes #3033
2021-11-14 22:03:22 +00:00
f99af807d0 Reviewed and refactored additional editor draft save warnings
- Added testing to cover warning cases.
- Refactored logic to be simpler and move much of the business out of
  the controller.
- Added new message that's more suitable to the case this was handling.
- For detecting an outdated draft, checked the draft created_at time
  instead of updated_at to better fit the scenario being checked.
- Updated some method types to align with those potentially being used
  in the logic of the code.
- Added a cache of shown messages on the front-end to prevent them
  re-showing on every save during the session, even if dismissed.
2021-10-04 20:26:55 +01:00
537b1614c4 Display warnings when saving draft if another user is editing the page or if the page was updated since the current user has started editing the page. 2021-08-08 19:20:15 +02:00
0de0507137 Added vb.net code language option
Related to #2869
2021-08-04 20:56:34 +01:00
7a8954ee65 Fixed audit log user dropdown usability issue
User search input blur would trigger the submission of the search
filters which would cause strange thing where you'd click on a search
filtered user which would blur the input hence submit, but the user
would think they've clicked the user and the page would reload but the
input had not updated at that point.

Related to #2863
2021-08-04 20:48:23 +01:00
7997300f96 Added front-end toggle and testing of inline attachments 2021-06-06 13:55:56 +01:00
9cbea1eb08 Updated drawing upload error to shown/handle server limit errors
Closes #2740
2021-05-26 18:23:27 +01:00
600f8cd142 Added origin verification to postMessage usage.
Closes #2769
2021-05-25 00:05:20 +01:00
70be28d22c Updated tinymce code block handling to help prevent breaking history states
Only used an undo transaction on startup and added a small delay
to codeMirror parsing on SetContent's to help avoid
the rendering activities getting caught in undoManager states.
Seemed to improve things a lot in Firefox & chrome on my dev machine.

For #2602
2021-04-19 22:00:33 +01:00
9df4dee1b2 Improved header element accessibility when at mobile sizes
Intended to fix issues raised in #2681.
Changes up the tri-layout tabs, and the main header menu toggle,
to be buttons while adding better text and keyboard controls.

Updated the component format of a few elements along the way.
2021-04-19 21:41:13 +01:00
0c880def5e Fixed response JSON detection when charset existed
Fixes #2684
2021-04-18 22:12:26 +01:00
06706a2d9c Added user filter to audit log
Included testing to cover.
Closes #2472
2021-03-21 15:04:32 +00:00
f36e6d9917 Updtd entity-selector for keyboard nav and new component system
For #2064
2021-02-12 22:10:37 +00:00