Changeset 276 for trunk/plugins/FullPage/popups/docprop.html
- Timestamp:
- 07/19/05 00:38:02 (7 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/FullPage/popups/docprop.html (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/FullPage/popups/docprop.html
r251 r276 1 1 <html> 2 3 2 <head> 4 <title>Document properties</title> 5 3 <title>Document properties</title> 6 4 <script type="text/javascript" src="../../../popups/popup.js"></script> 7 5 <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" /> 8 9 6 <script type="text/javascript"> 10 11 7 FullPage = window.opener.FullPage; // load the FullPage plugin and lang file ;-) 12 8 window.resizeTo(400, 130); 13 14 var accepted = { 15 f_doctype : true, 16 f_title : true, 17 f_body_bgcolor : true, 18 f_body_fgcolor : true, 19 f_base_style : true, 20 f_alt_style : true, 21 f_charset : true, 22 f_keywords : true, 23 f_description : true 24 }; 9 var accepted = { 10 f_doctype : true, 11 f_title : true, 12 f_body_bgcolor : true, 13 f_body_fgcolor : true, 14 f_base_style : true, 15 f_alt_style : true, 16 f_charset : true, 17 f_keywords : true, 18 f_description : true 19 }; 25 20 26 21 var editor = null; … … 30 25 var params = window.dialogArguments; 31 26 for (var i in params) { 32 if (i in accepted) {33 var el = document.getElementById(i);34 el.value = params[i];35 }27 if (i in accepted) { 28 var el = document.getElementById(i); 29 el.value = params[i]; 30 } 36 31 } 37 32 editor = params.editor; … … 66 61 }; 67 62 63 function chooseColor(id) { 64 var old_window_name = window.name; 65 window.name = 'docprop'; 66 var input = document.getElementById(id); 67 editor._popupDialog("select_color.html", function(color) { 68 if (color && (typeof color == 'string') ) { 69 input.style.backgroundColor = "#" + color; 70 input.value = "#" + color; 71 } 72 window.name = old_window_name; 73 }, input.value); 74 } 68 75 </script> 69 76 <style type="text/css"> … … 77 84 78 85 <div class="title">Document properties</div> 86 79 87 80 88 <div> … … 88 96 <div> 89 97 <label class="fr" for="f_keywords">Keywords:</label> 98 90 99 <input type="text" id="f_keywords" class="txt" /> 91 100 </div> … … 98 107 <input type="text" id="f_base_style" class="txt" /> 99 108 </div> 109 100 110 <div> 101 111 <label class="fr" for="f_alt_style">Alternate style-sheet:</label> … … 104 114 <div> 105 115 <label class="fr" for="f_body_bgcolor">Background color:</label> 106 <input type="text" id="f_body_bgcolor" size="7" />116 <input type="text" id="f_body_bgcolor" class="txt" autocomplete="off" onclick="chooseColor('f_body_bgcolor');" /> 107 117 </div> 108 118 <div> 109 119 <label class="fr" for="f_body_fgcolor">Text color:</label> 110 <input type="text" id="f_body_fgcolor" size="7" />120 <input type="text" id="f_body_fgcolor" class="txt" autocomplete="off" onclick="chooseColor('f_body_fgcolor');" /> 111 121 </div> 112 122 <div> … … 116 126 <option value="utf-8">UTF-8 (recommended)</option> 117 127 <option value="windows-1251">cyrillic (WINDOWS-1251)</option> 128 118 129 <option value="koi8-r">cyrillic (KOI8-R)</option> 119 130 <option value="iso-8859-5">cyrillic (ISO-8859-5)</option> … … 124 135 <div id="buttons"> 125 136 <button type="button" name="ok" onclick="return onOK();"><span>OK</span></button> 137 126 138 <button type="button" name="cancel" onclick="return onCancel();"><span>Cancel</span></button> 127 139 </div>
