Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.67 KB

File metadata and controls

58 lines (39 loc) · 1.67 KB

Lists plugin

The lists plugin allows you to add numbered and bulleted lists to {productname}. To enable List Styles (e.g. alpha numbered lists, square bullets) you should also enable the List Styles (advlist) plugin.

The plugin also normalizes list behavior between browsers. Enable it if you have problems with consistency making lists.

Basic setup

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'lists',
  toolbar: 'numlist bullist'
});

Example adding the listprops menu item to the Tools menu

The listprops menu item opens the List Properties dialog.

This dialog only works with numbered lists. The menu item is inactive unless the selection or insertion point is within a numbered list.

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'lists',
  toolbar: 'bullist numlist',
  menu: { tools: { title: 'Tools', items: 'listprops' }},
});

Commands

The Lists plugin provides the following {productname} commands.