2 Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.md or http://ckeditor.com/license
7 this.setValue(f.getOption(this.option))
11 f.setOption(this.option, this.getValue())
13 var f = CKEDITOR.plugins.autocorrect;
14 CKEDITOR.dialog.add("autocorrectOptions", function(a) {
15 a = a.lang.autocorrect;
18 resizable: CKEDITOR.DIALOG_RESIZE_NONE,
34 id: "useReplacementTableCheckbox",
35 option: "useReplacementTable",
39 label: a.replaceTextAsYouType
42 html: '<div style="height: 150px;overflow-y: scroll;border: 1px solid #afafaf"></div>',
44 this.getElement().setHtml("");
45 var a = f.getOption("replacementTable"),
46 b = document.createElement("table");
47 b.style.width = "100%";
48 b.style.tableLayout = "fixed";
49 var c = b.appendChild(document.createElement("tbody")),
52 var h = document.createElement("tr"),
53 d = document.createElement("td");
54 d.appendChild(document.createTextNode(g));
55 d.style.borderBottom = "1px solid #afafaf";
56 d.style.padding = "0 5px";
57 var e = document.createElement("td");
59 e.appendChild(document.createTextNode(a[g]));
60 e.style.borderBottom = "1px solid #afafaf";
61 e.style.padding = "0 5px";
65 this.getElement().append(new CKEDITOR.dom.element(b))
70 id: "autoformatAsYouType",
71 label: a.autoformatAsYouType,
72 title: a.autoformatAsYouType,
76 label: CKEDITOR.tools.htmlEncode(a.replaceAsYouType),
82 id: "smartQuotesCheckbox",
83 option: "smartQuotesAsYouType",
87 label: a.smartQuotesOption
90 id: "formatOrdinalsCheckbox",
91 option: "formatOrdinalsAsYouType",
95 label: a.formatOrdinalsOption
98 id: "replaceHyphensCheckbox",
99 option: "replaceHyphensAsYouType",
103 label: a.replaceHyphensOption
106 id: "recognizeUrlsCheckbox",
107 option: "recognizeUrlsAsYouType",
111 label: a.recognizeUrlsOption
116 label: CKEDITOR.tools.htmlEncode(a.applyAsYouType),
122 id: "formatBulletedListsCheckbox",
123 option: "formatBulletedListsAsYouType",
127 label: a.formatBulletedListsOption
130 id: "formatNumberedListsCheckbox",
131 option: "formatNumberedListsAsYouType",
135 label: a.formatNumberedListsOption
138 id: "createHorizontalRulesCheckbox",
139 option: "createHorizontalRulesAsYouType",
143 label: a.createHorizontalRulesOption
153 label: CKEDITOR.tools.htmlEncode(a.replace),
159 id: "smartQuotesCheckbox",
160 option: "smartQuotes",
164 label: a.smartQuotesOption
167 id: "formatOrdinalsCheckbox",
168 option: "formatOrdinals",
172 label: a.formatOrdinalsOption
175 id: "replaceHyphensCheckbox",
176 option: "replaceHyphens",
180 label: a.replaceHyphensOption
183 id: "recognizeUrlsCheckbox",
184 option: "recognizeUrls",
188 label: a.recognizeUrlsOption
193 label: CKEDITOR.tools.htmlEncode(a.apply),
199 id: "formatBulletedListsCheckbox",
200 option: "formatBulletedLists",
204 label: a.formatBulletedListsOption
207 id: "formatNumberedListsCheckbox",
208 option: "formatNumberedLists",
212 label: a.formatNumberedListsOption
215 id: "createHorizontalRulesCheckbox",
216 option: "createHorizontalRules",
220 label: a.createHorizontalRulesOption