mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-08 01:53:04 +08:00
Merge branch 'main' of github.com:ueberdosis/tiptap
This commit is contained in:
commit
afc110a253
@ -18,12 +18,11 @@
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 0.4rem;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.2rem 0.4rem;
|
||||
|
||||
&.is-selected,
|
||||
&:hover {
|
||||
border-radius: 0.4rem;
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
&.is-selected {
|
||||
border-color: #000;
|
||||
}
|
||||
}
|
||||
|
@ -15,9 +15,8 @@
|
||||
}
|
||||
|
||||
.mention {
|
||||
color: #A975FF;
|
||||
background-color: rgba(#A975FF, 0.1);
|
||||
border-radius: 0.3rem;
|
||||
border: 1px solid #000;
|
||||
border-radius: 0.4rem;
|
||||
padding: 0.1rem 0.3rem;
|
||||
}
|
||||
|
||||
|
@ -102,13 +102,12 @@ export default {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 0.4rem;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.2rem 0.4rem;
|
||||
|
||||
&.is-selected,
|
||||
&:hover {
|
||||
border-radius: 0.4rem;
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
&.is-selected {
|
||||
border-color: #000;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -115,9 +115,8 @@ export default {
|
||||
}
|
||||
|
||||
.mention {
|
||||
color: #A975FF;
|
||||
background-color: rgba(#A975FF, 0.1);
|
||||
border-radius: 0.3rem;
|
||||
border: 1px solid #000;
|
||||
border-radius: 0.4rem;
|
||||
padding: 0.1rem 0.3rem;
|
||||
}
|
||||
|
||||
|
@ -102,13 +102,12 @@ export default {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 0.4rem;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.2rem 0.4rem;
|
||||
|
||||
&.is-selected,
|
||||
&:hover {
|
||||
border-radius: 0.4rem;
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
&.is-selected {
|
||||
border-color: #000;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -51,9 +51,8 @@ export default {
|
||||
}
|
||||
|
||||
.mention {
|
||||
color: #A975FF;
|
||||
background-color: rgba(#A975FF, 0.1);
|
||||
border-radius: 0.3rem;
|
||||
border: 1px solid #000;
|
||||
border-radius: 0.4rem;
|
||||
padding: 0.1rem 0.3rem;
|
||||
}
|
||||
</style>
|
||||
|
@ -102,13 +102,12 @@ export default {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 0.4rem;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.2rem 0.4rem;
|
||||
|
||||
&.is-selected,
|
||||
&:hover {
|
||||
border-radius: 0.4rem;
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
&.is-selected {
|
||||
border-color: #000;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -60,9 +60,8 @@ export default {
|
||||
}
|
||||
|
||||
.mention {
|
||||
color: #A975FF;
|
||||
background-color: rgba(#A975FF, 0.1);
|
||||
border-radius: 0.3rem;
|
||||
border: 1px solid #000;
|
||||
border-radius: 0.4rem;
|
||||
padding: 0.1rem 0.3rem;
|
||||
}
|
||||
</style>
|
||||
|
@ -100,8 +100,8 @@ const editor = new Editor({
|
||||
content: `<p>Example Content</p>`,
|
||||
|
||||
// triggered on every change
|
||||
onUpdate: () => {
|
||||
const json = this.getJSON()
|
||||
onUpdate: ({ editor }) => {
|
||||
const json = editor.getJSON()
|
||||
// send the content to an API here
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user