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!!
  • Posts: 350
Moving text within a post
« on July 5th, 2012, 09:16 AM »
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 kB, 947x744, viewed 311 times.

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

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Moving text within a post
« Reply #1, on July 5th, 2012, 09:59 AM »
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!!
  • Posts: 350
Re: Moving text within a post
« Reply #2, on July 5th, 2012, 10:05 AM »
Worth fixing? Not for me Nao.

But for those that type reams of replies ??

 :eheh:

Nao

  • Dadman with a boy
  • Posts: 16,079

Norodo

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

billy2

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

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Moving text within a post
« Reply #6, on July 5th, 2012, 02:57 PM »
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
  • Posts: 16,079

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Moving text within a post
« Reply #8, on July 5th, 2012, 03:14 PM »
In which case we'll need to figure out why it's grabbing events it shouldn't be ;)

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Moving text within a post
« Reply #9, on July 5th, 2012, 06:53 PM »
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.
  • Posts: 14,278

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Moving text within a post
« Reply #11, on October 19th, 2012, 03:30 PM »
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
  • Posts: 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.
  • Posts: 1,841
Re: Moving text within a post
« Reply #13, on January 2nd, 2013, 04:06 PM »
Wouldn't this check be better? (Same thing is used in the drop event)

Code: [Select]
// 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