WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 3 years ago

#2051 closed defect (bug) (fixed)

Copy & Paste Broken in RTE

Reported by: fool4Christ Owned by: ryan
Priority: high Milestone:
Component: Administration Version: 2.0
Severity: minor Keywords: tinymce bg|has-patch
Cc:

Description

Using the latest nightly while on Firefox 1.5, I cannot get copy and paste to work in the RTE.

On the Write screen, type anything into the Post box. Highlight, Ctrl-C, and while still highlighted, press Ctrl-V to paste... It simply deletes the text that is there. Pasting in blank space where there isn't already text yields no result as well.

It is quite the inconvenience to use the HTML editor anytime I want to paste something... :)

Attachments (1)

geckopastefix.diff (473 bytes) - added by skeltoac 8 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 RobCarr8 years ago

Any time the cursor is to the hard left in the RTE at the beginning of a <p>, paste will not work. If you try to paste first thing in the RTE box, it won't work. If you hit <enter>, it won't work. If you use the arrow keys to navigate to these locations, it won't work. If you have sentences that word-wrap and you are to the hard left of the RTE, it *will* work. If you have an indentation, it will not work if you are at the beginning of the paragraph and as far over to the left as you can go -- and the same for ordered and unordered lists.

comment:2 skeltoac8 years ago

  • Keywords bg|has-patch added; copy paste post write removed
  • Milestone set to 2.0
  • Owner changed from anonymous to ryan
  • Priority changed from normal to high

It looks like a browser bug. We'll just insert some invisible content first to ensure you never paste into an empty element. Let's use <geckopastefix/>. This gets stripped before saving or editing HTML, so you'll only know it's there if you select the text in the RTE and View Selection Source. Works nicely.

skeltoac8 years ago

comment:3 ryan8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3287]) Gecko paste fix. fixes #2051

comment:4 anonymous7 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

comment:6 filosofo3 years ago

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.