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