Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.49 KB

File metadata and controls

46 lines (30 loc) · 1.49 KB

Insert Date/Time plugin

The insertdatetime plugin provides a toolbar control and menu item Insert date/time (under the Insert menu) that lets a user easily insert the current date and/or time into the editable area at the cursor insertion point.

Basic setup

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'insertdatetime',
  menubar: 'insert',
  toolbar: 'insertdatetime'
});

Commands

The Insert Date/Time plugin provides the following JavaScript commands.