3rd-Party Plugins

TinyMCE

TinyMCE is a powerful WYSIWYG rich text editor that integrates seamlessly with the Metronic Tailwind CSS toolkit. It is an open-source project licensed under LGPL.

Installation

TinyMCE version 8 is installed via NPM as a third-party dependency by referring to package.json . Install TinyMCE v8 using npm install tinymce@^8 . During the Theme Installation process, it is compiled by the Build Tools into the /dist/assets/vendors/tinymce directory.

Require Assets

To use TinyMCE in your pages, you need to include the following dependency assets in the order shown.
				
					<!DOCTYPE html>
<html>
 <head>
  <!--Core styles (includes TinyMCE styling via tinymce.css component)-->
  <link href="/dist/assets/css/styles.css" rel="stylesheet"/>
 </head>
 <body>
  <textarea id="editor"></textarea>
  <!--Core bundle script-->
  <script src="/dist/assets/js/core.bundle.js">
  </script>
  <!--Vendor script -->
  <script src="/dist/assets/vendors/tinymce/tinymce.min.js">
  </script>
  <!--Custom script -->
  <script src="/dist/assets/js/pages/plugins/tinymce/basic.js">
  </script>
 </body>
</html>

				
			

Basic

A basic TinyMCE editor example demonstrating the default editor initialization with Metronic Tailwind CSS styling. This example shows how to initialize a simple rich text editor that automatically adapts to the Metronic design system.

Toolbar

This example demonstrates how to customize the TinyMCE toolbar with different button configurations. All toolbar buttons automatically use Metronic Tailwind CSS styling.

Plugins

This example demonstrates various TinyMCE plugins including lists, links, images, tables, and more. All plugin UI elements automatically use Metronic Tailwind CSS styling.

Form Integration

This example demonstrates TinyMCE integrated with Metronic form components. The editor seamlessly integrates with Metronic form layouts and styling.

Readonly Editor

Readonly mode displays content that cannot be modified. This example demonstrates how to initialize a TinyMCE editor in readonly mode, useful for displaying formatted content that users should view but not edit. The readonly editor automatically uses Metronic Tailwind CSS styling.

Custom Configuration

Custom configuration demonstrates advanced options like automatic uploads, image handling, and extended plugins. This example shows how to configure TinyMCE with a comprehensive set of features including extended toolbar, multiple plugins, and advanced content handling options. The custom configuration editor automatically uses Metronic Tailwind CSS styling.