Skip to content

Commit a1bf2ef

Browse files
committed
Fixing codeblocks
1 parent 454632c commit a1bf2ef

File tree

190 files changed

+1206
-780
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+1206
-780
lines changed

CONTRIBUTING.adoc

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,42 +43,46 @@ Include any key values pairs and method options that are required to enable a us
4343

4444
For example, this is good:
4545

46-
```
46+
[source]
47+
----
4748
tinymce.init({
4849
selector: 'textarea', // change this value according to your HTML
4950
plugins: 'codesample',
5051
toolbar: 'codesample'
5152
});
52-
```
53+
----
5354

5455
This is not:
5556

56-
```
57+
[source]
58+
----
5759
tinymce.init({
5860
...
5961
plugins: 'codesample',
6062
toolbar: 'codesample'
6163
...
6264
});
63-
```
65+
----
6466

6567
[[urls-and-links]]
6668
=== URLs and links
6769

6870
Resources to be linked take the form of placing the linked text between brackets and the URL between parenthesis. Linking an external resource looks like this:
6971

70-
```
72+
[source]
73+
----
7174
hello, [text to link](http://www.example.com) to the URL example.com.
72-
```
75+
----
7376

7477
[[codepens]]
7578
=== Codepens
7679

7780
Codepens can be added to content using the "codepen" macro, such as:
7881

79-
```
82+
[source]
83+
----
8084
codepen::basic-example[]
81-
```
85+
----
8286

8387
There are several options for this include file - please see `_includes/codepen.html` for details.
8488

@@ -89,7 +93,8 @@ The source for each CodePen is store in the `_includes/codepens/` directory.
8993

9094
Every page should have a meta section starting at line 1 containing information that is both informative and system critical. If you are creating a page or editing one that currently has inadequate meta information, please read the comments next to the default meta fields below.
9195

92-
```
96+
[source]
97+
----
9398
--- // Three dashes at the start and end of the meta section, must be included.
9499
layout: default // In most cases leave this as 'default'.
95100
title: // The nav.yml references this so it must be included and it should be brief.
@@ -98,7 +103,7 @@ description_short: // Short description for the grid layouts.
98103
description: // Detailed description at page level for the header section under the title.
99104
keywords: // Space-separated list of keywords in the content.
100105
---
101-
```
106+
----
102107

103108
[[style-guide]]
104109
== Style Guide

