Skip to content

Commit d568ada

Browse files
authored
Merge pull request #64 from mirusresearch/small-improvements
A bit of cleanup
2 parents e3f37be + 5fd2b26 commit d568ada

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mirus/tiptap-editor",
3-
"version": "3.0.5",
3+
"version": "3.0.6",
44
"description": "custom setup for the tiptap editor",
55
"repository": {
66
"url": "git+https://github.com/mirusresearch/tiptap-editor.git"

src/tiptap-editor.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ const editor = useEditor({
148148
currentCharacterCount.value = editor.storage.characterCount.characters();
149149
},
150150
onUpdate: ({ getJSON, getHTML, editor }) => {
151-
console.log("here")
152151
currentCharacterCount.value = editor.storage.characterCount.characters();
153152
currentValue.value = editor.getHTML();
154153
@@ -267,7 +266,6 @@ watch(
267266
() => props.value,
268267
(newValue, oldValue) => {
269268
if (editor.value && newValue !== editor.value.getHTML()) {
270-
console.log("here")
271269
editor.value.commands.setContent(newValue);
272270
currentCharacterCount.value = editor.value.storage.characterCount.characters();
273271
props.warnings.forEach((warning) => {
@@ -286,7 +284,6 @@ watch(
286284
}
287285
);
288286
289-
290287
tippy.setDefaultProps({
291288
content: renderedErrors.value,
292289
trigger: 'mouseenter',
@@ -575,6 +572,8 @@ onBeforeUnmount(() => {
575572
outline: 2px solid #3b82f6;
576573
transition: all 0.08s ease-in-out;
577574
}
575+
height: 100%;
576+
overflow: auto;
578577
}
579578
}
580579
}

0 commit comments

Comments
 (0)