Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions modules/ROOT/partials/integrations/blazor-postinstall.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ ifeval::["{productSource}" != "cloud"]
----
<Editor
ScriptSrc="/path/to/tinymce.min.js"
LicenseKey="gpl"
/>
----
+
include::partial$misc/admon-license-key-gpl.adoc[]

endif::[]
10 changes: 10 additions & 0 deletions modules/ROOT/partials/integrations/bootstrap-quick-start.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,20 @@ endif::[]
----
<script>
tinymce.init({
ifeval::["{productSource}" == "cloud"]
selector: 'textarea#tiny'
endif::[]
ifeval::["{productSource}" != "cloud"]
selector: 'textarea#tiny',
license_key: 'gpl'
endif::[]
});
</script>
----
ifeval::["{productSource}" != "cloud"]
+
include::partial$misc/admon-license-key-gpl.adoc[]
endif::[]

== Using {productname} in a Bootstrap dialog

Expand Down
18 changes: 18 additions & 0 deletions modules/ROOT/partials/integrations/django-quick-start.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ TINYMCE_COMPRESSOR = False
TINYMCE_JS_ROOT = os.path.join(MEDIA_URL, "path/to/tinymce")
TINYMCE_COMPRESSOR = True
----
. Set `+license_key+` in `+TINYMCE_DEFAULT_CONFIG+` in the project’s `+settings.py+` file. `+TINYMCE_DEFAULT_CONFIG+` replaces the default `+django-tinymce+` configuration, so include any other options the editor needs. Such as:
+
[source,py]
----
TINYMCE_DEFAULT_CONFIG = {
"license_key": "gpl",
"height": 500,
"menubar": False,
Comment thread
kemister85 marked this conversation as resolved.
"browser_spellcheck": True,
"plugins": "advlist,autolink,lists,link,image,charmap,preview,anchor,"
"searchreplace,visualblocks,code,fullscreen,insertdatetime,media,table,"
"help,wordcount",
"toolbar": "undo redo | blocks | bold italic backcolor | alignleft aligncenter "
"alignright alignjustify | bullist numlist outdent indent | removeformat | help",
}
----
+
include::partial$misc/admon-license-key-gpl.adoc[]

endif::[]
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ Windows:
----
tinymce.init({
selector: 'textarea#my-expressjs-{prodnamecode}-app',
license_key: 'gpl',
plugins: 'lists link image table code help wordcount'
});
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
. Update `+public/index.html+` to include:
* The document type declaration, `+<!DOCTYPE html>+`.
* A `+<script>+` element sourcing `+tinymce.min.js+`.
Expand Down
7 changes: 7 additions & 0 deletions modules/ROOT/partials/integrations/laravel-quick-start.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,18 @@ _File:_ `+resources/views/components/head/tinymce-config.blade.php+`
<script>
tinymce.init({
selector: 'textarea#myeditorinstance', // Replace this CSS selector to match the placeholder element for TinyMCE
ifeval::["{productSource}" != "cloud"]
license_key: 'gpl',
endif::[]
plugins: 'code table lists',
toolbar: 'undo redo | blocks | bold italic | alignleft aligncenter alignright | indent outdent | bullist numlist | code | table'
});
</script>
----
ifeval::["{productSource}" != "cloud"]
+
include::partial$misc/admon-license-key-gpl.adoc[]
endif::[]

