Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#21996 closed task (blessed) (fixed)

Add a JavaScript API for handling shortcodes

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


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)

#1 @koopersmith
12 years 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.

#2 @nacin
12 years 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.