I am trying to integrate the editor editor into a CCP form, which is linked to the editor, I Trying to hand code and it was not working, so I tried manually. So- I have attached a listener to Editor Start (a copy-paste from the yui site, name only changed): Initial task is fine (I believe) because the editor now holds the actual content of that record field. The first alert is working, so the event is operated. However, the second is never alert - the form - in any way - is presented before and, the material is not saved. Further investigation shows that submitting any call to my editor [even alert (my editor)] ... Anyone ? help? I There is only one estimate, but there is any code in the 'saveHTML' function that is with the KPPP Does the conflict function? If this is the problem, you can get around it by modifying the yui code function names (I know that hackkey, but unless there is no way to use custom namespace for it, I think you get stuck with it) onsubmit , which is working .. or not.
(function () {// Setup some private variable var dom = YAHOO.util.Dom, Event = YAHOO.util.Event; // SimpleEditor config var myConfig = {height: '300px', width: '99%', FocusAutStart: true}; // Load simple editors now. Var myEditor = New yahoo.widget.SimpleEditor ('ArticleContent', myConfig); myEditor.render ();}) ();
onsubmit listener function:
function setTextArea () {alert ('s'); Var dd = myEditor.saveHTML (); Warning ('p'); return false; }
Comments
Post a Comment