changed Barre_prof app

preferencesAboutTextFull
unknown 14 years ago
parent 870e4c55a2
commit 99fd9a134b
  1. 4
      resources/library/interactive/Barre_prof.wgt/config.xml
  2. 0
      resources/library/interactive/Barre_prof.wgt/css/content.css
  3. 40
      resources/library/interactive/Barre_prof.wgt/css/hideButton.css
  4. BIN
      resources/library/interactive/Barre_prof.wgt/css/img/custom_icon.png
  5. BIN
      resources/library/interactive/Barre_prof.wgt/css/img/down.png
  6. BIN
      resources/library/interactive/Barre_prof.wgt/css/img/up.png
  7. 0
      resources/library/interactive/Barre_prof.wgt/css/word.css
  8. 0
      resources/library/interactive/Barre_prof.wgt/icon.png
  9. 36
      resources/library/interactive/Barre_prof.wgt/index.html
  10. 18
      resources/library/interactive/Barre_prof.wgt/jscripts/jquery-1.3.2.min.js
  11. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/langs/en.js
  12. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/license.txt
  13. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advhr/css/advhr.css
  14. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advhr/editor_plugin.js
  15. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js
  16. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advhr/js/rule.js
  17. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js
  18. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advhr/rule.htm
  19. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advimage/css/advimage.css
  20. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advimage/editor_plugin.js
  21. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
  22. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advimage/image.htm
  23. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advimage/img/sample.gif
  24. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advimage/js/image.js
  25. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js
  26. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advlink/css/advlink.css
  27. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advlink/editor_plugin.js
  28. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js
  29. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advlink/js/advlink.js
  30. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js
  31. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advlink/link.htm
  32. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advlist/editor_plugin.js
  33. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/advlist/editor_plugin_src.js
  34. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/autolink/editor_plugin.js
  35. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/autolink/editor_plugin_src.js
  36. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/autoresize/editor_plugin.js
  37. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js
  38. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/autosave/editor_plugin.js
  39. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/autosave/editor_plugin_src.js
  40. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/autosave/langs/en.js
  41. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js
  42. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js
  43. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js
  44. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js
  45. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/directionality/editor_plugin.js
  46. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js
  47. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/editor_plugin.js
  48. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js
  49. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/emotions.htm
  50. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.png
  51. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.png
  52. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.png
  53. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.png
  54. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.png
  55. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.png
  56. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.png
  57. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.png
  58. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.png
  59. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.png
  60. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.png
  61. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.png
  62. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.png
  63. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.png
  64. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.png
  65. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.png
  66. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/js/emotions.js
  67. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/emotions/langs/en_dlg.js
  68. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/example/dialog.htm
  69. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/example/editor_plugin.js
  70. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/example/editor_plugin_src.js
  71. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/example/img/example.gif
  72. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/example/js/dialog.js
  73. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/example/langs/en.js
  74. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/example/langs/en_dlg.js
  75. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/example_dependency/editor_plugin.js
  76. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/example_dependency/editor_plugin_src.js
  77. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css
  78. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/fullpage/editor_plugin.js
  79. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js
  80. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/fullpage/fullpage.htm
  81. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js
  82. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/fullpage/langs/en_dlg.js
  83. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/fullscreen/editor_plugin.js
  84. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js
  85. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm
  86. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/iespell/editor_plugin.js
  87. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js
  88. 702
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js
  89. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js
  90. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.png
  91. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.png
  92. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.png
  93. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.png
  94. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.png
  95. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.png
  96. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.png
  97. 2
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css
  98. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/inlinepopups/template.htm
  99. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js
  100. 0
      resources/library/interactive/Barre_prof.wgt/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js
  101. Some files were not shown because too many files have changed in this diff Show More

@ -4,8 +4,8 @@
xmlns:ub="http://uniboard.mnemis.com/widgets"
id="http://www.example.net/widgets/helloworld"
version="1.0"
width="540"
height="320"
width="550"
height="325"
ub:resizable="true">
<name>Rich Note</name>