modules/ROOT/nav.adoc

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,194 @@
77
* xref:Installation.adoc[Installation]
88
* Reference
99
** xref:reference/Plugins.adoc[Plugins]
10+
*** xref:reference/plugins/advhr.adoc[advhr]
11+
*** xref:reference/plugins/advimage.adoc[advimage]
12+
*** xref:reference/plugins/advlink.adoc[advlink]
13+
*** xref:reference/plugins/advlist.adoc[advlist]
14+
*** xref:reference/plugins/autolink.adoc[autolink]
15+
*** xref:reference/plugins/autoresize.adoc[autoresize]
16+
*** xref:reference/plugins/autosave.adoc[autosave]
17+
*** xref:reference/plugins/bbcode.adoc[bbcode]
18+
*** xref:reference/plugins/contextmenu.adoc[contextmenu]
19+
*** xref:reference/plugins/directionality.adoc[directionality]
20+
*** xref:reference/plugins/emotions.adoc[emotions]
21+
*** xref:reference/plugins/fullpage.adoc[fullpage]
22+
*** xref:reference/plugins/fullscreen.adoc[fullscreen]
23+
*** xref:reference/plugins/iespell.adoc[iespell]
24+
*** xref:reference/plugins/index.adoc[index]
25+
*** xref:reference/plugins/inlinepopups.adoc[inlinepopups]
26+
*** xref:reference/plugins/insertdatetime.adoc[insertdatetime]
27+
*** xref:reference/plugins/layer.adoc[layer]
28+
*** xref:reference/plugins/legacyoutput.adoc[legacyoutput]
29+
*** xref:reference/plugins/lists.adoc[lists]
30+
*** xref:reference/plugins/media.adoc[media]
31+
*** xref:reference/plugins/nonbreaking.adoc[nonbreaking]
32+
*** xref:reference/plugins/noneditable.adoc[noneditable]
33+
*** xref:reference/plugins/pagebreak.adoc[pagebreak]
34+
*** xref:reference/plugins/paste.adoc[paste]
35+
*** xref:reference/plugins/preview.adoc[preview]
36+
*** xref:reference/plugins/print.adoc[print]
37+
*** xref:reference/plugins/save.adoc[save]
38+
*** xref:reference/plugins/searchreplace.adoc[searchreplace]
39+
*** xref:reference/plugins/spellchecker.adoc[spellchecker]
40+
*** xref:reference/plugins/style.adoc[style]
41+
*** xref:reference/plugins/tabfocus.adoc[tabfocus]
42+
*** xref:reference/plugins/table.adoc[table]
43+
*** xref:reference/plugins/template.adoc[template]
44+
*** xref:reference/plugins/visualchars.adoc[visualchars]
45+
*** xref:reference/plugins/wordcount.adoc[wordcount]
46+
*** xref:reference/plugins/xhtmlxtras.adoc[xhtmlxtras]
1047
** xref:reference/Configuration3x.adoc[Configuration]
48+
49+
*** xref:reference/configuration/accessibility_warnings.adoc[accessibility_warnings]
50+
*** xref:reference/configuration/add_form_submit_trigger.adoc[add_form_submit_trigger]
51+
*** xref:reference/configuration/add_unload_trigger.adoc[add_unload_trigger]
52+
*** xref:reference/configuration/Advanced_theme.adoc[Advanced_theme]
53+
*** xref:reference/configuration/apply_source_formatting.adoc[apply_source_formatting]
54+
*** xref:reference/configuration/auto_focus.adoc[auto_focus]
55+
*** xref:reference/configuration/body_class.adoc[body_class]
56+
*** xref:reference/configuration/body_id.adoc[body_id]
57+
*** xref:reference/configuration/browsers.adoc[browsers]
58+
*** xref:reference/configuration/browser_spellcheck.adoc[browser_spellcheck]
59+
*** xref:reference/configuration/Callbacks.adoc[Callbacks]
60+
*** xref:reference/configuration/class_filter.adoc[class_filter]
61+
*** xref:reference/configuration/cleanup.adoc[cleanup]
62+
*** xref:reference/configuration/cleanup_callback.adoc[cleanup_callback]
63+
*** xref:reference/configuration/cleanup_on_startup.adoc[cleanup_on_startup]
64+
*** xref:reference/configuration/constrain_menus.adoc[constrain_menus]
65+
*** xref:reference/configuration/content_css.adoc[content_css]
66+
*** xref:reference/configuration/convert_fonts_to_spans.adoc[convert_fonts_to_spans]
67+
*** xref:reference/configuration/convert_newlines_to_brs.adoc[convert_newlines_to_brs]
68+
*** xref:reference/configuration/convert_urls.adoc[convert_urls]
69+
*** xref:reference/configuration/custom_elements.adoc[custom_elements]
70+
*** xref:reference/configuration/custom_shortcuts.adoc[custom_shortcuts]
71+
*** xref:reference/configuration/custom_undo_redo.adoc[custom_undo_redo]
72+
*** xref:reference/configuration/custom_undo_redo_keyboard_shortcuts.adoc[custom_undo_redo_keyboard_shortcuts]
73+
*** xref:reference/configuration/custom_undo_redo_levels.adoc[custom_undo_redo_levels]
74+
*** xref:reference/configuration/custom_undo_redo_restore_selection.adoc[custom_undo_redo_restore_selection]
75+
*** xref:reference/configuration/dialog_type.adoc[dialog_type]
76+
*** xref:reference/configuration/directionality.adoc[directionality]
77+
*** xref:reference/configuration/doctype.adoc[doctype]
78+
*** xref:reference/configuration/document_base_url.adoc[document_base_url]
79+
*** xref:reference/configuration/editor_css.adoc[editor_css]
80+
*** xref:reference/configuration/editor_deselector.adoc[editor_deselector]
81+
*** xref:reference/configuration/editor_selector.adoc[editor_selector]
82+
*** xref:reference/configuration/element_format.adoc[element_format]
83+
*** xref:reference/configuration/elements.adoc[elements]
84+
*** xref:reference/configuration/encoding.adoc[encoding]
85+
*** xref:reference/configuration/entities.adoc[entities]
86+
*** xref:reference/configuration/entity_encoding.adoc[entity_encoding]
87+
*** xref:reference/configuration/execcommand_callback.adoc[execcommand_callback]
88+
*** xref:reference/configuration/extended_valid_elements.adoc[extended_valid_elements]
89+
*** xref:reference/configuration/external_image_list_url.adoc[external_image_list_url]
90+
*** xref:reference/configuration/external_link_list_url.adoc[external_link_list_url]
91+
*** xref:reference/configuration/external_media_list_url.adoc[external_media_list_url]
92+
*** xref:reference/configuration/external_template_list_url.adoc[external_template_list_url]
93+
*** xref:reference/configuration/file_browser_callback.adoc[file_browser_callback]
94+
*** xref:reference/configuration/File_lists.adoc[File_lists]
95+
*** xref:reference/configuration/fix_content_duplication.adoc[fix_content_duplication]
96+
*** xref:reference/configuration/fix_list_elements.adoc[fix_list_elements]
97+
*** xref:reference/configuration/fix_nesting.adoc[fix_nesting]
98+
*** xref:reference/configuration/fix_table_elements.adoc[fix_table_elements]
99+
*** xref:reference/configuration/font_size_classes.adoc[font_size_classes]
100+
*** xref:reference/configuration/font_size_style_values.adoc[font_size_style_values]
101+
*** xref:reference/configuration/force_br_newlines.adoc[force_br_newlines]
102+
*** xref:reference/configuration/forced_root_block.adoc[forced_root_block]
103+
*** xref:reference/configuration/force_hex_style_colors.adoc[force_hex_style_colors]
104+
*** xref:reference/configuration/force_p_newlines.adoc[force_p_newlines]
105+
*** xref:reference/configuration/formats.adoc[formats]
106+
*** xref:reference/configuration/General.adoc[General]
107+
*** xref:reference/configuration/handle_event_callback.adoc[handle_event_callback]
108+
*** xref:reference/configuration/handle_node_change_callback.adoc[handle_node_change_callback]
109+
*** xref:reference/configuration/height.adoc[height]
110+
*** xref:reference/configuration/indentation.adoc[indentation]
111+
*** xref:reference/configuration/index.adoc[index]
112+
*** xref:reference/configuration/init_instance_callback.adoc[init_instance_callback]
113+
*** xref:reference/configuration/inline_styles.adoc[inline_styles]
114+
*** xref:reference/configuration/invalid_elements.adoc[invalid_elements]
115+
*** xref:reference/configuration/keep_styles.adoc[keep_styles]
116+
*** xref:reference/configuration/language.adoc[language]
117+
*** xref:reference/configuration/Layout.adoc[Layout]
118+
*** xref:reference/configuration/merge_styles_invalid_parents.adoc[merge_styles_invalid_parents]
119+
*** xref:reference/configuration/mode.adoc[mode]
120+
*** xref:reference/configuration/nowrap.adoc[nowrap]
121+
*** xref:reference/configuration/object_resizing.adoc[object_resizing]
122+
*** xref:reference/configuration/onchange_callback.adoc[onchange_callback]
123+
*** xref:reference/configuration/oninit.adoc[oninit]
124+
*** xref:reference/configuration/onpageload.adoc[onpageload]
125+
*** xref:reference/configuration/plugins.adoc[plugins]
126+
*** xref:reference/configuration/popup_css_add.adoc[popup_css_add]
127+
*** xref:reference/configuration/popup_css.adoc[popup_css]
128+
*** xref:reference/configuration/preformatted.adoc[preformatted]
129+
*** xref:reference/configuration/protect.adoc[protect]
130+
*** xref:reference/configuration/readonly.adoc[readonly]
131+
*** xref:reference/configuration/relative_urls.adoc[relative_urls]
132+
*** xref:reference/configuration/removeformat_selector.adoc[removeformat_selector]
133+
*** xref:reference/configuration/remove_instance_callback.adoc[remove_instance_callback]
134+
*** xref:reference/configuration/remove_linebreaks.adoc[remove_linebreaks]
135+
*** xref:reference/configuration/remove_redundant_brs.adoc[remove_redundant_brs]
136+
*** xref:reference/configuration/remove_script_host.adoc[remove_script_host]
137+
*** xref:reference/configuration/save_callback.adoc[save_callback]
138+
*** xref:reference/configuration/schema.adoc[schema]
139+
*** xref:reference/configuration/selector.adoc[selector]
140+
*** xref:reference/configuration/setup.adoc[setup]
141+
*** xref:reference/configuration/setupcontent_callback.adoc[setupcontent_callback]
142+
*** xref:reference/configuration/skin.adoc[skin]
143+
*** xref:reference/configuration/skin_variant.adoc[skin_variant]
144+
*** xref:reference/configuration/strict_loading_mode.adoc[strict_loading_mode]
145+
*** xref:reference/configuration/style_formats.adoc[style_formats]
146+
*** xref:reference/configuration/submit_patch.adoc[submit_patch]
147+
*** xref:reference/configuration/table_inline_editing.adoc[table_inline_editing]
148+
*** xref:reference/configuration/theme.adoc[theme]
149+
*** xref:reference/configuration/theme_advanced_background_colors.adoc[theme_advanced_background_colors]
150+
*** xref:reference/configuration/theme_advanced_blockformats.adoc[theme_advanced_blockformats]
151+
*** xref:reference/configuration/theme_advanced_buttons_1_n_add.adoc[theme_advanced_buttons_1_n_add]
152+
*** xref:reference/configuration/theme_advanced_buttons_1_n_add_before.adoc[theme_advanced_buttons_1_n_add_before]
153+
*** xref:reference/configuration/theme_advanced_buttons_1_n.adoc[theme_advanced_buttons_1_n]
154+
*** xref:reference/configuration/theme_advanced_container_container.adoc[theme_advanced_container_container]
155+
*** xref:reference/configuration/theme_advanced_container_container_align.adoc[theme_advanced_container_container_align]
156+
*** xref:reference/configuration/theme_advanced_container_container_class.adoc[theme_advanced_container_container_class]
157+
*** xref:reference/configuration/theme_advanced_containers.adoc[theme_advanced_containers]
158+
*** xref:reference/configuration/theme_advanced_containers_default_align.adoc[theme_advanced_containers_default_align]
159+
*** xref:reference/configuration/theme_advanced_containers_default_class.adoc[theme_advanced_containers_default_class]
160+
*** xref:reference/configuration/theme_advanced_custom_layout.adoc[theme_advanced_custom_layout]
161+
*** xref:reference/configuration/theme_advanced_default_background_color.adoc[theme_advanced_default_background_color]
162+
*** xref:reference/configuration/theme_advanced_default_foreground_color.adoc[theme_advanced_default_foreground_color]
163+
*** xref:reference/configuration/theme_advanced_disable.adoc[theme_advanced_disable]
164+
*** xref:reference/configuration/theme_advanced_fonts.adoc[theme_advanced_fonts]
165+
*** xref:reference/configuration/theme_advanced_font_sizes.adoc[theme_advanced_font_sizes]
166+
*** xref:reference/configuration/theme_advanced_layout_manager.adoc[theme_advanced_layout_manager]
167+
*** xref:reference/configuration/theme_advanced_link_targets.adoc[theme_advanced_link_targets]
168+
*** xref:reference/configuration/theme_advanced_more_colors.adoc[theme_advanced_more_colors]
169+
*** xref:reference/configuration/theme_advanced_path.adoc[theme_advanced_path]
170+
*** xref:reference/configuration/theme_advanced_resize_horizontal.adoc[theme_advanced_resize_horizontal]
171+
*** xref:reference/configuration/theme_advanced_resizing.adoc[theme_advanced_resizing]
172+
*** xref:reference/configuration/theme_advanced_resizing_max_height.adoc[theme_advanced_resizing_max_height]
173+
*** xref:reference/configuration/theme_advanced_resizing_max_width.adoc[theme_advanced_resizing_max_width]
174+
*** xref:reference/configuration/theme_advanced_resizing_min_height.adoc[theme_advanced_resizing_min_height]
175+
*** xref:reference/configuration/theme_advanced_resizing_min_width.adoc[theme_advanced_resizing_min_width]
176+
*** xref:reference/configuration/theme_advanced_resizing_use_cookie.adoc[theme_advanced_resizing_use_cookie]
177+
*** xref:reference/configuration/theme_advanced_source_editor_height.adoc[theme_advanced_source_editor_height]
178+
*** xref:reference/configuration/theme_advanced_source_editor_width.adoc[theme_advanced_source_editor_width]
179+
*** xref:reference/configuration/theme_advanced_source_editor_wrap.adoc[theme_advanced_source_editor_wrap]
180+
*** xref:reference/configuration/theme_advanced_statusbar_location.adoc[theme_advanced_statusbar_location]
181+
*** xref:reference/configuration/theme_advanced_styles.adoc[theme_advanced_styles]
182+
*** xref:reference/configuration/theme_advanced_text_colors.adoc[theme_advanced_text_colors]
183+
*** xref:reference/configuration/theme_advanced_toolbar_align.adoc[theme_advanced_toolbar_align]
184+
*** xref:reference/configuration/theme_advanced_toolbar_location.adoc[theme_advanced_toolbar_location]
185+
*** xref:reference/configuration/URL.adoc[URL]
186+
*** xref:reference/configuration/urlconverter_callback.adoc[urlconverter_callback]
187+
*** xref:reference/configuration/validate_children.adoc[validate_children]
188+
*** xref:reference/configuration/valid_child_elements.adoc[valid_child_elements]
189+
*** xref:reference/configuration/valid_children.adoc[valid_children]
190+
*** xref:reference/configuration/valid_elements.adoc[valid_elements]
191+
*** xref:reference/configuration/verify_css_classes.adoc[verify_css_classes]
192+
*** xref:reference/configuration/verify_html.adoc[verify_html]
193+
*** xref:reference/configuration/visual.adoc[visual]
194+
*** xref:reference/configuration/Visual_aid.adoc[Visual_aid]
195+
*** xref:reference/configuration/visual_table_class.adoc[visual_table_class]
196+
*** xref:reference/configuration/width.adoc[width]
197+
11198
** xref:reference/buttons.adoc[Buttons/Controls]
12199
** xref:reference/for-dummies.adoc[For Dummies]
13200
** xref:reference/Command_identifiers.adoc[Command identifiers]

