From: Lukasz Anwajler Date: Mon, 29 Nov 2010 18:48:00 +0000 (-0600) Subject: Ticket #956: Inserting symbol in Edit window instead of main toolbar. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/c7eba7256c19035609dddbd141dc92a9640f71d9?ds=sidebyside;hp=7094d00cd82535cfd1db00e7bd85e2a01161da83 Ticket #956: Inserting symbol in Edit window instead of main toolbar. --- diff --git a/apps/wiki/templates/wiki/tabs/wysiwyg_editor.html b/apps/wiki/templates/wiki/tabs/wysiwyg_editor.html index 9f6232c2..5e3c46f9 100644 --- a/apps/wiki/templates/wiki/tabs/wysiwyg_editor.html +++ b/apps/wiki/templates/wiki/tabs/wysiwyg_editor.html @@ -10,9 +10,6 @@ - {% endif %}
diff --git a/redakcja/static/css/html.css b/redakcja/static/css/html.css index cc53e223..ffed30e0 100644 --- a/redakcja/static/css/html.css +++ b/redakcja/static/css/html.css @@ -488,7 +488,7 @@ div[x-node] > .uwaga { 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; @@ -512,16 +512,20 @@ div[x-node] > .uwaga { } .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; } @@ -530,7 +534,8 @@ div[x-node] > .uwaga { .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; @@ -633,12 +638,14 @@ div[x-node] > .uwaga { #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; diff --git a/redakcja/static/js/wiki/view_editor_wysiwyg.js b/redakcja/static/js/wiki/view_editor_wysiwyg.js index 4e0bdee8..6e4342d7 100644 --- a/redakcja/static/js/wiki/view_editor_wysiwyg.js +++ b/redakcja/static/js/wiki/view_editor_wysiwyg.js @@ -217,7 +217,7 @@ 'Τ','τ','Υ','υ','Φ','φ','Χ','χ','Ψ','ψ','Ω','ω','–', '—','¡','¿','$','¢','£','€','©','®','°','¹','²','³', '¼','½','¾','†','§','‰','•','←','↑','→','↓', - '„”','«»','’','[',']','[','~','|','−','·', + '„','”','«','»','’','[',']','[','~','|','−','·', '×','÷','≈','≠','±','≤','≥','∈']; var tableContent = ""; @@ -305,7 +305,7 @@ } // start edition on this node - var $overlay = $('
').css({ + var $overlay = $('
').css({ position: 'absolute', height: h, left: x, @@ -420,7 +420,11 @@ } else if (buttonName == "tytuł dzieła") { startTag = ""; endTag = ""; + } else if(buttonName == "znak spec."){ + addSymbol(); + return false; } + var myField = textAreaOpened; //IE support @@ -493,12 +497,7 @@ $('#insert-theme-button').click(function(){ addTheme(); return false; - }); - - $('#insert-symbol-button').click(function(){ - addSymbol(); - return false; - }); + }); $('.edit-button').live('click', function(event){ event.preventDefault();