josephtklein / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
GNU General Public License v2.0
0 stars 0 forks source link

jWYSIWYG in a Dialog Fails After 1st Iteration #196

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a jQueryUI dialog that instantiates it's own jWYSIWYG field
2. Open the dialog, then close the dialog
3. Open the dialog again

What is the expected output? What do you see instead?
Expected: to get a new, fresh, and empty jWYSIWYG field in the dialog every 
time.
Actual: Everything works correctly the first time, but jWYSIWYG does not apply 
itself to the textarea after the first run through the dialog.

What version of the product are you using? On what operating system?
Using latest (as of yesterday) jWYSIWYG version 0.92.  Problem persists in 
Chrome/FF/IE on Windows 7.

Please provide any additional information below.
I'm following an earlier suggestion from this Issues list to call x.wysiwyg() 
as part of the dialog's open function. Likewise, I call the destroy method for 
the wysiwyg field each time the dialog is closed.  I've built an example at 
http://www.keithbartholomew.com/jwysiwyg/

Original issue reported on code.google.com by keith.ba...@gmail.com on 30 Jun 2010 at 2:00

GoogleCodeExporter commented 9 years ago
Thanks for example, will be reviewed.

Original comment by akzhan.a...@gmail.com on 3 Jul 2010 at 9:24

GoogleCodeExporter commented 9 years ago
I had this problem.
On dialog close, try destroying the wysiwyg. $('#mytextarea').remove()

Original comment by williams...@googlemail.com on 23 Jul 2010 at 4:42

GoogleCodeExporter commented 9 years ago
I also hand this problem.

Original comment by wschac...@gmail.com on 7 Sep 2010 at 7:56