Opened 10 years ago
Closed 10 years ago
#29592 closed defect (bug) (fixed)
Image captions break when wpautop is disabled in the editor
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0.1 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | TinyMCE | Keywords: | fixed-major |
Focuses: | Cc: |
Description
By default wpautop is enabled in TinyMCE but can be turned off when using wp_editor()
. This stops running the JS pre_wpautop()
on saving the post content and enables some basic HTML source formatting.
This breaks the regexp that converts the <div><dl>...</dl></div>
back to a caption shortcode.
Attachments (1)
Change History (6)
#2
@
10 years ago
- Keywords has-patch commit added
In 29592.patch:
- Grab white space around the <dl> tag when converting it to image caption shortcode.
- Relax the test for broken shortcodes.
#3
@
10 years ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In 29730:
Note: See
TracTickets for help on using
tickets.
Seems this is not a regression on 4.0 but rather a change in the latest TinyMCE. So
turns into