You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMPORTANT: The handling of content CSS files (such as `+content.css+` or `+content.min.css+`) varies between bundling tools. View the relevant guide for the required syntax at xref:introduction-to-bundling-tinymce.adoc[Bundling {productname} with a module loader].
67
+
68
+
[IMPORTANT]
69
+
====
70
+
The handling of content CSS files varies between bundling tools:
71
+
72
+
* **Webpack/Rollup**: Import the `.css` file as a variable and use `+content_style+` option (e.g., `+content_style: contentCSS.toString()+`).
73
+
* **Vite**: Import the `.js` file as a side-effect and use `+content_css+` option with a string value (e.g., `+content_css: 'example'+`).
74
+
75
+
View the relevant guide for the required syntax at xref:introduction-to-bundling-tinymce.adoc[Bundling {productname} with a module loader].
When using `+import tinymce from 'tinymce'+`, import only the individual premium plugins from `+tinymce-premium+` (e.g., `+import 'tinymce-premium/plugins/advcode'+`). Do not import the `+tinymce-premium+` package. The plugins automatically register with the {productname} instance.
84
+
====
85
+
86
+
[[using-premium-plugins]]
87
+
== Using premium plugins
88
+
89
+
After installing the `+tinymce-premium+` package, you need to configure the plugins in your editor. There are two main approaches:
90
+
91
+
=== Bundling (Recommended)
92
+
93
+
For most modern applications, bundling premium plugins is recommended. This includes the plugin code directly in your application bundle.
* Relative to web-server root (e.g., `+/node_modules/...`)
143
+
* Relative to {productname} `+base_url+` (e.g., `+../../node_modules/...`)
144
+
145
+
For more information, see: xref:editor-important-options.adoc#external_plugins[`+external_plugins+` configuration option].
146
+
====
147
+
148
+
=== License key manager
149
+
150
+
[IMPORTANT]
151
+
====
152
+
Always include the `+licensekeymanager+` plugin when using premium plugins with a commercial license. The editor will not function properly without it. For more information, see: xref:license-key.adoc[License Key].
0 commit comments