Trumbowyg icon indicating copy to clipboard operation
Trumbowyg copied to clipboard

Pasted Noembed not deletable nor dragable

Open theluk opened this issue 4 years ago • 1 comments

heyho there,

i tried the paste embed plugin and also wrote my own, were I paste a link of an aws mp4 link and it transforms it into a video element, just like your pastembed plugin.

The problem ist:

  1. The pasted content, no matter what position was set before, will be pasted always at row 0 column 0. So it jumps basicly always back to top and pastes the video in there. There is no way to save/restore the position, as saveRange and restoreRange does not work either.
  2. Problem 1 would be temporarily solveable if we could move the pasted content (embed) which is not possible like with images. I have no clue how i would solve this, other than with some intense logic.
  3. There is no clean way to delete that content again.

theluk avatar Oct 04 '19 09:10 theluk

ok, so for problem no. 1 it looks like cleanpaste plugin is responsable. I guess it has to do with the timeouts, as paste embed etc needs some time to load the content, so the async operation comes back somehow later, and the cleanpaste plugins "html" function just cleans all html and resets of course the range. thats unfortunate....

theluk avatar Oct 04 '19 09:10 theluk