WordPress.org

Make WordPress Core

Opened 19 months ago

Closed 19 months ago

Last modified 19 months ago

#21996 closed task (blessed) (fixed)

Add a JavaScript API for handling shortcodes

Reported by: koopersmith Owned by: koopersmith
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

Given our effort to improve in-editor TinyMCE UI, it makes sense to have JavaScript methods to accurately scan content for shortcodes, as they are a prime target for in-editor UI features (see the gallery and caption shortcodes for examples).

Change History (2)

comment:1 koopersmith19 months ago

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

In [22004]:

Add JavaScript methods for handling shortcodes.

Adds wp.shortcode, a set of methods used for parsing shortcodes out of content. Also adds a default set of shortcode properties to wp.mce.view.

fixes #21996, see #21812, #21813, #21815.

comment:2 nacin19 months ago

In [22005]:

Add a comment to get_shortcode_regex() mentioning its near clones elsewhere. see #21996.

Note: See TracTickets for help on using tickets.