Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#21996 closed task (blessed) (fixed)

Add a JavaScript API for handling shortcodes

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

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)

#1 @koopersmith
14 years ago

  • Owner set to koopersmith
  • Resolution → fixed
  • Status new → 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
14 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.