modules/ROOT/pages/Installation.adoc

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,21 @@ You should extract TinyMCE in your `wwwroot` or site domain root folder.
4444
== Extract example using a shell
4545
anchor:extractexampleusingashell[historical anchor]
4646

47-
```
47+
[source]
48+
----
4849
4950
$ cd wwwroot
5051
$ gzip -d tinymce_1_44.tar.gz
5152
$ tar xvf tinymce_1_44.tar
5253
53-
```
54+
----
5455

5556
[[a-folder-structure-looking-like-this-is-created]]
5657
== A folder structure looking like this is created
5758
anchor:afolderstructurelookinglikethisiscreated[historical anchor]
5859

59-
```
60+
[source]
61+
----
6062
6163
....
6264
/tinymce/
@@ -73,7 +75,7 @@ anchor:afolderstructurelookinglikethisiscreated[historical anchor]
7375
/tinymce/jscripts/tiny_mce/themes/advanced/
7476
/tinymce/jscripts/tiny_mce/themes/default/
7577
/tinymce/jscripts/tiny_mce/themes/simple/</pre>
76-
```
78+
----
7779

7880
## Making changes on your web site
7981

@@ -98,25 +100,28 @@ Make sure you read the 2 html comments (starting with `
98100

99101

100102
</html>
101-
```
103+
[source]
104+
----
102105
103106
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) :
104107
105-
```php
108+
----php
106109
107-
```
110+
[source]
111+
----
108112

