Skip to content

Commit

Permalink
- ImageUploader bug fix
Browse files Browse the repository at this point in the history
- version update
  • Loading branch information
kerasus committed Jul 14, 2023
1 parent f66d2e0 commit 3cb72b8
Show file tree
Hide file tree
Showing 3 changed files with 3,217 additions and 11 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3-tiptap-katex",
"version": "1.1.2",
"version": "1.1.3",
"description": "tiptap editor using mathlive package to render katex in vue 3",
"main": "index.js",
"keywords": [
Expand Down Expand Up @@ -56,6 +56,7 @@
"@tiptap/vue-3": "^2.0.3",
"a11y-dialog": "^7.5.2",
"compression": "^1.7.4",
"filepond": "^4.30.4",
"filepond-plugin-file-validate-type": "^1.2.8",
"filepond-plugin-image-preview": "^4.6.11",
"katex": "^0.16.7",
Expand Down
21 changes: 11 additions & 10 deletions src/components/ImageUpload/TiptapInteractiveImageUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@
}">
<span class="mdi mdi-drag"
:style="{ top: node.attrs.vertical + 'px', height: node.attrs.height + 'px' }" />
<vue-drag-resize :w="naturalWidth"
:h="naturalHeight"
:aspect-ratio="true"
:sticks="['br']"
axis="y"
:y="node.attrs.vertical"
@resizestop="resizeEnd"
@dragstop="dragEnd">
<img :src="node.attrs.url">
</vue-drag-resize>
<img :src="node.attrs.url">
<!-- <vue-drag-resize :w="naturalWidth"-->
<!-- :h="naturalHeight"-->
<!-- :aspect-ratio="true"-->
<!-- :sticks="['br']"-->
<!-- axis="y"-->
<!-- :y="node.attrs.vertical"-->
<!-- @resizestop="resizeEnd"-->
<!-- @dragstop="dragEnd">-->
<!-- <img :src="node.attrs.url">-->
<!-- </vue-drag-resize>-->
</div>
</node-view-wrapper>
</template>
Expand Down
Loading

0 comments on commit 3cb72b8

Please sign in to comment.