Opened 12 years ago
Closed 12 years ago
#29592 closed defect (bug) (fixed)
Image captions break when wpautop is disabled in the editor
| Reported by: | azaozz | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0.1 |
| Component: | TinyMCE | Version: | 4.0 |
| Severity: | normal | Keywords: | fixed-major |
| Cc: | Focuses: |
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
@
12 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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Seems this is not a regression on 4.0 but rather a change in the latest TinyMCE. So
turns into