forked from Automattic/atd-tinymce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
69 lines (51 loc) · 3.24 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<html>
<head>
<!-- (0) show the world your UTF-8 pride, ensures AtD works with accented characters -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<!-- (1) load TinyMCE. Point this to your TinyMCE install on the same domain. -->
<script language="javascript" type="text/javascript" src="http://www.polishmywriting.com/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<!-- (2) Load the AtD editor plugin -->
<script language="javascript" type="text/javascript" src="editor_plugin.js"></script>
<!-- (3) Set some properties -->
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
plugins : "AtD",
/* the URL to the button image to display */
atd_button_url : "atdbuttontr.gif",
/* the URL of your proxy file */
atd_rpc_url : "server/proxy.php?url=",
/* set your API key */
atd_rpc_id : "dashnine",
/* edit this file to customize how AtD shows errors */
atd_css_url : "css/content.css",
/* this list contains the categories of errors we want to show */
atd_show_types : "Bias Language,Cliches,Complex Expression,Diacritical Marks,Double Negatives,Hidden Verbs,Jargon Language,Passive voice,Phrases to Avoid,Redundant Expression",
/* strings this plugin should ignore */
atd_ignore_strings : "AtD,rsmudge",
/* enable "Ignore Always" menu item, uses cookies by default. Set atd_ignore_rpc_url to a URL AtD should send ignore requests to. */
atd_ignore_enable : "false",
/* add the AtD button to the first row of the advanced theme */
theme_advanced_buttons1_add : "AtD",
/*
* this stuff is a matter of preference
*/
theme : "advanced",
theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "none",
theme_advanced_resizing : true,
theme_advanced_resizing_use_cookie : false,
/* disable the gecko spellcheck since AtD provides one */
gecko_spellcheck : false
});
</script>
</head>
<body>
<p>This demo shows how to load <a href="http://www.afterthedeadline.com/">AtD</a> into <a href="http://tinymce.moxiecode.com">TinyMCE</a>. Click <img src="atdbuttontr.gif"> to check the document.</p>
<p><textarea name="content" style="width: 760px" rows="16">The purpoce of a spell checker is to check the text four spelling and typeing errors. The checker finds errors througout the text. When the spell checker finds an questionable word, it highlights it and suggests the mpst likely variants too replace the questionable word. You can select the variant and replace the wrrd or leave the word unanged.</textarea></p>
</body>
</html>