Blueprint by Tiny
Return to Tiny.cloud
Return to Tiny.cloudTry TinyMCE for Free
Search by
Abstract illustration of physical servers depicting self-hosting concept.

How to self-host TinyMCE for your website or application

Ben Long

September 15th, 2020

Written by

Ben Long
Ben Long

Category

How-tos & Tutorials

Once you’ve decided to enhance your product with TinyMCE, the world’s most popular open source editor, you can get it up and running in your applications with just 6 lines of code.

A number 6 sliced into pieces

One of these six lines of code is used to load the TinyMCE package on your page.

But where should you load it from?

Running TinyMCE from the cloud

For most setups, we recommend running TinyMCE from the cloud. That way, you’ll have peace of mind, knowing you’re always up-to-date with the latest version and newest features. 

Get started with a free API key (with a 30-day trial of our premium plugins) and load the TinyMCE package as follows, replacing no-api-key with your own.

<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>

Self-hosting TinyMCE

However, we understand that in some cases you might need to self-host TinyMCE. So here’s an overview to help you get started.

To do this, you need to get a copy of the TinyMCE package so your application can access it locally. You can get a copy of the TinyMCE package in one of two ways:

Once you have the TinyMCE package locally available to your application, you can load it on your application pages with the following script:

<script src="/path/to/tinymce/tinymce.min.js"></script>

For example, in a simple HTML page:

<!DOCTYPE html>
<html>
<head>
  <script src="/path/to/tinymce/tinymce.min.js"></script>
  <script type="text/javascript">
  tinymce.init({
    selector: '#mytextarea'
  });
  </script>
</head>
<body>
  <h1>TinyMCE Quick Start Guide</h1>
  <form method="post">
    <textarea id="mytextarea">Hello, World!</textarea>
  </form>
</body>
</html>

Also see our detailed guide specific to integrating TinyMCE into an Express JS application.

TinyMCE running with default configuration as described above.

Powering up TinyMCE

Regardless of whether you’re running TinyMCE from the cloud or your own self-hosted installation, you might want to take full advantage of the features and support provided by Tiny; for example:

  • Provide additional productivity, compliance, or collaboration tools like PowerPaste, Spell Checker Pro, Comments, and other Tiny premium plugins.
  • Access additional support, usage, or licensing options, for example, to access our commercial agreement options allowing you to utilize TinyMCE outside of our open source license.
  • Apply custom skins and icons to better match the rest of your product.

We have two packages available online - Cloud Essential and Cloud Professional - of increasing value depending on your requirements, plus custom plans available through our sales team. Start with a free 14 day trial. A comprehensive overview of all plans is available on our pricing page.

A blog built with TinyMCE as the WYSIWYG HTML editor.
SupportConfiguration
Ben Long
byBen Long

Developer Advocate at Tiny. Computer scientist turned storyteller. Reminisces about programming on the MicroBee. Writes picture books for kids. Also the wearer of rad shoes. “Science isn’t finished until you share the story.”

Related Articles

  • A crystal ball on top of illuminated squares.
    How-tos & Tutorials

    TinyMCE CSS and custom styles

    by Ben Long in How-tos & Tutorials
  • Text that reads "<!DOCTYPE HTML>".
    How-tos & Tutorials

    TinyMCE requires standards mode

    by Ben Long in How-tos & Tutorials
Subscribe for the latest insights served straight to your inbox. Delivered weekly.

Deploy TinyMCE in just 6 lines of code

Built to scale. Developed in open source. Designed to innovate.

Begin with your FREE API Key
Tiny Editor