* Fixed bug #7419: htmlArea RTE: Localization error in Remove Format plugin
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / htmlarea / plugins / RemoveFormat / popups / removeformat.html
1 <html class="popupwin">
2 <!--
3 /***************************************************************
4 * Copyright notice
5 *
6 * (c) 2005-2008 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
7 * All rights reserved
8 *
9 * This script is part of the TYPO3 project. The TYPO3 project is
10 * free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * The GNU General Public License can be found at
16 * http://www.gnu.org/copyleft/gpl.html.
17 * A copy is found in the textfile GPL.txt and important notices to the license
18 * from the author is found in LICENSE.txt distributed with these scripts.
19 *
20 *
21 * This script is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 *
27 * This copyright notice MUST APPEAR in all copies of the script!
28 ***************************************************************/
29 /*
30 * Remove Format Plugin for TYPO3 htmlArea RTE
31 *
32 * TYPO3 CVS ID: $Id$
33 */
34 -->
35 <head>
36 <title>Remove formatting</title>
37 <meta http-equiv="Content-Style-Type" content="text/css" />
38 <script type="text/javascript">
39 /*<![CDATA[*/
40 <!--
41 var dialog = window.opener.HTMLArea.Dialog.RemoveFormat;
42
43 function Init() {
44 dialog.initialize();
45 var editor = dialog.plugin.editor;
46 if (!editor._selectionEmpty(editor._getSelection())) document.getElementById('clean_selection').checked = true;
47 }
48
49 function onOK() {
50 var param = {};
51 if (document.getElementById('clean_selection').checked) {
52 param["cleaning_area"] = "selection";
53 } else {
54 param["cleaning_area"] = "all";
55 }
56
57 var fields = ["formatting", "ms_formatting", "images", "html_all"];
58 oneChecked = false;
59 for (var i=0; i<fields.length; i++) {
60 var id = fields[i];
61 var el = document.getElementById(id);
62 if (el.checked) {
63 param[id] = true;
64 oneChecked = true;
65 }
66 }
67 if (oneChecked) {
68 dialog.performAction(param);
69 dialog.close();
70 } else {
71 alert(dialog.plugin.localize("Select the type of formatting you wish to remove."));
72 }
73 return false;
74 };
75
76 function onCancel() {
77 dialog.close();
78 return false;
79 }
80 // -->
81 /*]]>*/
82 </script>
83 </head>
84 <body class="popupwin" onload="Init();">
85 <div id="content">
86 <div class="title">Remove formatting</div>
87 <form action="" method="get">
88 <fieldset>
89 <legend><span>Cleaning Area</span></legend>
90 <label for="clean_selection"><span>Selection</span></label> <input type="radio" name="cleaning_area" id="clean_selection" value="selection" />
91 <label for="clean_page"><span>All</span></label> <input type="radio" name="cleaning_area" id="clean_page" value="page" checked="checked" />
92 </fieldset>
93 <fieldset>
94 <legend><span>Cleaning options</span></legend>
95 <div class="space"></div>
96 <div class="fl"><label for="formatting">Formatting:</label></div>
97 <input type="checkbox" id="formatting" value="" />
98 <div class="space"></div>
99 <div class="fl"><label for="ms_formatting">MS Word Formatting:</label></div>
100 <input type="checkbox" id="ms_formatting" value="" checked="checked" />
101 <div class="space"></div>
102 <div class="fl"><label for="images">Images:</label></div>
103 <input type="checkbox" id="images" value="" />
104 <div class="space"></div>
105 <div class="fl"><label for="html_all">All HTML:</label></div>
106 <input type="checkbox" id="html_all" value="" />
107 <div class="space"></div>
108 </fieldset>
109 <div class="buttons">
110 <button type="button" name="ok" onclick="return onOK();">OK</button>
111 <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
112 </div>
113 </form>
114 </div>
115 </body>
116 </html>