From a551f8a96132371a6b5efca87e51d2641cdd608f Mon Sep 17 00:00:00 2001 From: wouter-adriaens Date: Thu, 3 Oct 2024 17:10:43 +0200 Subject: [PATCH] #326 wip editor toolbar --- src/components/dumb/OeEditor.vue | 216 ++++++++++++++++++++++--------- src/components/dumb/index.ts | 2 + src/models/editor.ts | 7 + yarn.lock | 5 + 4 files changed, 166 insertions(+), 64 deletions(-) create mode 100644 src/models/editor.ts diff --git a/src/components/dumb/OeEditor.vue b/src/components/dumb/OeEditor.vue index 2bd6b2a..ef40872 100644 --- a/src/components/dumb/OeEditor.vue +++ b/src/components/dumb/OeEditor.vue @@ -1,35 +1,65 @@ diff --git a/src/components/dumb/index.ts b/src/components/dumb/index.ts index c696c9e..e326913 100644 --- a/src/components/dumb/index.ts +++ b/src/components/dumb/index.ts @@ -13,6 +13,7 @@ import OeAutocomplete from './OeAutocomplete.vue'; import OeButton from './OeButton.vue'; import OeContainer from './OeContainer.vue'; import OeDatepicker from './OeDatepicker.vue'; +import OeEditor from './OeEditor.vue'; import OeGrid from './OeGrid.vue'; import OeHeader from './OeHeader.vue'; import OeInventarisLoadedLink from './OeInventarisLoadedLink.vue'; @@ -40,6 +41,7 @@ export { OeButton, OeContainer, OeDatepicker, + OeEditor, OeGrid, OeHeader, OeInventarisLoadedLink, diff --git a/src/models/editor.ts b/src/models/editor.ts new file mode 100644 index 0000000..ef05d45 --- /dev/null +++ b/src/models/editor.ts @@ -0,0 +1,7 @@ +import Block from 'quill/blots/block'; + +export class PrivateBlock extends Block { + static tagName = 'DIV'; + static className = 'prive'; + static blotName = 'private'; +} diff --git a/yarn.lock b/yarn.lock index 4697b35..0096e45 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8930,6 +8930,11 @@ quill-html-edit-button@^3.0.0: resolved "https://registry.yarnpkg.com/quill-html-edit-button/-/quill-html-edit-button-3.0.0.tgz#b632ae6a5d473ce42f1ad3223e91aff02fe13464" integrity sha512-ZUV3rYjEvXz+v/7f8N0Mkp2+0D8VGDj6yCYPfagSLmyshczeMawS7vZJzaJ18dJp35IfjiPnzqyVk3KCI8qN1w== +quill-toggle-fullscreen-button@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/quill-toggle-fullscreen-button/-/quill-toggle-fullscreen-button-0.1.3.tgz#ee8c6d0e43a94115228dd2a694bcf82cd33702b1" + integrity sha512-ViRGh3pRxSSe4uNZZpy0LI23A9wAAeCuTmUwz22E/f1dSDmDGvroObomg56HpwbednDCyTvEyWb0gakY2ml7oQ== + quill@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/quill/-/quill-2.0.2.tgz#5b26bc10a74e9f7fdcfdb5156b3133a3ebf0a814"