Giter Club home page Giter Club logo

Comments (5)

sereneinserenade avatar sereneinserenade commented on July 18, 2024 1

hey, @mrcego

I've already made a pasteDropPlugin for it. here's a link

hope that helps

from tiptap-media-resize.

sereneinserenade avatar sereneinserenade commented on July 18, 2024

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.

mrcego avatar mrcego commented on July 18, 2024

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.

mrcego avatar mrcego commented on July 18, 2024

hey, @mrcego

I've already made a pasteDropPlugin for it. here's a link

hope that helps

I have implemented the plugin, but I'm facing two issues now:

  1. 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??

  2. 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.

pbell23 avatar pbell23 commented on July 18, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.