taoguan / jwysiwyg

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

Multiple instances occuring within jquery ui dialog, destroy method doesn't work... #180

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create instance in jquery ui dialog with instance of wysiwyg
2. Close dialog
3. Open same dialog again, you have now two wysiwyg instances
4. Every time you close/open dialog you'll have +1 new wysiwyg instance.

What is the expected output? What do you see instead?
I would expect only one instance of wysiwyg on same div element.

What version of the product are you using? On what operating system?
jquery-1.4.2.min.js
jquery-ui-1.8.custom.min.js
jquery.wysiwyg.js (Version 0.8)

Please provide any additional information below.
Easy fix:

$("#mydialog").dialog({
    open: function(){
    $('#testarea').wysiwyg();
    },
    buttons: {  "Cancel": function() {
    $('.wysiwyg').remove();
    $(this).dialog("close");
    ......
    ......
    ......
});

Original issue reported on code.google.com by jedin...@gmail.com on 29 Apr 2010 at 9:34

GoogleCodeExporter commented 8 years ago
Will be refactored in 0.9.

Original comment by akzhan.a...@gmail.com on 6 May 2010 at 9:14

GoogleCodeExporter commented 8 years ago
Is problem persists in release 0.92 from 
http://github.com/akzhan/jwysiwyg/downloads ?

Original comment by akzhan.a...@gmail.com on 28 Jun 2010 at 12:40

GoogleCodeExporter commented 8 years ago
yes

Original comment by wschac...@gmail.com on 6 Sep 2010 at 9:16