Commit 8b65d002 authored by Anatoly Mihalchenko's avatar Anatoly Mihalchenko

Merge branch 'master' of github.com:Sankore/Sankore-3.1

parents 56258ad9 20ea1cc1
......@@ -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>
......
/*
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;
}
......@@ -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 -->
......
......@@ -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}
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment