Comments (5)
hey, @mrcego
I've already made a pasteDropPlugin
for it. here's a link
hope that helps
from tiptap-media-resize.
Hi @jelleroorda thank you very much!
That's actually a very nice touch. I'd have to research and play around a bit to see how that would become possible in code. In the meantime, let me know if you already have any insight on how to implement this
from tiptap-media-resize.
Hey @sereneinserenade!
Your extension is very useful. I'm learning how to create extension for Tiptap, and my main goal is "merging" your Extension with coolswitch extension for Drag And Drop and upload support, in case of images I mean. I'm rushing about it and try to understand how to do that, but both logics, at least for me, are uneven. Would you mind putting in the right direction to do this? This process would be end in a PR for the extension.
Thanks in advanced if any help is available.
from tiptap-media-resize.
hey, @mrcego
I've already made a
pasteDropPlugin
for it. here's a linkhope that helps
I have implemented the plugin, but I'm facing two issues now:
-
The uploaded image is not being shown in the editor. The weird thing here is, log is showing image in the object from editor. And when save code in the VSCode, image is shown, so, reactivity issue here??
-
Position menu from uploaded image when I hover it is not shown, probably because is not wrapped into
ResizableMediaNodeView.vue
component as article tag.
Could I sharing with you a repro link, if you have time to check it?
from tiptap-media-resize.
For the drag and drop functionality, I added the data-drag-handle
attribute to the img
element to make it work :
<img
v-if="mediaType === 'img'"
v-bind="node.attrs"
ref="resizableImg"
class="rounded-lg"
:class="[`${isFloat && `float-${props.node.attrs.dataFloat}` || ''}`, `${isAlign && `align-${props.node.attrs.dataAlign}` || ''}`]"
draggable="true"
data-drag-handle
>
from tiptap-media-resize.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiptap-media-resize.