@ -0,0 +1,40 @@
/*
Document : hideButton
Created on : Aug 19, 2011, 6:32:52 PM
Author : GEG.BY
Description:
Purpose of the stylesheet follows.
*/
/*
TODO customize this sample style
Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/
button{
padding: 0px;
margin: 2px;
width: 19px;
height: 15px;
background-repeat: no-repeat;
border: none;
float: right;
}
.down{
background-image: url(img/down.png) ;
}
.up{
background-image: url(img/up.png);
}
.customIcon{
padding: 0px;
margin: 0px;
width: 130px;
height: 130px;
background-repeat: no-repeat;
background-image: url(img/custom_icon.png);
border: none;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

@ -5,8 +5,14 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- TinyMCE -->
<script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="jscripts/jquery-1.3.2.min.js"></script>
<link type="text/css" rel="stylesheet" href="css/hideButton.css"/>
<script type="text/javascript">
var flag = false;
var tempButton = $('<button style="z-index: 99999;" class="down"></button>');
var customDiv = $('<div id="customDiv" class="customIcon"></div>');
var widgetHeight = 0;
var widgetWidth = 0;
tinyMCE.init({
// General options
mode : "textareas",
@ -61,19 +67,33 @@
if(!window.frames[0])
setTimeout(function(){setTextEditorData()}, 300);
else {
$('#elm1_parent').hide("slow");
$('#elm1_parent').show("slow");
flag = true;
window.frames[0].document.getElementById("tinymce").innerHTML = window.sankore.preference("textForEditing","<p>Enter your text here ...</p>");
customDiv.insertBefore("#elm1");
tempButton.insertBefore("#elm1");
customDiv.hide();
tempButton.click(function(){
if(tempButton.hasClass("down")){
tempButton.removeClass("down");
tempButton.addClass("up");
widgetWidth = $('#elm1_parent').width();
widgetHeight = $('#elm1_parent').height();
$('#elm1_parent').hide("fast");
window.resizeTo(170, 160);
customDiv.show();
} else {
customDiv.hide();
tempButton.removeClass("up");
tempButton.addClass("down");
$('#elm1_parent').show("slow");
window.resizeTo(widgetWidth + 55, widgetHeight + 18);
}
});
}
}
}
/*function setSpanHandler(){
alert(document.body.innerHTML);
alert(document.getElementById("elm1_toolbargroup").innerHTML);
document.getElementById("elm1_toolbargroup").onmouseout = function(){
setSankoreData();
};
}*/
</script>
<!-- /TinyMCE -->

File diff suppressed because one or more lines are too long

