1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Updated drawio tinymce plugin to use embeds

- Adds support for handling drawings as embeds, based on image
  extension.
- Adds additional attribute to drawio elements within editor to prevent
  tinymce replacing embeds with a placeholder.
- Updates how contenteditable is applied to drawio blocks within editor,
  to use proper filters instead of using the SetContent event.
This commit is contained in:
Dan Brown
2022-05-23 12:24:40 +01:00
parent d926ca5f71
commit 5fd8e7e0e9
3 changed files with 56 additions and 20 deletions

View File

@@ -48,6 +48,11 @@ body.page-content.mce-content-body {
display: none;
}
// Prevent interaction with embed contents
.page-content.mce-content-body embed {
pointer-events: none;
}
// Details/summary editor usability
.page-content.mce-content-body details summary {
pointer-events: none;