Skip to content

Commit 03eaf65

Browse files
committed
Fix homepage and clear build warnings
1 parent da5e1e7 commit 03eaf65

13 files changed

Lines changed: 78 additions & 47 deletions

antora.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ version: '3'
44
asciidoc:
55
attributes:
66
cdnurl: '//cdn.tinymce.com/4/tinymce.min.js'
7+
product_latest_url: https://www.tiny.cloud/docs/tinymce/latest/index.html
78
nav:
89
- modules/ROOT/nav.adoc

modules/ROOT/pages/Installation.adoc

Lines changed: 51 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -83,47 +83,76 @@ Once you have extracted the archive you will need to edit the pages to include t
8383

8484
## The most basic page integration XHTML 1.1. valid (converts all textarea elements into editors)
8585

86-
Make sure you read the 2 html comments (starting with `
87-
86+
Make sure you read the 2 html comments (starting with `<!--`) before trying this code:
8887

8988

89+
[source,html]
90+
----
91+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
92+
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
93+
<head>
94+
<title>TinyMCE Test</title>
95+
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
96+
97+
<!-- OF COURSE YOU NEED TO ADAPT NEXT LINE TO YOUR tiny_mce.js PATH -->
98+
<script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
99+
100+
<script type="text/javascript">
101+
tinyMCE.init({
102+
mode : "textareas"
103+
});
104+
</script>
90105
</head>
106+
<body>
91107
108+
<!-- OF COURSE YOU NEED TO ADAPT ACTION TO WHAT PAGE YOU WANT TO LOAD WHEN HITTING "SAVE" -->
109+
<form method="post" action="show.php">
110+
<p>
111+
<textarea name="content" cols="50" rows="15">This is some content that will be editable with TinyMCE.</textarea>
112+
<input type="submit" value="Save" />
113+
</p>
114+
</form>
92115
93-
94-
95-
96-
This is some content that will be editable with TinyMCE.
97-
98-
99-
100-
101-
116+
</body>
102117
</html>
103-
[source]
104118
----
105119

106120
The Save button in this example sends the content of the textarea to the show.php page that will simply display it to you if you make it like this (of course you can adapt it to your needs to write the content to a file or database) :
107121

108-
----php
109-
110-
[source]
122+
[source,php]
123+
----
124+
<?php
125+
/* post.php : this page shows what insert.php has sent */
126+
echo(stripslashes($_POST['content']));
127+
?>
111128
----
112129

113-
## Same example using some more buttons
130+
== Same example using some more buttons
114131

115132
Just change the following code :
116133

117-
----html
118-
119-
[source]
134+
[source,html]
135+
----
136+
<script type="text/javascript">
137+
tinyMCE.init({
138+
mode : "textareas"
139+
});
140+
</script>
120141
----
121142

122143
which should be turned into :
123144

124-
----html
125-
126-
```
145+
[source,html]
146+
----
147+
<script type="text/javascript">
148+
tinyMCE.init({
149+
theme : "advanced",
150+
mode : "textareas",
151+
plugins : "fullpage",
152+
theme_advanced_buttons3_add : "fullpage"
153+
});
154+
</script>
155+
----
127156

128157
Conclusion: this part will control the editor's look and functionalities. You can adapt it to your needs according to [TinyMCE:Configuration](xref:reference/Configuration3x.adoc).
129158

@@ -132,4 +161,3 @@ Conclusion: this part will control the editor's look and functionalities. You ca
132161
Go here to check out the [examples](https://www.tiny.cloud/docs/demo/full-featured/) of different ways you can implement TinyMCE.
133162

134163
If you have any problems, you should check the [forum](https://community.tiny.cloud).
135-
....

modules/ROOT/pages/api/member_tinyMCE.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
= tinyMCE
44

55
[[tinymce]]
6-
=== tinyMCE
6+
== tinyMCE
77

88
*_public tinyMCE : xref:api/html/class_tinymce.adoc[tinymce]_* +
99
Alternative name for tinymce added for 2.x compatibility.

modules/ROOT/pages/api/member_tinymce.DOM.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
= tinymce.DOM
44

55
[[dom]]
6-
=== DOM
6+
== DOM
77

88
*_public DOM : xref:api/dom/class_tinymce.dom.DOMUtils.adoc[DOMUtils]_* +
99
Instance of DOMUtils for the current document.

modules/ROOT/pages/api/member_tinymce.EditorManager.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
= tinymce.EditorManager
44

55
[[editormanager]]
6-
=== EditorManager
6+
== EditorManager
77

88
*_public EditorManager : xref:api/html/class_tinymce.adoc[tinymce]_* +
99
Alternative name for tinymce added for compatibility.

modules/ROOT/pages/extras/Browser_compatiblity.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ As of 2.0.8 of TinyMCE we decided to not support MSIE 5.0 any more, there are ma
6868
|===
6969

7070
[[notes]]
71-
=== Notes
71+
== Notes
7272

7373
. Partially working.

modules/ROOT/pages/howto/words.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
It seems fairly common that people want to limit the number of words/characters in a form with TinyMCE so here is a small code snippet that can be used in your implementation logic to count the number of characters in the text and the number of words. The character/word limit checking needs to be in the implementation logic since TinyMCE shouldn't mess with form submission or validation that is up to the implementation.
66

77
[[function-that-returns-text-statistics-for-an-editor-instance-by-id]]
8-
=== Function that returns text statistics for an editor instance by id
8+
== Function that returns text statistics for an editor instance by id
99
anchor:functionthatreturnstextstatisticsforaneditorinstancebyid[historical anchor]
1010

1111
[source,js]
@@ -21,7 +21,7 @@ function getStats(id) {
2121
----
2222

2323
[[example-of-usage-of-the-statistics-function-above]]
24-
=== Example of usage of the statistics function above
24+
== Example of usage of the statistics function above
2525
anchor:exampleofusageofthestatisticsfunctionabove[historical anchor]
2626

2727
[source,js]

modules/ROOT/pages/index.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
:rootDir: ./
22
:partialsDir: {rootDir}partials/
3-
= TinyMCE Documentation
3+
= TinyMCE 3
44

5-
The official documentation source for the most advanced editor designed to simplify website creation.
5+
IMPORTANT: TinyMCE 3 is no-longer supported or maintained. Please upgrade to the link:{product_latest_url}[latest version of TinyMCE].
6+
7+
TinyMCE is a powerful and flexible text editor that makes it incredibly easy for people with various levels of technical expertise to create rich content.

modules/ROOT/pages/reference/Configuration3x.adoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
This document is the index/reference page for all available core configuration options in TinyMCE. There is also a list of old and xref:reference/Deprecated_Configuration_Options.adoc[deprecated config options] for older versions of TinyMCE.
66

77
[[configuration-options]]
8-
=== Configuration options
8+
== Configuration options
99
anchor:configurationoptions[historical anchor]
1010

1111
All configuration options below are to be placed within the `tinyMCE.init()` JavaScript call. This call will usually be made from outside of TinyMCE.
1212

1313
[[general]]
14-
== General
14+
=== General
1515

1616
* xref:reference/configuration/accessibility_warnings.adoc[accessibility_warnings]
1717
* xref:reference/configuration/auto_focus.adoc[auto_focus]
@@ -38,7 +38,7 @@ All configuration options below are to be placed within the `tinyMCE.init()` Jav
3838
* imagemanager_contextmenu
3939

4040
[[callbacks]]
41-
== Callbacks
41+
=== Callbacks
4242

4343
* xref:reference/configuration/cleanup_callback.adoc[cleanup_callback]
4444
* xref:reference/configuration/execcommand_callback.adoc[execcommand_callback]
@@ -56,7 +56,7 @@ All configuration options below are to be placed within the `tinyMCE.init()` Jav
5656
* xref:reference/configuration/urlconverter_callback.adoc[urlconverter_callback]
5757

5858
[[cleanupoutput]]
59-
== Cleanup/Output
59+
=== Cleanup/Output
6060

6161
* xref:reference/configuration/apply_source_formatting.adoc[apply_source_formatting]
6262
* xref:reference/configuration/convert_fonts_to_spans.adoc[convert_fonts_to_spans]
@@ -92,15 +92,15 @@ All configuration options below are to be placed within the `tinyMCE.init()` Jav
9292

9393

9494
[[url]]
95-
== URL
95+
=== URL
9696

9797
* xref:reference/configuration/convert_urls.adoc[convert_urls]
9898
* xref:reference/configuration/relative_urls.adoc[relative_urls]
9999
* xref:reference/configuration/remove_script_host.adoc[remove_script_host]
100100
* xref:reference/configuration/document_base_url.adoc[document_base_url]
101101

102102
[[layout]]
103-
== Layout
103+
=== Layout
104104

105105
* xref:reference/configuration/body_id.adoc[body_id]
106106
* xref:reference/configuration/body_class.adoc[body_class]
@@ -113,22 +113,22 @@ All configuration options below are to be placed within the `tinyMCE.init()` Jav
113113
* xref:reference/configuration/height.adoc[height]
114114

115115
[[visual-aids]]
116-
== Visual aids
116+
=== Visual aids
117117
anchor:visualaids[historical anchor]
118118

119119
* xref:reference/configuration/visual.adoc[visual]
120120
* xref:reference/configuration/visual_table_class.adoc[visual_table_class]
121121

122122
[[undoredo]]
123-
== Undo/Redo
123+
=== Undo/Redo
124124

125125
* xref:reference/configuration/custom_undo_redo.adoc[custom_undo_redo]
126126
* xref:reference/configuration/custom_undo_redo_levels.adoc[custom_undo_redo_levels]
127127
* xref:reference/configuration/custom_undo_redo_keyboard_shortcuts.adoc[custom_undo_redo_keyboard_shortcuts]
128128
* xref:reference/configuration/custom_undo_redo_restore_selection.adoc[custom_undo_redo_restore_selection]
129129

130130
[[file-lists]]
131-
== File lists
131+
=== File lists
132132
anchor:filelists[historical anchor]
133133

134134
* xref:reference/configuration/external_link_list_url.adoc[external_link_list_url]
@@ -137,14 +137,14 @@ anchor:filelists[historical anchor]
137137
* xref:reference/configuration/external_template_list_url.adoc[external_template_list_url]
138138

139139
[[triggerspatches]]
140-
== Triggers/Patches
140+
=== Triggers/Patches
141141

142142
* xref:reference/configuration/add_form_submit_trigger.adoc[add_form_submit_trigger]
143143
* xref:reference/configuration/add_unload_trigger.adoc[add_unload_trigger]
144144
* xref:reference/configuration/submit_patch.adoc[submit_patch]
145145

146146
[[advanced-theme]]
147-
== Advanced theme
147+
=== Advanced theme
148148
anchor:advancedtheme[historical anchor]
149149

150150
* xref:reference/configuration/theme_advanced_layout_manager.adoc[theme_advanced_layout_manager]
@@ -191,7 +191,7 @@ anchor:initializationoftinymce[historical anchor]
191191
In order to initialize the TinyMCE the following code must be placed within HEAD element of a document. The following example is configured to convert all TEXTAREA elements into editors when the page loads. There are other xref:reference/configuration/mode.adoc[modes] as well.
192192

193193
[[example-of-tinymce-configuration]]
194-
== Example of TinyMCE configuration
194+
=== Example of TinyMCE configuration
195195
anchor:exampleoftinymceconfiguration[historical anchor]
196196

197197
[source,html]

modules/ROOT/pages/reference/Plugins.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
TinyMCE's functionality can be extended with so-called Plugins. Here you can find an alphabetical list of all available plugins in the standard TinyMCE package.
66

77
[[plugins]]
8-
=== Plugins
8+
== Plugins
99

1010
To use a plugin, you need to use the advanced theme and add the plugin name in the "plugins" comma separated line. You also need to add the button to the interface. Read more about the advanced plugin to configure this.
1111

0 commit comments

Comments
 (0)