Moving text within a post

billy2

  • Trying to earn brownie points for a lads trip to the Red Sea. Minus 1 already - just for asking!!
  • Messages: 350
Moving text within a post
« 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

📎 postEdit.jpg - 96.95 ko, 947x744, vu 502 fois.

<br /><br />cough, cough.

Nao

  • Dadman with a boy
  • Messages: 16 082
Re: Moving text within a post
« Réponse #1, 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...)

billy2

  • Trying to earn brownie points for a lads trip to the Red Sea. Minus 1 already - just for asking!!
  • Messages: 350
Re: Moving text within a post
« Réponse #2, le 5 Juillet 2012 à 10:05 »
Worth fixing? Not for me Nao.

But for those that type reams of replies ??

 :eheh:

Nao

  • Dadman with a boy
  • Messages: 16 082

Norodo

  • Oh you Baidu, so randumb. (60 sites being indexed at once? Jeez)
  • Messages: 469

billy2

  • Trying to earn brownie points for a lads trip to the Red Sea. Minus 1 already - just for asking!!
  • Messages: 350

Arantor

  • As powerful as possible, as complex as necessary.
  • Messages: 14 278
Re: Moving text within a post
« Réponse #6, le 5 Juillet 2012 à 14:57 »
That's very likely related to the attachments plugin and probably wouldn't occur in base Wedge.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Messages: 16 082

Arantor

  • As powerful as possible, as complex as necessary.
  • Messages: 14 278
Re: Moving text within a post
« Réponse #8, le 5 Juillet 2012 à 15:14 »
In which case we'll need to figure out why it's grabbing events it shouldn't be ;)

Nao

  • Dadman with a boy
  • Messages: 16 082
Re: Moving text within a post
« Réponse #9, 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.

Arantor

  • As powerful as possible, as complex as necessary.
  • Messages: 14 278

Nao

  • Dadman with a boy
  • Messages: 16 082
Re: Moving text within a post
« Réponse #11, le 19 Octobre 2012 à 15:30 »
Events aren't funny...
I guess the plugin will stay a plugin for now... <sigh>

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Messages: 1 670
A confident man keeps quiet.whereas a frightened man keeps talking, hiding his fear.

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Messages: 1 841
Re: Moving text within a post
« Réponse #13, 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
The way it's meant to be