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
<!-- 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>
92
115
93
-
94
-
95
-
96
-
This is some content that will be editable with TinyMCE.
97
-
98
-
99
-
100
-
101
-
116
+
</body>
102
117
</html>
103
-
[source]
104
118
----
105
119
106
120
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) :
107
121
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
+
?>
111
128
----
112
129
113
-
## Same example using some more buttons
130
+
== Same example using some more buttons
114
131
115
132
Just change the following code :
116
133
117
-
----html
118
-
119
-
[source]
134
+
[source,html]
135
+
----
136
+
<script type="text/javascript">
137
+
tinyMCE.init({
138
+
mode : "textareas"
139
+
});
140
+
</script>
120
141
----
121
142
122
143
which should be turned into :
123
144
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
+
----
127
156
128
157
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).
129
158
@@ -132,4 +161,3 @@ Conclusion: this part will control the editor's look and functionalities. You ca
132
161
Go here to check out the [examples](https://www.tiny.cloud/docs/demo/full-featured/) of different ways you can implement TinyMCE.
133
162
134
163
If you have any problems, you should check the [forum](https://community.tiny.cloud).
Copy file name to clipboardExpand all lines: modules/ROOT/pages/howto/words.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
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.
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.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/reference/Configuration3x.adoc
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@
5
5
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.
6
6
7
7
[[configuration-options]]
8
-
===Configuration options
8
+
== Configuration options
9
9
anchor:configurationoptions[historical anchor]
10
10
11
11
All configuration options below are to be placed within the `tinyMCE.init()` JavaScript call. This call will usually be made from outside of TinyMCE.
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.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/reference/Plugins.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
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.
6
6
7
7
[[plugins]]
8
-
===Plugins
8
+
== Plugins
9
9
10
10
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.
0 commit comments