Improve output: distinguish between failed assertions (failures) and unexpected exceptions (errors), and print a filtered stack trace for any exception.
This commit is contained in:
commit
4f2e303079
1839 changed files with 235630 additions and 0 deletions
1
webapp/web/js/tiny_mce/themes/simple/editor_template.js
vendored
Executable file
1
webapp/web/js/tiny_mce/themes/simple/editor_template.js
vendored
Executable file
|
@ -0,0 +1 @@
|
|||
(function(){var DOM=tinymce.DOM;tinymce.ThemeManager.requireLangPack('simple');tinymce.create('tinymce.themes.SimpleTheme',{init:function(ed,url){var t=this,states=['Bold','Italic','Underline','Strikethrough','InsertUnorderedList','InsertOrderedList'],s=ed.settings;t.editor=ed;ed.onInit.add(function(){ed.onNodeChange.add(function(ed,cm){tinymce.each(states,function(c){cm.get(c.toLowerCase()).setActive(ed.queryCommandState(c));});});ed.dom.loadCSS(url+"/skins/"+s.skin+"/content.css");});DOM.loadCSS((s.editor_css?ed.baseURI.toAbsolute(s.editor_css):'')||url+"/skins/"+s.skin+"/ui.css");},renderUI:function(o){var t=this,n=o.targetNode,ic,tb,ed=t.editor,cf=ed.controlManager,sc;n=DOM.insertAfter(DOM.create('span',{id:ed.id+'_container','class':'mceEditor '+ed.settings.skin+'SimpleSkin'}),n);n=sc=DOM.add(n,'table',{cellPadding:0,cellSpacing:0,'class':'mceLayout'});n=tb=DOM.add(n,'tbody');n=DOM.add(tb,'tr');n=ic=DOM.add(DOM.add(n,'td'),'div',{'class':'mceIframeContainer'});n=DOM.add(DOM.add(tb,'tr',{'class':'last'}),'td',{'class':'mceToolbar mceLast',align:'center'});tb=t.toolbar=cf.createToolbar("tools1");tb.add(cf.createButton('bold',{title:'simple.bold_desc',cmd:'Bold'}));tb.add(cf.createButton('italic',{title:'simple.italic_desc',cmd:'Italic'}));tb.add(cf.createButton('underline',{title:'simple.underline_desc',cmd:'Underline'}));tb.add(cf.createButton('strikethrough',{title:'simple.striketrough_desc',cmd:'Strikethrough'}));tb.add(cf.createSeparator());tb.add(cf.createButton('undo',{title:'simple.undo_desc',cmd:'Undo'}));tb.add(cf.createButton('redo',{title:'simple.redo_desc',cmd:'Redo'}));tb.add(cf.createSeparator());tb.add(cf.createButton('cleanup',{title:'simple.cleanup_desc',cmd:'mceCleanup'}));tb.add(cf.createSeparator());tb.add(cf.createButton('insertunorderedlist',{title:'simple.bullist_desc',cmd:'InsertUnorderedList'}));tb.add(cf.createButton('insertorderedlist',{title:'simple.numlist_desc',cmd:'InsertOrderedList'}));tb.renderTo(n);return{iframeContainer:ic,editorContainer:ed.id+'_container',sizeContainer:sc,deltaHeight:-20};},getInfo:function(){return{longname:'Simple theme',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.ThemeManager.add('simple',tinymce.themes.SimpleTheme);})();
|
85
webapp/web/js/tiny_mce/themes/simple/editor_template_src.js
vendored
Executable file
85
webapp/web/js/tiny_mce/themes/simple/editor_template_src.js
vendored
Executable file
|
@ -0,0 +1,85 @@
|
|||
/**
|
||||
* $Id: editor_template_src.js 752 2008-03-27 21:51:25Z spocke $
|
||||
*
|
||||
* This file is meant to showcase how to create a simple theme. The advanced
|
||||
* theme is more suitable for production use.
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
var DOM = tinymce.DOM;
|
||||
|
||||
// Tell it to load theme specific language pack(s)
|
||||
tinymce.ThemeManager.requireLangPack('simple');
|
||||
|
||||
tinymce.create('tinymce.themes.SimpleTheme', {
|
||||
init : function(ed, url) {
|
||||
var t = this, states = ['Bold', 'Italic', 'Underline', 'Strikethrough', 'InsertUnorderedList', 'InsertOrderedList'], s = ed.settings;
|
||||
|
||||
t.editor = ed;
|
||||
|
||||
ed.onInit.add(function() {
|
||||
ed.onNodeChange.add(function(ed, cm) {
|
||||
tinymce.each(states, function(c) {
|
||||
cm.get(c.toLowerCase()).setActive(ed.queryCommandState(c));
|
||||
});
|
||||
});
|
||||
|
||||
ed.dom.loadCSS(url + "/skins/" + s.skin + "/content.css");
|
||||
});
|
||||
|
||||
DOM.loadCSS((s.editor_css ? ed.baseURI.toAbsolute(s.editor_css) : '') || url + "/skins/" + s.skin + "/ui.css");
|
||||
},
|
||||
|
||||
renderUI : function(o) {
|
||||
var t = this, n = o.targetNode, ic, tb, ed = t.editor, cf = ed.controlManager, sc;
|
||||
|
||||
n = DOM.insertAfter(DOM.create('span', {id : ed.id + '_container', 'class' : 'mceEditor ' + ed.settings.skin + 'SimpleSkin'}), n);
|
||||
n = sc = DOM.add(n, 'table', {cellPadding : 0, cellSpacing : 0, 'class' : 'mceLayout'});
|
||||
n = tb = DOM.add(n, 'tbody');
|
||||
|
||||
// Create iframe container
|
||||
n = DOM.add(tb, 'tr');
|
||||
n = ic = DOM.add(DOM.add(n, 'td'), 'div', {'class' : 'mceIframeContainer'});
|
||||
|
||||
// Create toolbar container
|
||||
n = DOM.add(DOM.add(tb, 'tr', {'class' : 'last'}), 'td', {'class' : 'mceToolbar mceLast', align : 'center'});
|
||||
|
||||
// Create toolbar
|
||||
tb = t.toolbar = cf.createToolbar("tools1");
|
||||
tb.add(cf.createButton('bold', {title : 'simple.bold_desc', cmd : 'Bold'}));
|
||||
tb.add(cf.createButton('italic', {title : 'simple.italic_desc', cmd : 'Italic'}));
|
||||
tb.add(cf.createButton('underline', {title : 'simple.underline_desc', cmd : 'Underline'}));
|
||||
tb.add(cf.createButton('strikethrough', {title : 'simple.striketrough_desc', cmd : 'Strikethrough'}));
|
||||
tb.add(cf.createSeparator());
|
||||
tb.add(cf.createButton('undo', {title : 'simple.undo_desc', cmd : 'Undo'}));
|
||||
tb.add(cf.createButton('redo', {title : 'simple.redo_desc', cmd : 'Redo'}));
|
||||
tb.add(cf.createSeparator());
|
||||
tb.add(cf.createButton('cleanup', {title : 'simple.cleanup_desc', cmd : 'mceCleanup'}));
|
||||
tb.add(cf.createSeparator());
|
||||
tb.add(cf.createButton('insertunorderedlist', {title : 'simple.bullist_desc', cmd : 'InsertUnorderedList'}));
|
||||
tb.add(cf.createButton('insertorderedlist', {title : 'simple.numlist_desc', cmd : 'InsertOrderedList'}));
|
||||
tb.renderTo(n);
|
||||
|
||||
return {
|
||||
iframeContainer : ic,
|
||||
editorContainer : ed.id + '_container',
|
||||
sizeContainer : sc,
|
||||
deltaHeight : -20
|
||||
};
|
||||
},
|
||||
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'Simple theme',
|
||||
author : 'Moxiecode Systems AB',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
tinymce.ThemeManager.add('simple', tinymce.themes.SimpleTheme);
|
||||
})();
|
BIN
webapp/web/js/tiny_mce/themes/simple/img/icons.gif
vendored
Executable file
BIN
webapp/web/js/tiny_mce/themes/simple/img/icons.gif
vendored
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
11
webapp/web/js/tiny_mce/themes/simple/langs/en.js
vendored
Executable file
11
webapp/web/js/tiny_mce/themes/simple/langs/en.js
vendored
Executable file
|
@ -0,0 +1,11 @@
|
|||
tinyMCE.addI18n('en.simple',{
|
||||
bold_desc:"Bold (Ctrl+B)",
|
||||
italic_desc:"Italic (Ctrl+I)",
|
||||
underline_desc:"Underline (Ctrl+U)",
|
||||
striketrough_desc:"Strikethrough",
|
||||
bullist_desc:"Unordered list",
|
||||
numlist_desc:"Ordered list",
|
||||
undo_desc:"Undo (Ctrl+Z)",
|
||||
redo_desc:"Redo (Ctrl+Y)",
|
||||
cleanup_desc:"Cleanup messy code"
|
||||
});
|
25
webapp/web/js/tiny_mce/themes/simple/skins/default/content.css
vendored
Executable file
25
webapp/web/js/tiny_mce/themes/simple/skins/default/content.css
vendored
Executable file
|
@ -0,0 +1,25 @@
|
|||
body, td, pre {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.mceVisualAid {
|
||||
border: 1px dashed #BBBBBB;
|
||||
}
|
||||
|
||||
/* MSIE specific */
|
||||
|
||||
* html body {
|
||||
scrollbar-3dlight-color: #F0F0EE;
|
||||
scrollbar-arrow-color: #676662;
|
||||
scrollbar-base-color: #F0F0EE;
|
||||
scrollbar-darkshadow-color: #DDDDDD;
|
||||
scrollbar-face-color: #E0E0DD;
|
||||
scrollbar-highlight-color: #F0F0EE;
|
||||
scrollbar-shadow-color: #F0F0EE;
|
||||
scrollbar-track-color: #F5F5F5;
|
||||
}
|
32
webapp/web/js/tiny_mce/themes/simple/skins/default/ui.css
vendored
Executable file
32
webapp/web/js/tiny_mce/themes/simple/skins/default/ui.css
vendored
Executable file
|
@ -0,0 +1,32 @@
|
|||
/* Reset */
|
||||
.defaultSimpleSkin table, .defaultSimpleSkin tbody, .defaultSimpleSkin a, .defaultSimpleSkin img, .defaultSimpleSkin tr, .defaultSimpleSkin div, .defaultSimpleSkin td, .defaultSimpleSkin iframe, .defaultSimpleSkin span, .defaultSimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000}
|
||||
|
||||
/* Containers */
|
||||
.defaultSimpleSkin {position:relative}
|
||||
.defaultSimpleSkin table.mceLayout {background:#F0F0EE; border:1px solid #CCC;}
|
||||
.defaultSimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #CCC;}
|
||||
.defaultSimpleSkin .mceToolbar {height:24px;}
|
||||
|
||||
/* Layout */
|
||||
.defaultSimpleSkin span.mceIcon, .defaultSimpleSkin img.mceIcon {display:block; width:20px; height:20px}
|
||||
.defaultSimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
|
||||
|
||||
/* Button */
|
||||
.defaultSimpleSkin .mceButton {display:block; border:1px solid #F0F0EE; width:20px; height:20px}
|
||||
.defaultSimpleSkin a.mceButtonEnabled:hover {border:1px solid #0A246A; background-color:#B2BBD0}
|
||||
.defaultSimpleSkin a.mceButtonActive {border:1px solid #0A246A; background-color:#C2CBE0}
|
||||
.defaultSimpleSkin .mceButtonDisabled span {opacity:0.3; filter:alpha(opacity=30)}
|
||||
|
||||
/* Separator */
|
||||
.defaultSimpleSkin .mceSeparator {display:block; background:url(../../img/icons.gif) -180px 0; width:2px; height:20px; margin:0 2px 0 4px}
|
||||
|
||||
/* Theme */
|
||||
.defaultSimpleSkin span.mce_bold {background-position:0 0}
|
||||
.defaultSimpleSkin span.mce_italic {background-position:-60px 0}
|
||||
.defaultSimpleSkin span.mce_underline {background-position:-140px 0}
|
||||
.defaultSimpleSkin span.mce_strikethrough {background-position:-120px 0}
|
||||
.defaultSimpleSkin span.mce_undo {background-position:-160px 0}
|
||||
.defaultSimpleSkin span.mce_redo {background-position:-100px 0}
|
||||
.defaultSimpleSkin span.mce_cleanup {background-position:-40px 0}
|
||||
.defaultSimpleSkin span.mce_insertunorderedlist {background-position:-20px 0}
|
||||
.defaultSimpleSkin span.mce_insertorderedlist {background-position:-80px 0}
|
17
webapp/web/js/tiny_mce/themes/simple/skins/o2k7/content.css
vendored
Executable file
17
webapp/web/js/tiny_mce/themes/simple/skins/o2k7/content.css
vendored
Executable file
|
@ -0,0 +1,17 @@
|
|||
body, td, pre {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;}
|
||||
|
||||
body {background: #FFF;}
|
||||
.mceVisualAid {border: 1px dashed #BBB;}
|
||||
|
||||
/* IE */
|
||||
|
||||
* html body {
|
||||
scrollbar-3dlight-color: #F0F0EE;
|
||||
scrollbar-arrow-color: #676662;
|
||||
scrollbar-base-color: #F0F0EE;
|
||||
scrollbar-darkshadow-color: #DDDDDD;
|
||||
scrollbar-face-color: #E0E0DD;
|
||||
scrollbar-highlight-color: #F0F0EE;
|
||||
scrollbar-shadow-color: #F0F0EE;
|
||||
scrollbar-track-color: #F5F5F5;
|
||||
}
|
BIN
webapp/web/js/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png
vendored
Executable file
BIN
webapp/web/js/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png
vendored
Executable file
Binary file not shown.
After Width: | Height: | Size: 5 KiB |
35
webapp/web/js/tiny_mce/themes/simple/skins/o2k7/ui.css
vendored
Executable file
35
webapp/web/js/tiny_mce/themes/simple/skins/o2k7/ui.css
vendored
Executable file
|
@ -0,0 +1,35 @@
|
|||
/* Reset */
|
||||
.o2k7SimpleSkin table, .o2k7SimpleSkin tbody, .o2k7SimpleSkin a, .o2k7SimpleSkin img, .o2k7SimpleSkin tr, .o2k7SimpleSkin div, .o2k7SimpleSkin td, .o2k7SimpleSkin iframe, .o2k7SimpleSkin span, .o2k7SimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000}
|
||||
|
||||
/* Containers */
|
||||
.o2k7SimpleSkin {position:relative}
|
||||
.o2k7SimpleSkin table.mceLayout {background:#E5EFFD; border:1px solid #ABC6DD;}
|
||||
.o2k7SimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #ABC6DD;}
|
||||
.o2k7SimpleSkin .mceToolbar {height:26px;}
|
||||
|
||||
/* Layout */
|
||||
.o2k7SimpleSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; }
|
||||
.o2k7SimpleSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px}
|
||||
.o2k7SimpleSkin span.mceIcon, .o2k7SimpleSkin img.mceIcon {display:block; width:20px; height:20px}
|
||||
.o2k7SimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
|
||||
|
||||
/* Button */
|
||||
.o2k7SimpleSkin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px}
|
||||
.o2k7SimpleSkin a.mceButton span, .o2k7SimpleSkin a.mceButton img {margin:1px 0 0 1px}
|
||||
.o2k7SimpleSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px}
|
||||
.o2k7SimpleSkin a.mceButtonActive {background-position:0 -44px}
|
||||
.o2k7SimpleSkin .mceButtonDisabled span {opacity:0.3; filter:alpha(opacity=30)}
|
||||
|
||||
/* Separator */
|
||||
.o2k7SimpleSkin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px}
|
||||
|
||||
/* Theme */
|
||||
.o2k7SimpleSkin span.mce_bold {background-position:0 0}
|
||||
.o2k7SimpleSkin span.mce_italic {background-position:-60px 0}
|
||||
.o2k7SimpleSkin span.mce_underline {background-position:-140px 0}
|
||||
.o2k7SimpleSkin span.mce_strikethrough {background-position:-120px 0}
|
||||
.o2k7SimpleSkin span.mce_undo {background-position:-160px 0}
|
||||
.o2k7SimpleSkin span.mce_redo {background-position:-100px 0}
|
||||
.o2k7SimpleSkin span.mce_cleanup {background-position:-40px 0}
|
||||
.o2k7SimpleSkin span.mce_insertunorderedlist {background-position:-20px 0}
|
||||
.o2k7SimpleSkin span.mce_insertorderedlist {background-position:-80px 0}
|
Loading…
Add table
Add a link
Reference in a new issue