Skip to content

Commit

Permalink
placeholder "Type '/' for commands"
Browse files Browse the repository at this point in the history
  • Loading branch information
sereneinserenade committed May 15, 2022
1 parent 9bb7b0a commit a180bf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Newtab/components/editor/Tiptap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
margin-top: 0.75em;
}

p.is-editor-empty:first-child::before {
p.is-empty::before {
color: #adb5bd;
content: attr(data-placeholder);
float: left;
Expand Down
4 changes: 3 additions & 1 deletion src/pages/Newtab/components/editor/Tiptap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ const Tiptap = ({ onUpdate, content, isNoteInBin }: TiptapProps) => {
const editor = useEditor({
extensions: [
StarterKit.configure({ codeBlock: false }),
Placeholder.configure({ placeholder: 'Type here...' }),
Placeholder.configure({
placeholder: "Type '/' for commands…"
}),
Underline,
TaskList,
TaskItem.configure({ nested: true }),
Expand Down

0 comments on commit a180bf0

Please sign in to comment.