Wedge

Public area => Bug reports => The Pub => Archived fixes => Discussion démarrée par: billy2 le 5 Juillet 2012 à 09:16

Titre: Moving text within a post
Posté par: billy2 le 5 Juillet 2012 à 09:16
Select a line of text and try to move it to different point within the post. This action brings up the 'add attachment' box rather than drop the text at the new insertion point.
Cheers
Titre: Re: Moving text within a post
Posté par: Nao le 5 Juillet 2012 à 09:59
Uh, I've actually never done this in my life... Didn't even think it was possible :P
I'd usually use cut & paste for that, and I'd recommend that you'd do it as it's faster, ah ah...

Anyway... Is it worth 'fixing'? Is it even possible to check that a drag is coming from a textarea...? (Heck, from a specific class even...)
Titre: Re: Moving text within a post
Posté par: billy2 le 5 Juillet 2012 à 10:05
Worth fixing? Not for me Nao.

But for those that type reams of replies ??

 :eheh:
Titre: Re: Moving text within a post
Posté par: Nao le 5 Juillet 2012 à 11:34
I do that, but I don't move text blocks around...
Titre: Re: Moving text within a post
Posté par: Norodo le 5 Juillet 2012 à 12:44
Works for me in IE8.
Titre: Re: Moving text within a post
Posté par: billy2 le 5 Juillet 2012 à 14:30
Citation de Norodo le 5 Juillet 2012 à 12:44
Works for me in IE8.
Sorry?
What is IE ?

 :D
Titre: Re: Moving text within a post
Posté par: Arantor le 5 Juillet 2012 à 14:57
That's very likely related to the attachments plugin and probably wouldn't occur in base Wedge.
Titre: Re: Moving text within a post
Posté par: Nao le 5 Juillet 2012 à 15:00
Yup, but OTOH I have plans to make it core... :^^;:
Titre: Re: Moving text within a post
Posté par: Arantor le 5 Juillet 2012 à 15:14
In which case we'll need to figure out why it's grabbing events it shouldn't be ;)
Titre: Re: Moving text within a post
Posté par: Nao le 5 Juillet 2012 à 18:53
Drag & drop is a strange beast really...
I noticed that it DOES have a meaning overall, though, it's just that it needs some adapting.
Titre: Re: Moving text within a post
Posté par: Arantor le 7 Octobre 2012 à 19:57
Still doing it, btw.
Titre: Re: Moving text within a post
Posté par: Nao le 19 Octobre 2012 à 15:30
Events aren't funny...
I guess the plugin will stay a plugin for now... <sigh>
Titre: Re: Moving text within a post
Posté par: live627 le 15 Novembre 2012 à 02:54
I think I've fixed it... please review this small patch https://github.com/live627/MultiAttach/commit/59bea5ff6ccc53836e922e92a318b887fae4f4cb
Titre: Re: Moving text within a post
Posté par: Dragooon le 2 Janvier 2013 à 16:06
Wouldn't this check be better? (Same thing is used in the drop event)

Code: [Sélectionner]
// Make sure we are dragging a file over
if (!e.originalEvent.dataTransfer && !(dt.files || (!$.browser.webkit && e.originalEvent.dataTransfer.types.contains && e.originalEvent.dataTransfer.types.contains('Files'))))
return false;

EDIT: I just realised this thing is months old and I have no clue why this was opened :P