0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added blockquotes

This commit is contained in:
Simon Backx 2022-07-08 11:03:19 +02:00
parent 9f11eaf547
commit 1550f582be
4 changed files with 15 additions and 1 deletions

View file

@ -10,6 +10,7 @@
"@testing-library/react": "12.1.2",
"@testing-library/user-event": "14.0.0",
"@tiptap/core": "^2.0.0-beta.182",
"@tiptap/extension-blockquote": "^2.0.0-beta.29",
"@tiptap/extension-document": "^2.0.0-beta.17",
"@tiptap/extension-link": "^2.0.0-beta.43",
"@tiptap/extension-paragraph": "^2.0.0-beta.26",

View file

@ -27,6 +27,12 @@ body {
text-decoration: underline;
}
/* Blockquotes */
.gh-comment-content blockquote {
border-left: 3px solid rgba(13,13,13,.1);
padding-left: 1rem;
}
/* The following lines are needed for the editor */
/* Placeholder */

View file

@ -3,6 +3,7 @@ import Text from '@tiptap/extension-text';
import Link from '@tiptap/extension-link';
import Paragraph from '@tiptap/extension-paragraph';
import Document from '@tiptap/extension-document';
import Blockquote from '@tiptap/extension-blockquote';
export function getEditorConfig({placeholder, autofocus = false, content = ''}) {
return {
@ -15,7 +16,8 @@ export function getEditorConfig({placeholder, autofocus = false, content = ''})
}),
Placeholder.configure({
placeholder
})
}),
Blockquote.configure({})
],
content,
autofocus,

View file

@ -1751,6 +1751,11 @@
prosemirror-transform "1.6.0"
prosemirror-view "1.26.2"
"@tiptap/extension-blockquote@^2.0.0-beta.29":
version "2.0.0-beta.29"
resolved "https://registry.yarnpkg.com/@tiptap/extension-blockquote/-/extension-blockquote-2.0.0-beta.29.tgz#6f1c4b17efa6457c7776f32d0807e96d848d4389"
integrity sha512-zMYT5TtpKWav9VhTn4JLyMvXmhEdbD6on0MdhcTjRm0I5ugyR4ZbJwh2aelM7G9DZVYzB8jZU18OSDJmo7Af7w==
"@tiptap/extension-bubble-menu@^2.0.0-beta.61":
version "2.0.0-beta.61"
resolved "https://registry.yarnpkg.com/@tiptap/extension-bubble-menu/-/extension-bubble-menu-2.0.0-beta.61.tgz#cc61ce8b094fdbcec58f44f0fa39172a726c024c"