ifeval::["{productSource}" == "cloud"]
. Replace `+no-api-key+` in the {productname} source script with your {cloudname} API Key.
Expand Down
6 changes: 6 additions & 0 deletions modules/ROOT/partials/integrations/rails-quick-start.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ include::partial$integrations/rails-basic-proj.adoc[]
<script>
tinymce.init({
selector: '.tinymce',
license_key: 'gpl',
plugins: 'lists link image table code help wordcount'
});
</script>
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
. Create a `+<textarea>+` with the initial content `+Hello, World!+` for {productname} by adding the following lines to `+app/views/welcome/index.html.erb+`:
+
[source,erb]
Expand Down Expand Up @@ -96,13 +99,16 @@ touch config/tinymce.yml
+
[source,yml]
----
license_key: gpl
height: 500
menubar: false
toolbar:
- undo redo | blocks | bold italic | alignleft aligncenter alignright | bullist numlist outdent indent | removeformat | help
plugins:
- insertdatetime lists media table code help wordcount
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
. Add the following lines within the `+<head>+` element of `+app/views/layouts/application.html.erb+` to automatically include {productname} on pages using the `+application+` layout:
+
[source,erb]
Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/partials/misc/admon-license-key-gpl.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTE: The `+gpl+` license key is for self-hosting {productname} under the GNU General Public License (GPL). To use a commercial license, or to include premium plugins, replace `+gpl+` with a valid license key. For details, see xref:license-key.adoc#setting-the-license[Setting the license].
Comment thread
kemister85 marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const contentCss = fs.readFileSync('node_modules/tinymce/skins/content/default/c
exports.render = () => {
tinymce.init({
selector: 'textarea#editor',
license_key: 'gpl',
/* All plugins need to be imported and added to the plugins option. */
plugins: 'advlist code emoticons link lists table help',
toolbar: 'bold italic | bullist numlist | link emoticons',
Expand All @@ -57,3 +58,5 @@ include::partial$module-loading/bundling-external-plugins-npm.adoc[]
});
};
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const contentCss = fs.readFileSync('tinymce/js/tinymce/skins/content/default/con
exports.render = () => {
tinymce.init({
selector: 'textarea#editor',
license_key: 'gpl',
/* All plugins need to be imported and added to the plugins option. */
plugins: 'advlist code emoticons link lists table help',
toolbar: 'bold italic | bullist numlist | link emoticons',
Expand All @@ -59,3 +60,5 @@ include::partial$module-loading/bundling-external-plugins-zip.adoc[]
});
};
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import contentCss from 'tinymce/skins/content/default/content.css';
export function render () {
tinymce.init({
selector: 'textarea#editor',
license_key: 'gpl',
plugins: 'advlist code emoticons link lists table help',
toolbar: 'bold italic | bullist numlist | link emoticons',
skin: false,
Expand All @@ -50,4 +51,6 @@ export function render () {
include::partial$module-loading/bundling-external-plugins-npm.adoc[]
});
};
----
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import contentCss from '../tinymce/js/tinymce/skins/content/default/content.css'
export function render () {
tinymce.init({
selector: 'textarea#editor',
license_key: 'gpl',
plugins: 'advlist code emoticons link lists table help',
toolbar: 'bold italic | bullist numlist | link emoticons',
skin: false,
Expand All @@ -52,4 +53,6 @@ export function render () {
include::partial$module-loading/bundling-external-plugins-zip.adoc[]
});
};
----
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ include::partial$module-loading/bundling-external-plugins-npm.adoc[]
});
};
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const contentCss = require('tinymce/skins/content/default/content.css');
exports.render = () => {
tinymce.init({
selector: 'textarea#editor',
license_key: 'gpl',
/* All plugins need to be imported and added to the plugins option. */
plugins: 'advlist code emoticons link lists table help',
toolbar: 'bold italic | bullist numlist | link emoticons',
Expand All @@ -49,3 +50,5 @@ exports.render = () => {
});
};
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const contentCss = require('../tinymce/js/tinymce/skins/content/default/content.
exports.render = () => {
tinymce.init({
selector: 'textarea#editor',
license_key: 'gpl',
/* All plugins need to be imported and added to the plugins option. */
plugins: 'advlist code emoticons link lists table help',
toolbar: 'bold italic | bullist numlist | link emoticons',
Expand All @@ -50,3 +51,5 @@ include::partial$module-loading/bundling-external-plugins-zip.adoc[]
});
};
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import contentCss from 'tinymce/skins/content/default/content.css';
export function render () {
tinymce.init({
selector: 'textarea#editor',
license_key: 'gpl',
plugins: 'advlist code emoticons link lists table help',
toolbar: 'bold italic | bullist numlist | link emoticons',
skin: false,
Expand All @@ -48,3 +49,5 @@ export function render () {
});
};
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ import contentCss from '../tinymce/js/tinymce/skins/content/default/content.css'
export function render () {
tinymce.init({
selector: 'textarea#editor',
license_key: 'gpl',
plugins: 'advlist code emoticons link lists table help',
toolbar: 'bold italic | bullist numlist | link emoticons',
skin: false,
content_css: false,
content_style: contentUiSkinCss.toString() + '\n' + contentCss.toString()
});
};
----
----
+
include::partial$misc/admon-license-key-gpl.adoc[]
Loading