@ -0,0 +1,702 @@
(function(){
var d=tinymce.DOM,b=tinymce.dom.Element,a=tinymce.dom.Event,e=tinymce.each,c=tinymce.is;
tinymce.create("tinymce.plugins.InlinePopups",{
init:function(f,g){
f.onBeforeRenderUI.add(function(){
f.windowManager=new tinymce.InlineWindowManager(f);
d.loadCSS(g+"/skins/"+(f.settings.inlinepopups_skin||"clearlooks2")+"/window.css")
})
},
getInfo:function(){
return{
longname:"InlinePopups",
author:"Moxiecode Systems AB",
authorurl:"http://tinymce.moxiecode.com",
infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",
version:tinymce.majorVersion+"."+tinymce.minorVersion
}
}
});
tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{
InlineWindowManager:function(f){
var g=this;
g.parent(f);
g.zIndex=300000;
g.count=0;
g.windows={}
},
open:function(s,j){
var z=this,i,k="",r=z.editor,g=0,v=0,h,m,o,q,l,x,y,n;
s=s||{};
j=j||{};
if(!s.inline){
return z.parent(s,j)
}
n=z._frontWindow();
if(n&&d.get(n.id+"_ifr")){
n.focussedElement=d.get(n.id+"_ifr").contentWindow.document.activeElement
}
if(!s.type){
z.bookmark=r.selection.getBookmark(1)
}
i=d.uniqueId();
h=d.getViewPort();
s.width=parseInt(s.width||320);
if(s.width > 500)
s.width = 400;
s.height=parseInt(s.height||240)+(tinymce.isIE?8:0);
if(s.height > 300)
s.height = 260;
s.min_width=parseInt(s.min_width||150);
s.min_height=parseInt(s.min_height||100);
s.max_width=parseInt(s.max_width||2000);
s.max_height=parseInt(s.max_height||2000);
s.left=s.left||Math.round(Math.max(h.x,h.x+(h.w/2)-(s.width/2)));
s.top=s.top||Math.round(Math.max(h.y,h.y+(h.h/2)-(s.height/2)));
s.movable=s.resizable=true;
j.mce_width=s.width;
j.mce_height=s.height;
j.mce_inline=true;
j.mce_window_id=i;
j.mce_auto_focus=s.auto_focus;
z.features=s;
z.params=j;
z.onOpen.dispatch(z,s,j);
if(s.type){
k+=" mceModal";
if(s.type){
k+=" mce"+s.type.substring(0,1).toUpperCase()+s.type.substring(1)
}
s.resizable=false
}
if(s.statusbar){
k+=" mceStatusbar"
}
if(s.resizable){
k+=" mceResizable"
}
if(s.minimizable){
k+=" mceMinimizable"
}
if(s.maximizable){
k+=" mceMaximizable"
}
if(s.movable){
k+=" mceMovable"
}
z._addAll(d.doc.body,["div",{
id:i,
role:"dialog",
"aria-labelledby":s.type?i+"_content":i+"_title",
"class":(r.settings.inlinepopups_skin||"clearlooks2")+(tinymce.isIE&&window.getSelection?" ie9":""),
style:"width:100px;height:100px"
},["div",{
id:i+"_wrapper",
"class":"mceWrapper"+k
},["div",{
id:i+"_top",
"class":"mceTop"
},["div",{
"class":"mceLeft"
}],["div",{
"class":"mceCenter"
}],["div",{
"class":"mceRight"
}],["span",{
id:i+"_title"
},s.title||""]],["div",{
id:i+"_middle",
"class":"mceMiddle"
},["div",{
id:i+"_left",
"class":"mceLeft",
tabindex:"0"
}],["span",{
id:i+"_content"
}],["div",{
id:i+"_right",
"class":"mceRight",
tabindex:"0"
}]],["div",{
id:i+"_bottom",
"class":"mceBottom"
},["div",{
"class":"mceLeft"
}],["div",{
"class":"mceCenter"
}],["div",{
"class":"mceRight"
}],["span",{
id:i+"_status"
},"Content"]],["a",{
"class":"mceMove",
tabindex:"-1",
href:"javascript:;"
}],["a",{
"class":"mceMin",
tabindex:"-1",
href:"javascript:;",
onmousedown:"return false;"
}],["a",{
"class":"mceMax",
tabindex:"-1",
href:"javascript:;",
onmousedown:"return false;"
}],["a",{
"class":"mceMed",
tabindex:"-1",
href:"javascript:;",
onmousedown:"return false;"
}],["a",{
"class":"mceClose",
tabindex:"-1",
href:"javascript:;",
onmousedown:"return false;"
}],["a",{
id:i+"_resize_n",
"class":"mceResize mceResizeN",
tabindex:"-1",
href:"javascript:;"
}],["a",{
id:i+"_resize_s",
"class":"mceResize mceResizeS",
tabindex:"-1",
href:"javascript:;"
}],["a",{
id:i+"_resize_w",
"class":"mceResize mceResizeW",
tabindex:"-1",
href:"javascript:;"
}],["a",{
id:i+"_resize_e",
"class":"mceResize mceResizeE",
tabindex:"-1",
href:"javascript:;"
}],["a",{
id:i+"_resize_nw",
"class":"mceResize mceResizeNW",
tabindex:"-1",
href:"javascript:;"
}],["a",{
id:i+"_resize_ne",
"class":"mceResize mceResizeNE",
tabindex:"-1",
href:"javascript:;"
}],["a",{
id:i+"_resize_sw",
"class":"mceResize mceResizeSW",
tabindex:"-1",
href:"javascript:;"
}],["a",{
id:i+"_resize_se",
"class":"mceResize mceResizeSE",
tabindex:"-1",
href:"javascript:;"
}]]]);
d.setStyles(i,{
top:-10000,
left:-10000
});
if(tinymce.isGecko){
d.setStyle(i,"overflow","auto")
}
if(!s.type){
g+=d.get(i+"_left").clientWidth;
g+=d.get(i+"_right").clientWidth;
v+=d.get(i+"_top").clientHeight;
v+=d.get(i+"_bottom").clientHeight
}
d.setStyles(i,{
top:s.top,
left:s.left,
width:s.width+g,
height:s.height+v
});
y=s.url||s.file;
if(y){
if(tinymce.relaxedDomain){
y+=(y.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain
}
y=tinymce._addVer(y)
}
if(!s.type){
d.add(i+"_content","iframe",{
id:i+"_ifr",
src:'javascript:""',
frameBorder:0,
style:"border:0;width:10px;height:10px"
});
d.setStyles(i+"_ifr",{
width:s.width,
height:s.height
});
d.setAttrib(i+"_ifr","src",y)
}else{
d.add(i+"_wrapper","a",{
id:i+"_ok",
"class":"mceButton mceOk",
href:"javascript:;",
onmousedown:"return false;"
},"Ok");
if(s.type=="confirm"){
d.add(i+"_wrapper","a",{
"class":"mceButton mceCancel",
href:"javascript:;",
onmousedown:"return false;"
},"Cancel")
}
d.add(i+"_middle","div",{
"class":"mceIcon"
});
d.setHTML(i+"_content",s.content.replace("\n","<br />"));
a.add(i,"keyup",function(f){
var p=27;
if(f.keyCode===p){
s.button_func(false);
return a.cancel(f)
}
});
a.add(i,"keydown",function(f){
var t,p=9;
if(f.keyCode===p){
t=d.select("a.mceCancel",i+"_wrapper")[0];
if(t&&t!==f.target){
t.focus()
}else{
d.get(i+"_ok").focus()
}
return a.cancel(f)
}
})
}
o=a.add(i,"mousedown",function(t){
var u=t.target,f,p;
f=z.windows[i];
z.focus(i);
if(u.nodeName=="A"||u.nodeName=="a"){
if(u.className=="mceClose"){
z.close(null,i);
return a.cancel(t)
}else{
if(u.className=="mceMax"){
f.oldPos=f.element.getXY();
f.oldSize=f.element.getSize();
p=d.getViewPort();
p.w-=2;
p.h-=2;
f.element.moveTo(p.x,p.y);
f.element.resizeTo(p.w,p.h);
d.setStyles(i+"_ifr",{
width:p.w-f.deltaWidth,
height:p.h-f.deltaHeight
});
d.addClass(i+"_wrapper","mceMaximized")
}else{
if(u.className=="mceMed"){
f.element.moveTo(f.oldPos.x,f.oldPos.y);
f.element.resizeTo(f.oldSize.w,f.oldSize.h);
f.iframeElement.resizeTo(f.oldSize.w-f.deltaWidth,f.oldSize.h-f.deltaHeight);
d.removeClass(i+"_wrapper","mceMaximized")
}else{
if(u.className=="mceMove"){
return z._startDrag(i,t,u.className)
}else{
if(d.hasClass(u,"mceResize")){
return z._startDrag(i,t,u.className.substring(13))
}
}
}
}
}
}
});
q=a.add(i,"click",function(f){
var p=f.target;
z.focus(i);
if(p.nodeName=="A"||p.nodeName=="a"){
switch(p.className){
case"mceClose":
z.close(null,i);
return a.cancel(f);
case"mceButton mceOk":case"mceButton mceCancel":
s.button_func(p.className=="mceButton mceOk");
return a.cancel(f)
}
}
});
a.add([i+"_left",i+"_right"],"focus",function(p){
var t=d.get(i+"_ifr");
if(t){
var f=t.contentWindow.document.body;
var u=d.select(":input:enabled,*[tabindex=0]",f);
if(p.target.id===(i+"_left")){
u[u.length-1].focus()
}else{
u[0].focus()
}
}else{
d.get(i+"_ok").focus()
}
});
x=z.windows[i]={
id:i,
mousedown_func:o,
click_func:q,
element:new b(i,{
blocker:1,
container:r.getContainer()
}),
iframeElement:new b(i+"_ifr"),
features:s,
deltaWidth:g,
deltaHeight:v
};
x.iframeElement.on("focus",function(){
z.focus(i)
});
if(z.count==0&&z.editor.getParam("dialog_type","modal")=="modal"){
d.add(d.doc.body,"div",{
id:"mceModalBlocker",
"class":(z.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",
style:{
zIndex:z.zIndex-1
}
});
d.show("mceModalBlocker");
d.setAttrib(d.doc.body,"aria-hidden","true")
}else{
d.setStyle("mceModalBlocker","z-index",z.zIndex-1)
}
if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!d.boxModel)){
d.setStyles("mceModalBlocker",{
position:"absolute",
left:h.x,
top:h.y,
width:h.w-2,
height:h.h-2
})
}
d.setAttrib(i,"aria-hidden","false");
z.focus(i);
z._fixIELayout(i,1);
if(d.get(i+"_ok")){
d.get(i+"_ok").focus()
}
z.count++;
return x
},
focus:function(h){
var g=this,f;
if(f=g.windows[h]){
f.zIndex=this.zIndex++;
f.element.setStyle("zIndex",f.zIndex);
f.element.update();
h=h+"_wrapper";
d.removeClass(g.lastId,"mceFocus");
d.addClass(h,"mceFocus");
g.lastId=h;
if(f.focussedElement){
f.focussedElement.focus()
}else{
if(d.get(h+"_ok")){
d.get(f.id+"_ok").focus()
}else{
if(d.get(f.id+"_ifr")){
d.get(f.id+"_ifr").focus()
}
}
}
}
},
_addAll:function(k,h){
var g,l,f=this,j=tinymce.DOM;
if(c(h,"string")){
k.appendChild(j.doc.createTextNode(h))
}else{
if(h.length){
k=k.appendChild(j.create(h[0],h[1]));
for(g=2;g<h.length;g++){
f._addAll(k,h[g])
}
}
}
},
_startDrag:function(v,G,E){
var o=this,u,z,C=d.doc,f,l=o.windows[v],h=l.element,y=h.getXY(),x,q,F,g,A,s,r,j,i,m,k,n,B;
g={
x:0,
y:0
};
A=d.getViewPort();
A.w-=2;
A.h-=2;
j=G.screenX;
i=G.screenY;
m=k=n=B=0;
u=a.add(C,"mouseup",function(p){
a.remove(C,"mouseup",u);
a.remove(C,"mousemove",z);
if(f){
f.remove()
}
h.moveBy(m,k);
h.resizeBy(n,B);
q=h.getSize();
d.setStyles(v+"_ifr",{
width:q.w-l.deltaWidth,
height:q.h-l.deltaHeight
});
o._fixIELayout(v,1);
return a.cancel(p)
});
if(E!="Move"){
D()
}
function D(){
if(f){
return
}
o._fixIELayout(v,0);
d.add(C.body,"div",{
id:"mceEventBlocker",
"class":"mceEventBlocker "+(o.editor.settings.inlinepopups_skin||"clearlooks2"),
style:{
zIndex:o.zIndex+1
}
});
if(tinymce.isIE6||(tinymce.isIE&&!d.boxModel)){
d.setStyles("mceEventBlocker",{
position:"absolute",
left:A.x,
top:A.y,
width:A.w-2,
height:A.h-2
})
}
f=new b("mceEventBlocker");
f.update();
x=h.getXY();
q=h.getSize();
s=g.x+x.x-A.x;
r=g.y+x.y-A.y;
d.add(f.get(),"div",{
id:"mcePlaceHolder",
"class":"mcePlaceHolder",
style:{
left:s,
top:r,
width:q.w,
height:q.h
}
});
F=new b("mcePlaceHolder")
}
z=a.add(C,"mousemove",function(w){
var p,H,t;
D();
p=w.screenX-j;
H=w.screenY-i;
switch(E){
case"ResizeW":
m=p;
n=0-p;
break;
case"ResizeE":
n=p;
break;
case"ResizeN":case"ResizeNW":case"ResizeNE":
if(E=="ResizeNW"){
m=p;
n=0-p
}else{
if(E=="ResizeNE"){
n=p
}
}
k=H;
B=0-H;
break;
case"ResizeS":case"ResizeSW":case"ResizeSE":
if(E=="ResizeSW"){
m=p;
n=0-p
}else{
if(E=="ResizeSE"){
n=p
}
}
B=H;
break;
case"mceMove":
m=p;
k=H;
break
}
if(n<(t=l.features.min_width-q.w)){
if(m!==0){
m+=n-t
}
n=t
}
if(B<(t=l.features.min_height-q.h)){
if(k!==0){
k+=B-t
}
B=t
}
n=Math.min(n,l.features.max_width-q.w);
B=Math.min(B,l.features.max_height-q.h);
m=Math.max(m,A.x-(s+A.x));
k=Math.max(k,A.y-(r+A.y));
m=Math.min(m,(A.w+A.x)-(s+q.w+A.x));
k=Math.min(k,(A.h+A.y)-(r+q.h+A.y));
if(m+k!==0){
if(s+m<0){
m=0
}
if(r+k<0){
k=0
}
F.moveTo(s+m,r+k)
}
if(n+B!==0){
F.resizeTo(q.w+n,q.h+B)
}
return a.cancel(w)
});
return a.cancel(G)
},
resizeBy:function(g,h,i){
var f=this.windows[i];
if(f){
f.element.resizeBy(g,h);
f.iframeElement.resizeBy(g,h)
}
},
close:function(i,k){
var g=this,f,j=d.doc,h,k;
k=g._findId(k||i);
if(!g.windows[k]){
g.parent(i);
return
}
g.count--;
if(g.count==0){
d.remove("mceModalBlocker");
d.setAttrib(d.doc.body,"aria-hidden","false");
g.editor.focus()
}
if(f=g.windows[k]){
g.onClose.dispatch(g);
a.remove(j,"mousedown",f.mousedownFunc);
a.remove(j,"click",f.clickFunc);
a.clear(k);
a.clear(k+"_ifr");
d.setAttrib(k+"_ifr","src",'javascript:""');
f.element.remove();
delete g.windows[k];
h=g._frontWindow();
if(h){
g.focus(h.id)
}
}
},
_frontWindow:function(){
var g,f=0;
e(this.windows,function(h){
if(h.zIndex>f){
g=h;
f=h.zIndex
}
});
return g
},
setTitle:function(f,g){
var h;
f=this._findId(f);
if(h=d.get(f+"_title")){
h.innerHTML=d.encode(g)
}
},
alert:function(g,f,j){
var i=this,h;
h=i.open({
title:i,
type:"alert",
button_func:function(k){
if(f){
f.call(k||i,k)
}
i.close(null,h.id)
},
content:d.encode(i.editor.getLang(g,g)),
inline:1,
width:400,
height:130
})
},
confirm:function(g,f,j){
var i=this,h;
h=i.open({
title:i,
type:"confirm",
button_func:function(k){
if(f){
f.call(k||i,k)
}
i.close(null,h.id)
},
content:d.encode(i.editor.getLang(g,g)),
inline:1,
width:400,
height:130
})
},
_findId:function(f){
var g=this;
if(typeof(f)=="string"){
return f
}
e(g.windows,function(h){
var i=d.get(h.id+"_ifr");
if(i&&f==i.contentWindow){
f=h.id;
return false
}
});
return f
},
_fixIELayout:function(i,h){
var f,g;
if(!tinymce.isIE6){
return
}
e(["n","s","w","e","nw","ne","sw","se"],function(j){
var k=d.get(i+"_resize_"+j);
d.setStyles(k,{
width:h?k.clientWidth:"",
height:h?k.clientHeight:"",
cursor:d.getStyle(k,"cursor",1)
});
d.setStyle(i+"_bottom","bottom","-1px");
k=0
});
if(f=this.windows[i]){
f.element.hide();
f.element.show();
e(d.select("div,a",i),function(k,j){
if(k.currentStyle.backgroundImage!="none"){
g=new Image();
g.src=k.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")
}
});
d.get(i).style.filter=""
}
}
});
tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)
})();

@ -61,7 +61,7 @@
.clearlooks2 .mceFocus .mceMax:hover {right:37px; background:url(img/buttons.png) -58px -32px}
/* Resize */
.clearlooks2 .mceResize {top:auto; left:auto; display:none; width:5px; height:5px; background:url(img/horizontal.png) no-repeat 0 -75px}
.clearlooks2 .mceResize {top:auto; left:auto; display:none; width:5px; height:5px;}
.clearlooks2 .mceResizable .mceResize {display:block}
.clearlooks2 .mceResizable .mceMin, .clearlooks2 .mceMax {display:none}
.clearlooks2 .mceMinimizable .mceMin {display:block}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save