Opened 10 years ago
Closed 10 years ago
#29380 closed defect (bug) (fixed)
Pasting content before a gallery shows after the gallery
Reported by: | Ipstenu | Owned by: | iseulde |
---|---|---|---|
Milestone: | 4.0.1 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | TinyMCE | Keywords: | fixed-major commit |
Focuses: | Cc: |
Description
Reported by bduclos in alpha/beta
- In visual mode, create a post and add a gallery.
- Copy some content to your clipboard
- Click BEFORE the gallery: https://cloudup.com/cuNUGTjTEI5
- Paste.
The text will show up after the gallery, not before.
Attachments (3)
Change History (22)
This ticket was mentioned in IRC in #wordpress-dev by ipstenu. View the logs.
10 years ago
This ticket was mentioned in IRC in #wordpress-dev by helen. View the logs.
10 years ago
#4
@
10 years ago
- Component changed from Editor to TinyMCE
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
This happens for all views. Looks like we forgot about this case.
#5
@
10 years ago
Yeah, we can add a case for this. For now the workaround is to click/place the caret before the view, then hit Enter to make a new paragraph before pasting.
This ticket was mentioned in IRC in #wordpress-dev by MarkJaquith. View the logs.
10 years ago
This ticket was mentioned in IRC in #wordpress-dev by nacin. View the logs.
10 years ago
#11
@
10 years ago
I think we should fix this for 4.0.1. There's some code that runs on BeforeSetContent
that we should look at for 4.1. Maybe it's not necessary anymore, else it should be adjusted a bit.
#12
@
10 years ago
A much better patch, I think.
This fixes another, smaller issue too. When your cursor is before a view and a command is fired that doesn't insert any content, such as the kitchen sink toggle, the cursor moves from the left to the right.
#16
@
10 years ago
- Keywords fixed-major commit added; has-patch needs-testing removed
- Resolution fixed deleted
- Status changed from closed to reopened
Reopen for 4.0.1
#17
@
10 years ago
29380.3.patch applies cleanly to the 4.0 branch, resolves the reported issue, and is ready for merge.
Same issue when inserting a new image (or gallery video, audio, using the Add Media button) before the gallery.
The new image will show up after the gallery, not before.