The Official {productname} Web Component integrates {productname} into Web Component projects. This procedure creates an HTML page containing a {productname} editor.
To add a {productname} editor to a web page using the {productname} Web Component:
-
Add the following meta tags to the head section of the page:
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1">
The second
metaelement is required for the editor to function correctly on mobile devices. For information on the viewportmetaelement, see: MDN Web Docs - Using the viewport meta tag to control layout on mobile browsers. -
Add a
tinymce-editorelement where the editor should appear.<tinymce-editor license-key="your-license-key"/>
The default {productname} editor will load at this location if the page is opened in a web browser.
-
Update the
license-keyoption in the editor element and include your License Key.
-
For information on customizing, see:
-
The {productname} Web Component, see: The {productname} Web Component Technical Reference.
-