Skip to content

Commit 21f813e

Browse files
committed
DOC-3313: Revert changes to incorrect demo to the cloud-quick-start demo.
1 parent 79d556e commit 21f813e

File tree

6 files changed

+30
-31
lines changed

6 files changed

+30
-31
lines changed

modules/ROOT/examples/live-demos/default-editor/example.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
when you click submit.
44
-->
55
<textarea id="default-editor">
6-
<h1>Welcome to TinyMCE!</h1>
7-
<p>⭐️ Let's <em>explore</em> some features 🗺️ like <span style="background-color: #bfedd2;">footnotes</span>, <span style="background-color: #c2e0f4;">spellchecking</span> and <span style="background-color: #fbeeb8;">export to PDF</span>...</p>
6+
<p><em>Hello</em>, <span style="text-decoration: underline;"><strong>World!</strong></span></p>
87
</textarea>
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
tinymce.init({
22
selector: 'textarea#default-editor',
33
plugins: [
4-
"advlist", "autolink", "charmap", "codesample", "emoticons", "help",
5-
"image", "link", "lists", "searchreplace", "table", "wordcount",
6-
// Premium features
7-
"advcode", "autocorrect", "footnotes", "mediaembed",
8-
"powerpaste", "tinymcespellchecker", "casechange", "checklist",
9-
"formatpainter", "permanentpen", "advtable", "tableofcontents", "exportpdf"
4+
"advlist", "anchor", "autolink", "charmap", "code", "fullscreen",
5+
"help", "image", "insertdatetime", "link", "lists", "media",
6+
"preview", "searchreplace", "table", "visualblocks",
107
],
11-
toolbar: " exportpdf | spellcheckdialog | styles | bold italic underline strikethrough | align bullist numlist | link image emoticons footnotes checklist formatpainter permanentpen tableofcontents",
8+
toolbar: "undo redo | styles | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
129
});

modules/ROOT/examples/live-demos/default-editor/index.html

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,28 @@
1414
}
1515
.live_demo {
1616
background-color: #335dff;
17-
color: #fafafa !important;
17+
color: #fafafa;
1818
cursor: pointer;
1919
font-size: 1em;
2020
font-weight: 600;
2121
line-height: 1.15;
2222
margin: 0;
23-
padding: 0.625rem 1.5rem;
24-
border-radius: 8px;
25-
border: none;
26-
transition: all 0.3s ease;
27-
box-shadow: 0 2px 8px rgba(51, 93, 255, 0.2);
23+
padding: .5rem;
24+
border-radius: 6px;
2825
}
2926
.live_demo:hover {
30-
background-color: #f5f5f5 !important;
31-
color: #0c132c !important;
32-
transform: translateY(-2px);
33-
box-shadow: 0 4px 16px rgba(51, 93, 255, 0.3);
27+
background-color: #2a4fd8;
3428
}
3529
</style>
3630

3731
<textarea id="default-editor">
38-
<h1>Welcome to TinyMCE!</h1>
39-
<p>⭐️ Let's <em>explore</em> some features 🗺️ like <span style="background-color: #bfedd2;">footnotes</span>, <span style="background-color: #c2e0f4;">spellchecking</span> and <span style="background-color: #fbeeb8;">export to PDF</span>...</p>
32+
<p><em>Hello</em>, <span style="text-decoration: underline;"><strong>World!</strong></span></p>
4033
</textarea>
34+
4135
<div id="submitContainer">
4236
<button id="fake-submit" class="live_demo">View HTML Output</button>
4337
</div>
44-
<pre id="output-content" class="contentDumpBox">Click the "View HTML Output" button to see the generated HTML content. Try editing the text above to see how TinyMCE preserves your formatting and styles!</pre>
38+
<pre id="output-content" class="contentDumpBox">Click the "View HTML Output" button to see the generated HTML content.</pre>
4539
<script>
4640
const btn = document.getElementById('fake-submit');
4741
btn.addEventListener('click', () => {
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
tinymce.init({
22
selector: 'textarea#default-editor',
33
plugins: [
4-
"advlist", "autolink", "charmap", "codesample", "emoticons", "help",
5-
"image", "link", "lists", "searchreplace", "table", "wordcount",
6-
// Premium features
7-
"advcode", "autocorrect", "footnotes", "mediaembed",
8-
"powerpaste", "tinymcespellchecker", "casechange", "checklist",
9-
"formatpainter", "permanentpen", "advtable", "tableofcontents", "exportpdf"
4+
"advlist", "anchor", "autolink", "charmap", "code", "fullscreen",
5+
"help", "image", "insertdatetime", "link", "lists", "media",
6+
"preview", "searchreplace", "table", "visualblocks",
107
],
11-
toolbar: "exportpdf | spellcheckdialog | styles | bold italic underline strikethrough | align bullist numlist | link image emoticons footnotes checklist formatpainter permanentpen tableofcontents",
8+
toolbar: "undo redo | styles | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
129
});
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
<textarea id="default">Hello, World!</textarea>
1+
<textarea id="default">
2+
<h1>Welcome to TinyMCE!</h1>
3+
<p>⭐️ Let's <em>explore</em> some features 🗺️ like <span style="background-color: #bfedd2;">footnotes</span>, <span style="background-color: #c2e0f4;">spellchecking</span> and <span style="background-color: #fbeeb8;">export to PDF</span>...</p>
4+
</textarea>
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
tinymce.init({
2-
selector: 'textarea#default'
2+
selector: 'textarea#default',
3+
plugins: [
4+
"advlist", "autolink", "charmap", "codesample", "emoticons", "help",
5+
"image", "link", "lists", "searchreplace", "table", "wordcount",
6+
// Premium features
7+
"advcode", "autocorrect", "footnotes", "mediaembed",
8+
"powerpaste", "tinymcespellchecker", "casechange", "checklist",
9+
"formatpainter", "permanentpen", "advtable", "tableofcontents", "exportpdf"
10+
],
11+
toolbar: "exportpdf | spellcheckdialog | styles | bold italic underline strikethrough | align bullist numlist | link image emoticons footnotes checklist formatpainter permanentpen tableofcontents",
312
});

0 commit comments

Comments
 (0)