taoguan / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

jWYSIWYG on textarea in hidden field problem #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In IE jWYSIWYG is not working properly on a textarea which is inside a
hidden div which opened by using slideToggle().
2. I also tried to call the jWYSIWYG function after the slideToggle but
then there appears a new jWYSIWYG textarea by each click.

What version of the product are you using? On what operating system?
0.4 & 0.5 -> same problem

Please provide any additional information below.
$(document).ready(function() {
    showEditbox();
    wysiwyg();
});
function showEditbox(){
    $('#editbox').hide();
    $('#add').click(function(){
        $('#editbox').slideToggle();
    });
}
function wysiwyg(){
    $('#sContent').wysiwyg({
        controls : {
            separator04 : { visible : true },
            separator06 : { visible : false },
            separator08 : { visible : false },
            insertOrderedList : { visible : true },
            insertUnorderedList : { visible : true },
            h1 : { visible : false },
            h2 : { visible : false },
            h3 : { visible : false },
            h1mozilla : { visible : false },
            h2mozilla : { visible : false },
            h3mozilla : { visible : false },
            increaseFontSize : { visible : false },
            decreaseFontSize : { visible : false }
        }
    }); 
}

Original issue reported on code.google.com by koenrom...@gmail.com on 17 Apr 2009 at 6:08

GoogleCodeExporter commented 8 years ago
I am having the same problem too in Firefox 3...

I have a hidden panel, and then I call wysiwyg() after the panel is shown... the
result is two wysiwyg editors isntead of just one!

Original comment by elijah.m...@gmail.com on 30 Apr 2009 at 4:26

GoogleCodeExporter commented 8 years ago
Attach sample of bug with trubk version.

Original comment by akzhan.a...@gmail.com on 9 Dec 2009 at 9:23

GoogleCodeExporter commented 8 years ago
Is it reproduced with http://github.com/akzhan/jwysiwyg ?

Original comment by akzhan.a...@gmail.com on 7 Apr 2010 at 4:36

GoogleCodeExporter commented 8 years ago
Yes, this issue is reproducible in the git master branch.
A jwysiwyg object that is inside a hidden div and revealed
with any of the jquery UI effects is broken.

Original comment by ryan....@gmail.com on 25 Sep 2010 at 9:21

GoogleCodeExporter commented 8 years ago
This is still an issue in master branch.

A workaround is to
call wysiwyg() in the animation's callback when the element is made visible.
You must also call wysiwyg('destroy')  if you hide a containing element, and 
call wysiwyg() anew if the user toggles it visible again.

Original comment by ryan....@gmail.com on 1 Sep 2011 at 10:04