visibility: hidden;
}
-.edit-button, .delete-button, .accept-button, .tytul-button, .wyroznienie-button, .slowo-button {
+.edit-button, .delete-button, .accept-button, .tytul-button, .wyroznienie-button, .slowo-button, .znak-button {
position: absolute;
top: -21px;
left: -1px;
}
.tytul-button {
- left:200px;
+ left:150px;
width:100px;
}
.wyroznienie-button {
- left:300px;
+ left:250px;
width:100px;
}
.slowo-button {
- left: 400px;
+ left:350px;
+ width:100px;
+}
+.znak-button {
+ left:450px;
width:100px;
}
.accept-button:hover, .accept-button:active,
.tytul-button:hover, .tytul-button:active,
.wyroznienie-button:hover, .wyroznienie-button:active,
-.slowo-button:hover, .slowo-button:active {
+.slowo-button:hover, .slowo-button:active,
+.znak-button:hover, .znak-button:active {
/* color: #FFF;*/
background-color: #999;
color: #FFF;
#specialCharsContainer {
text-align: center;
width: 600px;
+ height: 400px;
padding:20px;
background-color: gray;
position: absolute;
top: 20px;
left: 20px;
z-index:1000;
+ overflow:auto;
}
#specialCharsContainer a {
color: white;
'Τ','τ','Υ','υ','Φ','φ','Χ','χ','Ψ','ψ','Ω','ω','–',
'—','¡','¿','$','¢','£','€','©','®','°','¹','²','³',
'¼','½','¾','†','§','‰','•','←','↑','→','↓',
- '„”','«»','’','[',']','[','~','|','−','·',
+ '„','”','«','»','’','[',']','[','~','|','−','·',
'×','÷','≈','≠','±','≤','≥','∈'];
var tableContent = "<tr>";
}
// start edition on this node
- var $overlay = $('<div class="html-editarea"><button class="accept-button">Zapisz</button><button class="delete-button">Usuń</button><button class="tytul-button akap-edit-button">tytuł dzieła</button><button class="wyroznienie-button akap-edit-button">wyróżnienie</button><button class="slowo-button akap-edit-button">słowo obce</button><textarea></textarea></div>').css({
+ var $overlay = $('<div class="html-editarea"><button class="accept-button">Zapisz</button><button class="delete-button">Usuń</button><button class="tytul-button akap-edit-button">tytuł dzieła</button><button class="wyroznienie-button akap-edit-button">wyróżnienie</button><button class="slowo-button akap-edit-button">słowo obce</button><button class="znak-button akap-edit-button">znak spec.</button><textarea></textarea></div>').css({
position: 'absolute',
height: h,
left: x,
} else if (buttonName == "tytuł dzieła") {
startTag = "<tytul_dziela>";
endTag = "</tytul_dziela>";
+ } else if(buttonName == "znak spec."){
+ addSymbol();
+ return false;
}
+
var myField = textAreaOpened;
//IE support
$('#insert-theme-button').click(function(){
addTheme();
return false;
- });
-
- $('#insert-symbol-button').click(function(){
- addSymbol();
- return false;
- });
+ });
$('.edit-button').live('click', function(event){
event.preventDefault();