mirror of
https://codeberg.org/Sevichecc/Seigwai.git
synced 2025-04-30 07:49:30 +08:00
style: remove comments
This commit is contained in:
parent
274a2b6733
commit
864fc716f9
1 changed files with 0 additions and 9 deletions
|
@ -74,8 +74,6 @@ const editor = useEditor({
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
Placeholder.configure({
|
Placeholder.configure({
|
||||||
// Use different placeholders depending on the node type:
|
|
||||||
// placeholder: 'Write something …'
|
|
||||||
placeholder: ({ node }) => {
|
placeholder: ({ node }) => {
|
||||||
if (node.type.name === 'heading') {
|
if (node.type.name === 'heading') {
|
||||||
switch (node.attrs.level) {
|
switch (node.attrs.level) {
|
||||||
|
@ -107,13 +105,6 @@ const editor = useEditor({
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
/* Basic editor styles */
|
|
||||||
.ProseMirror {
|
|
||||||
> * + * {
|
|
||||||
margin-top: 0.75em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Placeholder (at the top) */
|
/* Placeholder (at the top) */
|
||||||
.ProseMirror p.is-editor-empty:first-child::before {
|
.ProseMirror p.is-editor-empty:first-child::before {
|
||||||
content: attr(data-placeholder);
|
content: attr(data-placeholder);
|
||||||
|
|
Loading…
Reference in a new issue