Important changes to Tiny Cloud pricing > Find out more

NOTE: TinyMCE 5 reached End of Support in April 2023. No more bug fixes, security updates, or new features will be introduced to TinyMCE 5. We recommend you upgrade to TinyMCE 6 or consider TinyMCE 5 Long Term Support (LTS) if you need more time.

Print plugin

Print the content in TinyMCE.

Contribute to this page
+ toolbar button + menu item

This plugin adds a print button to the toolbar. It also adds a Print item to the File menu dropdown.

Basic setup

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

Toolbar buttons

The Print plugin provides the following toolbar buttons:

Toolbar button identifier Description
print Prints the current editor contents.

These toolbar buttons can be added to the editor using:

Menu items

The Print plugin provides the following menu items:

Menu item identifier Default Menu Location Description
print File Prints the current document.

These menu items can be added to the editor using:

Commands

The Print plugin provides the following JavaScript command.

Command Description
mcePrint Opens the browser’s print dialog for the current page.

Example

tinymce.activeEditor.execCommand('mcePrint');

Can't find what you're looking for? Let us know.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.