How can WYMeditor and Jquery UI Dialog work together -


In my modal dialog, when I'm editing with WYMeditor, I want to click on the OK button and update it I am doing text area I do not see any examples how to use it with the Jquery UI model dialogue, so I stuck in a way.

Until I know the example, I can set it this way.

$ ('#contcontcontent') Wymeditor ();

var wym = WYMeditor.INSTANCES [0];

  $ ('#information'). Dialog ({button: {OK: work} {wym.update (); (new) = $ ('# edit' communication). Val (); $ (this) .dialog ("off");}, canceled Do: function () {$ (this) .dialog ("close");}}, close: function () {// $ (this) .dialog ("off");}});   

seems to work ... in the end.

Comments