Commit e36a4a69 authored by Okhin's avatar Okhin

Fixing the binding of events from tinyMCE

parent bd3c1735
......@@ -7,7 +7,7 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript" src="{%media_url%}/js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="{%media_url%}/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript" src="{%media_url%}/js/jquery.min.js"></script>
<script type="text/javascript" src="{%media_url%}/js/jquery-migrate-1.2.1.js"></script>
<script type="text/javascript" src="{%media_url%}/js/jquery-ui.min.js"></script>
......@@ -17,13 +17,13 @@
function focushandlers(ed) {
var s = ed.settings;
var realID = $('#'+ed.id+'_tbl');
tinymce.dom.Event.add(ed.getWin(), 'focus', function(e) {
tinymce.dom.EventUtils.bind(ed.getWin(), 'focus', function(e) {
if($(realID)) {
//console.log(realID);
realID.parents('.fieldWrapper').find('.help_text').show();
}
});
tinymce.dom.Event.add(ed.getWin(), 'blur', function(e) {
tinymce.dom.EventUtils.bind(ed.getWin(), 'blur', function(e) {
if($(realID)) {
//console.log(realID);
realID.parents('.fieldWrapper').find('.help_text').hide();
......@@ -61,7 +61,7 @@ $(document).ready(function(){
mode : "textareas",
width : "284",
height : "140",
theme : "advanced",
theme : "modern",
theme_advanced_toolbar_align : "left",
theme_advanced_toolbar_location : "top",
//theme_advanced_buttons1 : "bold,italic,underline,bullist,numlist,outdent,indent,blockquote,undo,",
......
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