Moving text within a post

billy2

  • We-Gen
  • Trying to earn brownie points for a lads trip to the Red Sea. Minus 1 already - just for asking!!
  • Posts: 348
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 (125.62 kB, 947x744 - viewed 189 times.)
<br /><br />cough, cough.

Nao

  • With a Box
  • If you say so.....
  • Posts: 12,900
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...)
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

billy2

  • We-Gen
  • Trying to earn brownie points for a lads trip to the Red Sea. Minus 1 already - just for asking!!
  • Posts: 348
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:
<br /><br />cough, cough.

Nao

  • With a Box
  • If you say so.....
  • Posts: 12,900
Re: Moving text within a post
« Reply #3 on July 5th, 2012, 11:34 AM »
I do that, but I don't move text blocks around...
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Norodo

  • We-Gen
  • Oh you Baidu, so randumb. (60 sites being indexed at once? Jeez)
  • Posts: 390
Re: Moving text within a post
« Reply #4 on July 5th, 2012, 12:44 PM »
Works for me in IE8.

billy2

  • We-Gen
  • Trying to earn brownie points for a lads trip to the Red Sea. Minus 1 already - just for asking!!
  • Posts: 348
Re: Moving text within a post
« Reply #5 on July 5th, 2012, 02:30 PM »
Quote from Norodo on July 5th, 2012, 12:44 PM
Works for me in IE8.
Sorry?
What is IE ?

 :D
<br /><br />cough, cough.

Arantor

  • With a Box
  • As long as the planets are turning, as long as the stars are burning, as long as your dreams are coming true...
  • Posts: 13,611
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.


Nao

  • With a Box
  • If you say so.....
  • Posts: 12,900
Re: Moving text within a post
« Reply #7 on July 5th, 2012, 03:00 PM »
Yup, but OTOH I have plans to make it core... :^^;:
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Arantor

  • With a Box
  • As long as the planets are turning, as long as the stars are burning, as long as your dreams are coming true...
  • Posts: 13,611
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 ;)
  When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest.


Nao

  • With a Box
  • If you say so.....
  • Posts: 12,900
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.
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Arantor

  • With a Box
  • As long as the planets are turning, as long as the stars are burning, as long as your dreams are coming true...
  • Posts: 13,611
Re: Moving text within a post
« Reply #10 on October 7th, 2012, 07:57 PM »
Still doing it, btw.
  When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest.


Nao

  • With a Box
  • If you say so.....
  • Posts: 12,900
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>
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

live627

  • Talking Head
  • 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,412
Re: Moving text within a post
« Reply #12 on November 15th, 2012, 02:54 AM »

Dragooon

  • I can code! Really!
  • Talking Head
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,723
Re: Moving text within a post
« Reply #13 on January 2nd, 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