From 82bf0bab6f93f1f4f411eaaec9a21911cf40f1a8 Mon Sep 17 00:00:00 2001 From: robertu7 <4065233+robertu7@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:18:36 +0800 Subject: [PATCH] fix: remove blockquote support for moment editor --- package.json | 2 +- src/editors/extensions/index.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 12dcc4d..e9feda6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@matters/matters-editor", - "version": "0.3.1-alpha.0", + "version": "0.3.1-alpha.1", "description": "Editor for matters.news", "author": "https://github.com/thematters", "homepage": "https://github.com/thematters/matters-editor", diff --git a/src/editors/extensions/index.ts b/src/editors/extensions/index.ts index af025d5..f167736 100644 --- a/src/editors/extensions/index.ts +++ b/src/editors/extensions/index.ts @@ -38,7 +38,6 @@ const baseEditorExtensions = [ Document, History, Placeholder, - // Basic Formats Text, Paragraph, HardBreak.configure({ @@ -46,13 +45,12 @@ const baseEditorExtensions = [ class: 'smart', }, }), - // Custom Formats Link, - Blockquote, ] export const articleEditorExtensions = [ ...baseEditorExtensions, + Blockquote, Gapcursor, Bold, Strike, @@ -70,7 +68,7 @@ export const articleEditorExtensions = [ FigcaptionKit, ] -export const commentEditorExtensions = [...baseEditorExtensions] +export const commentEditorExtensions = [...baseEditorExtensions, Blockquote] export const momentEditorExtensions = [...baseEditorExtensions]