Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
tinymce.init({
selector: 'textarea#default-editor'
selector: 'textarea#default-editor',
plugins: [
"advlist", "anchor", "autolink", "charmap", "code", "fullscreen",
"help", "image", "insertdatetime", "link", "lists", "media",
"preview", "searchreplace", "table", "visualblocks",
],
toolbar: "undo redo | styles | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
});
26 changes: 20 additions & 6 deletions modules/ROOT/examples/live-demos/default-editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,38 @@
#submitContainer {
display: flex;
justify-content: center;
margin: 20px 0;
}
.contentDumpBox {
white-space: normal;
padding: 5px;
white-space: pre-wrap;
padding: 15px;
border: 2px solid #1976D2;
border-radius: 10px;
margin: 5px;
background-color: #f8f9fa;
}
.live_demo {
background-color: #335dff;
color: #fafafa;
cursor: pointer;
font-size: 1em;
line-height: 1.15;
margin: 0;
padding: .5rem;
border-radius: 6px;
}
.live_demo:hover {
background-color: #2a4fd8;
}
</style>

<textarea id="default-editor">
<p><em>Hello</em>, <span style="text-decoration: underline;"><strong>World!</strong></span></p>
</textarea>
<div id="submitContainer">
<button id="fake-submit" class="live_demo">Submit!</button>
<button id="fake-submit" class="live_demo">View HTML Output</button>
</div>
<pre id="output-content" class="contentDumpBox">
Click the submit button to view the output HTML.
</pre>
<pre id="output-content" class="contentDumpBox">Click the "View HTML Output" button to see the generated HTML content.</pre>
<script>
const btn = document.getElementById('fake-submit');
btn.addEventListener('click', () => {
Expand Down
8 changes: 7 additions & 1 deletion modules/ROOT/examples/live-demos/default-editor/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
tinymce.init({
selector: 'textarea#default-editor'
selector: 'textarea#default-editor',
plugins: [
"advlist", "anchor", "autolink", "charmap", "code", "fullscreen",
"help", "image", "insertdatetime", "link", "lists", "media",
"preview", "searchreplace", "table", "visualblocks",
],
toolbar: "undo redo | styles | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
});
15 changes: 11 additions & 4 deletions modules/ROOT/partials/what-is-tinymce.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ include::partial$misc/admon-account-creation-and-social-option.adoc[]

liveDemo::default-editor[]

The output created is in HTML5 and can include lists, tables, and other useful elements, depending on your configuration. The functionality of the editor can be extended through plugins and customizations, or limited to suit your use-case. {productname} can also be customized to look and feel like part of your application or webpage by customizing the user interface. {productname} can be integrated into a range of frameworks and Content Management Systems (CMSs), and can be either:
== Overview

{productname} generates HTML5 output and supports various content elements including lists, tables, and other formatting options. The editor's functionality can be extended through plugins and customizations, or restricted to meet specific requirements. The user interface can be customized to integrate seamlessly with applications or webpages.

== Integration Options

{productname} integrates with frameworks and Content Management Systems (CMSs) through multiple deployment methods:

* **Cloud CDN**: Load from the {cloudname} CDN for automatic updates to the latest version
* **Package Manager**: Install locally using package managers for self-hosted solutions
* **Direct Download**: Extract from .zip files for self-hosted installations

* Loaded from the {cloudname} CDN (Content Delivery Network), which will ensure {productname} is always using the latest version.
* Installed with a package manager (self-hosted).
* Extracted from a .zip file (self-hosted).

include::partial$misc/admon-getting-started-with-tinymce.adoc[]

Expand Down