From ca4e0ada309a2feee6c2381a42fdcefe11246a3d Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 5 May 2019 01:03:42 -0400 Subject: [PATCH] feat: markdown editor toolbar + default group rules fix --- client/components/editor.vue | 3 +- client/components/editor/editor-markdown.vue | 184 +++++++++++++----- .../components/editor/editor-modal-blocks.vue | 86 ++++++++ .../components/editor/editor-modal-media.vue | 2 +- server/app/data.yml | 15 +- server/graph/resolvers/group.js | 2 +- 6 files changed, 240 insertions(+), 52 deletions(-) create mode 100644 client/components/editor/editor-modal-blocks.vue diff --git a/client/components/editor.vue b/client/components/editor.vue index a47badc9..d7699f87 100644 --- a/client/components/editor.vue +++ b/client/components/editor.vue @@ -67,7 +67,8 @@ export default { editorModalEditorselect: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-editorselect.vue'), editorModalProperties: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-properties.vue'), editorModalUnsaved: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-unsaved.vue'), - editorModalMedia: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-media.vue') + editorModalMedia: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-media.vue'), + editorModalBlocks: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-blocks.vue') }, props: { locale: { diff --git a/client/components/editor/editor-markdown.vue b/client/components/editor/editor-markdown.vue index 851c038a..78b79e3c 100644 --- a/client/components/editor/editor-markdown.vue +++ b/client/components/editor/editor-markdown.vue @@ -1,91 +1,130 @@