* Added "rtehtmlarea" as a system extension
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / htmlarea / plugins / RemoveFormat / popups / removeformat.html
1 <html class="popupwin">
2 <head>
3 <title>Remove formatting</title>
4 <meta http-equiv="Content-Style-Type" content="text/css" />
5 <script type="text/javascript" src="../../../popups/popup.js"></script>
6 <script type="text/javascript">
7 HTMLArea = window.opener.HTMLArea;
8 _editor_CSS = window.opener._editor_CSS;
9 __dlg_loadStyle(_editor_CSS);
10 var RemoveFormat = window.opener.RemoveFormat;
11 var i18n = RemoveFormat.I18N;
12
13 function Init() {
14 __dlg_translate(i18n);
15 __dlg_init();
16 var editor = window.dialogArguments;
17 if (!editor._selectionEmpty(editor._getSelection())) document.getElementById('clean_selection').checked = true;
18 };
19
20 function onOK() {
21 var param = {};
22 if (document.getElementById('clean_selection').checked) {
23 param["cleaning_area"] = "selection";
24 } else {
25 param["cleaning_area"] = "all";
26 }
27
28 var fields = ["formatting", "ms_formatting", "images", "html_all"];
29 oneChecked = false;
30 for (var i=0; i<fields.length; i++) {
31 var id = fields[i];
32 var el = document.getElementById(id);
33 if (el.checked) {
34 param[id] = true;
35 oneChecked = true;
36 }
37 }
38 if(oneChecked) {
39 __dlg_close(param);
40 } else {
41 alert(i18n["Select the type of formatting you wish to remove."]);
42 }
43 return false;
44 };
45
46 function onCancel() {
47 __dlg_close(null);
48 return false;
49 };
50 </script>
51 </head>
52 <body class="popupwin" onload="Init();">
53 <div class="title">Remove formatting</div>
54 <form action="" method="get">
55 <fieldset>
56 <legend><span>Cleaning Area</span></legend>
57 <span>Selection</span><input type="radio" name="cleaning_area" id="clean_selection" value="selection" />
58 <span>All</span><input type="radio" name="cleaning_area" id="clean_page" value="page" checked="checked" />
59 </fieldset>
60 <fieldset>
61 <legend><span>Cleaning options</span></legend>
62 <div class="space"></div>
63 <div class="fl">Formatting:</div>
64 <input type="checkbox" id="formatting" value="" />
65 <div class="space"></div>
66 <div class="fl">MS Word Formatting:</div>
67 <input type="checkbox" id="ms_formatting" value="" checked="checked" />
68 <div class="space"></div>
69 <div class="fl">Images:</div>
70 <input type="checkbox" id="images" value="" />
71 <div class="space"></div>
72 <div class="fl">All HTML:</div>
73 <input type="checkbox" id="html_all" value="" />
74 <div class="space"></div>
75 </fieldset>
76 <div class="buttons">
77 <button type="button" name="ok" onclick="return onOK();">OK</button>
78 <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
79 </div>
80 </form>
81 </body>
82 </html>