109113
## Same example using some more buttons
110114

111115
Just change the following code :
112116

113-
```html
117+
----html
114118

115-
```
119+
[source]
120+
----
116121
117122
which should be turned into :
118123
119-
```html
124+
----html
120125
121126
```
122127

modules/ROOT/pages/compressor/.NET.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ Here is a step by step list on how to install the GZip compressor.
1616
. Add the new GZip initialization call that will tell the compressor what to include in the output. This should be the sum of all and themes, plugins contained on page.
1717

1818
[[example-of-initialization]]
19-
== Example of initialization
19+
== Example of initialization
2020
anchor:exampleofinitialization[historical anchor]
2121

2222
The example below will pack both themes and all plugins into one file/steam. Remove the things you don't need or add you custom plugins to the settings below. Remember that the tinyMCE_GZ.init call must be placed in it's own script tag.
2323

24-
`html
24+
[source,html]
25+
----
2526
<script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce_gzip.js"></script>
2627
<script type="text/javascript">
2728
tinyMCE_GZ.init({
@@ -37,7 +38,7 @@ tinyMCE.init({
3738
.. your normal init ..
3839
});
3940
</script>
40-
`
41+
----
4142

4243
[[troubleshooting]]
4344
== Troubleshooting
@@ -49,7 +50,7 @@ tinyMCE.init({
4950
* To add a plugin, remember to add it both to the tinyMCE_GZ.init and the tinyMCE.init calls.
5051

5152
[[license-notice]]
52-
== License notice
53+
== License notice
5354
anchor:licensenotice[historical anchor]
5455

5556
This library is under LGPL license but it uses a GPL:ed third party library for the gzip compression. This third party library can be used in commercial applications. Review the"ICSharpCode.SharpZipLib_Readme.rtf" for details.

modules/ROOT/pages/compressor/Coldfusion.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@ Here is a step by step list on how to install the GZip compressor.
1515
. Add the new GZip initialization call that will tell the compressor what to include in the output. This should be the sum of all and themes, plugins contained on page.
1616

1717
[[example-of-initialization]]
18-
== Example of initialization
18+
== Example of initialization
1919
anchor:exampleofinitialization[historical anchor]
2020

2121
The example below will pack both themes and all plugins into one file/steam. Remove the things you don't need or add you custom plugins to the settings below. Remember that the tinyMCE_GZ.init call must be placed in it's own script tag.
2222

23-
```html
23+
[source,html]
24+
----
2425
+++<script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce_gzip.js">++++++</script>+++
2526
+++<script type="text/javascript">+++tinyMCE_GZ.init({ plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras', themes : 'simple,advanced', languages : 'en', disk_cache : true, debug : false });+++</script>+++
2627
// Needs to be seperate script tags!
2728
+++<script type="text/javascript">+++tinyMCE.init({ .. your normal init .. });+++</script>+++
2829
29-
```
30+
----
3031

3132
[[troubleshooting]]
3233
== Troubleshooting

0 commit comments

Comments
 (0)