mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added blockquotes
This commit is contained in:
parent
9f11eaf547
commit
1550f582be
4 changed files with 15 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
||||||
"@testing-library/react": "12.1.2",
|
"@testing-library/react": "12.1.2",
|
||||||
"@testing-library/user-event": "14.0.0",
|
"@testing-library/user-event": "14.0.0",
|
||||||
"@tiptap/core": "^2.0.0-beta.182",
|
"@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-document": "^2.0.0-beta.17",
|
||||||
"@tiptap/extension-link": "^2.0.0-beta.43",
|
"@tiptap/extension-link": "^2.0.0-beta.43",
|
||||||
"@tiptap/extension-paragraph": "^2.0.0-beta.26",
|
"@tiptap/extension-paragraph": "^2.0.0-beta.26",
|
||||||
|
|
|
@ -27,6 +27,12 @@ body {
|
||||||
text-decoration: underline;
|
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 */
|
/* The following lines are needed for the editor */
|
||||||
|
|
||||||
/* Placeholder */
|
/* Placeholder */
|
||||||
|
|
|
@ -3,6 +3,7 @@ import Text from '@tiptap/extension-text';
|
||||||
import Link from '@tiptap/extension-link';
|
import Link from '@tiptap/extension-link';
|
||||||
import Paragraph from '@tiptap/extension-paragraph';
|
import Paragraph from '@tiptap/extension-paragraph';
|
||||||
import Document from '@tiptap/extension-document';
|
import Document from '@tiptap/extension-document';
|
||||||
|
import Blockquote from '@tiptap/extension-blockquote';
|
||||||
|
|
||||||
export function getEditorConfig({placeholder, autofocus = false, content = ''}) {
|
export function getEditorConfig({placeholder, autofocus = false, content = ''}) {
|
||||||
return {
|
return {
|
||||||
|
@ -15,7 +16,8 @@ export function getEditorConfig({placeholder, autofocus = false, content = ''})
|
||||||
}),
|
}),
|
||||||
Placeholder.configure({
|
Placeholder.configure({
|
||||||
placeholder
|
placeholder
|
||||||
})
|
}),
|
||||||
|
Blockquote.configure({})
|
||||||
],
|
],
|
||||||
content,
|
content,
|
||||||
autofocus,
|
autofocus,
|
||||||
|
|
|
@ -1751,6 +1751,11 @@
|
||||||
prosemirror-transform "1.6.0"
|
prosemirror-transform "1.6.0"
|
||||||
prosemirror-view "1.26.2"
|
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":
|
"@tiptap/extension-bubble-menu@^2.0.0-beta.61":
|
||||||
version "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"
|
resolved "https://registry.yarnpkg.com/@tiptap/extension-bubble-menu/-/extension-bubble-menu-2.0.0-beta.61.tgz#cc61ce8b094fdbcec58f44f0fa39172a726c024c"
|
||||||
|
|
Loading…
Add table
Reference in a new issue