Changeset 2856
- Timestamp:
- 12/07/07 22:09:23 (10 months ago)
- Files:
-
- tracwysiwygplugin/0.10/tracwysiwyg/htdocs/wysiwyg.css (modified) (1 diff)
- tracwysiwygplugin/0.10/tracwysiwyg/htdocs/wysiwyg.js (modified) (2 diffs)
- tracwysiwygplugin/0.11/tracwysiwyg/htdocs/wysiwyg.css (modified) (1 diff)
- tracwysiwygplugin/0.11/tracwysiwyg/htdocs/wysiwyg.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tracwysiwygplugin/0.10/tracwysiwyg/htdocs/wysiwyg.css
r2637 r2856 54 54 background-position: right bottom; 55 55 } 56 .wysiwyg-toolbar li a#wt-style span { 57 display: none; 58 } 59 60 .wysiwyg-toolbar li.wysiwyg-menu-style a#wt-style span.wysiwyg-menu-style { display: inline; } 61 .wysiwyg-toolbar li.wysiwyg-menu-paragraph a#wt-style span.wysiwyg-menu-paragraph { display: inline; } 62 .wysiwyg-toolbar li.wysiwyg-menu-heading1 a#wt-style span.wysiwyg-menu-heading1 { display: inline; } 63 .wysiwyg-toolbar li.wysiwyg-menu-heading2 a#wt-style span.wysiwyg-menu-heading2 { display: inline; } 64 .wysiwyg-toolbar li.wysiwyg-menu-heading3 a#wt-style span.wysiwyg-menu-heading3 { display: inline; } 65 .wysiwyg-toolbar li.wysiwyg-menu-heading4 a#wt-style span.wysiwyg-menu-heading4 { display: inline; } 66 .wysiwyg-toolbar li.wysiwyg-menu-heading5 a#wt-style span.wysiwyg-menu-heading5 { display: inline; } 67 .wysiwyg-toolbar li.wysiwyg-menu-heading6 a#wt-style span.wysiwyg-menu-heading6 { display: inline; } 68 .wysiwyg-toolbar li.wysiwyg-menu-code a#wt-style span.wysiwyg-menu-code { display: inline; } 69 .wysiwyg-toolbar li.wysiwyg-menu-quote a#wt-style span.wysiwyg-menu-quote { display: inline; } 70 56 71 .wysiwyg-toolbar li a#wt-em { background-position: 0 0; } 57 72 .wysiwyg-toolbar li a#wt-strong { background-position: 0 -16px; } tracwysiwygplugin/0.10/tracwysiwyg/htdocs/wysiwyg.js
r2853 r2856 206 206 var html = [ 207 207 '<ul>', 208 '<li title="Style"><a id="wt-style" href="#">Style</a></li>', 208 '<li class="wysiwyg-menu-style" title="Style">', 209 '<a id="wt-style" href="#">', 210 '<span class="wysiwyg-menu-style">Style</span>', 211 '<span class="wysiwyg-menu-paragraph">Normal</span>', 212 '<span class="wysiwyg-menu-heading1">Header 1</span>', 213 '<span class="wysiwyg-menu-heading2">Header 2</span>', 214 '<span class="wysiwyg-menu-heading3">Header 3</span>', 215 '<span class="wysiwyg-menu-heading4">Header 4</span>', 216 '<span class="wysiwyg-menu-heading5">Header 5</span>', 217 '<span class="wysiwyg-menu-heading6">Header 6</span>', 218 '<span class="wysiwyg-menu-code">Code block</span>', 219 '<span class="wysiwyg-menu-quote">Quote</span>', 220 '</a></li>', 209 221 '<li title="Bold (Ctrl+B)"><a id="wt-strong" href="#"></a></li>', 210 222 '<li title="Italic (Ctrl+I)"><a id="wt-em" href="#"></a></li>', … … 1070 1082 "heading2", "heading3", "heading4", "heading5", "heading6" ]; 1071 1083 var styleButton = toolbarButtons["style"]; 1072 var styleButton Text = "Style";1084 var styleButtonClass = "wysiwyg-menu-style"; 1073 1085 for (var i = 0; i < styles.length; i++) { 1074 if (status[styles[i]]) { 1075 styleButtonText = TracWysiwyg.getTextContent(toolbarButtons[styles[i]]); 1086 var name = styles[i]; 1087 if (status[name]) { 1088 styleButtonClass = "wysiwyg-menu-" + name; 1076 1089 break; 1077 1090 } 1078 1091 } 1079 if (TracWysiwyg.getTextContent(styleButton) != styleButtonText) { 1080 styleButton.replaceChild(document.createTextNode(styleButtonText), styleButton.firstChild); 1081 } 1092 styleButton.parentNode.className = styleButtonClass; 1082 1093 }; 1083 1094 tracwysiwygplugin/0.11/tracwysiwyg/htdocs/wysiwyg.css
r2637 r2856 54 54 background-position: right bottom; 55 55 } 56 .wysiwyg-toolbar li a#wt-style span { 57 display: none; 58 } 59 60 .wysiwyg-toolbar li.wysiwyg-menu-style a#wt-style span.wysiwyg-menu-style { display: inline; } 61 .wysiwyg-toolbar li.wysiwyg-menu-paragraph a#wt-style span.wysiwyg-menu-paragraph { display: inline; } 62 .wysiwyg-toolbar li.wysiwyg-menu-heading1 a#wt-style span.wysiwyg-menu-heading1 { display: inline; } 63 .wysiwyg-toolbar li.wysiwyg-menu-heading2 a#wt-style span.wysiwyg-menu-heading2 { display: inline; } 64 .wysiwyg-toolbar li.wysiwyg-menu-heading3 a#wt-style span.wysiwyg-menu-heading3 { display: inline; } 65 .wysiwyg-toolbar li.wysiwyg-menu-heading4 a#wt-style span.wysiwyg-menu-heading4 { display: inline; } 66 .wysiwyg-toolbar li.wysiwyg-menu-heading5 a#wt-style span.wysiwyg-menu-heading5 { display: inline; } 67 .wysiwyg-toolbar li.wysiwyg-menu-heading6 a#wt-style span.wysiwyg-menu-heading6 { display: inline; } 68 .wysiwyg-toolbar li.wysiwyg-menu-code a#wt-style span.wysiwyg-menu-code { display: inline; } 69 .wysiwyg-toolbar li.wysiwyg-menu-quote a#wt-style span.wysiwyg-menu-quote { display: inline; } 70 56 71 .wysiwyg-toolbar li a#wt-em { background-position: 0 0; } 57 72 .wysiwyg-toolbar li a#wt-strong { background-position: 0 -16px; } tracwysiwygplugin/0.11/tracwysiwyg/htdocs/wysiwyg.js
r2853 r2856 206 206 var html = [ 207 207 '<ul>', 208 '<li title="Style"><a id="wt-style" href="#">Style</a></li>', 208 '<li class="wysiwyg-menu-style" title="Style">', 209 '<a id="wt-style" href="#">', 210 '<span class="wysiwyg-menu-style">Style</span>', 211 '<span class="wysiwyg-menu-paragraph">Normal</span>', 212 '<span class="wysiwyg-menu-heading1">Header 1</span>', 213 '<span class="wysiwyg-menu-heading2">Header 2</span>', 214 '<span class="wysiwyg-menu-heading3">Header 3</span>', 215 '<span class="wysiwyg-menu-heading4">Header 4</span>', 216 '<span class="wysiwyg-menu-heading5">Header 5</span>', 217 '<span class="wysiwyg-menu-heading6">Header 6</span>', 218 '<span class="wysiwyg-menu-code">Code block</span>', 219 '<span class="wysiwyg-menu-quote">Quote</span>', 220 '</a></li>', 209 221 '<li title="Bold (Ctrl+B)"><a id="wt-strong" href="#"></a></li>', 210 222 '<li title="Italic (Ctrl+I)"><a id="wt-em" href="#"></a></li>', … … 1070 1082 "heading2", "heading3", "heading4", "heading5", "heading6" ]; 1071 1083 var styleButton = toolbarButtons["style"]; 1072 var styleButton Text = "Style";1084 var styleButtonClass = "wysiwyg-menu-style"; 1073 1085 for (var i = 0; i < styles.length; i++) { 1074 if (status[styles[i]]) { 1075 styleButtonText = TracWysiwyg.getTextContent(toolbarButtons[styles[i]]); 1086 var name = styles[i]; 1087 if (status[name]) { 1088 styleButtonClass = "wysiwyg-menu-" + name; 1076 1089 break; 1077 1090 } 1078 1091 } 1079 if (TracWysiwyg.getTextContent(styleButton) != styleButtonText) { 1080 styleButton.replaceChild(document.createTextNode(styleButtonText), styleButton.firstChild); 1081 } 1092 styleButton.parentNode.className = styleButtonClass; 1082 1093 }; 1083 1094
