Loading ...
Sorry, an error occurred while loading the content.

Re: Spry and Simple Editor

Expand Messages
  • c_jazinski
    Thanks for the response. Your solution worked like a champ. ... showing ... the ... onsubmit ... your ... it s ... to ... to ... exsisting ... i ... link ...
    Message 1 of 5 , Oct 3, 2008
    • 0 Attachment
      Thanks for the response. Your solution worked like a champ.

      --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...>
      wrote:
      >
      >
      > c_jazinski --
      >
      > You need to remove the var from the myYUI variable and change your
      doAJAXEdit like this:
      >
      > function doAJAXEdit() {
      > var mySummary = document.getElementById('editSummary').value;
      > var mySolution = myYUI.saveHTML();
      >
      > That will save out the editor HTML and allow you to use it..
      >
      > Dav
      >
      >
      > Dav Glass
      > dav.glass@...
      > blog.davglass.com
      >
      >
      >
      >
      > + Windows: n. - The most successful computer virus, ever. +
      > + A computer without a Microsoft operating system is like a dog
      > without bricks tied to its head +
      > + A Microsoft Certified Systems Engineer is to computing what a
      > McDonalds Certified Food Specialist is to fine cuisine +
      >
      >
      >
      > ----- Original Message ----
      > > From: c_jazinski <chris@...>
      > > To: ydn-javascript@yahoogroups.com
      > > Sent: Friday, October 3, 2008 9:20:53 AM
      > > Subject: [ydn-javascript] Re: Spry and Simple Editor
      > >
      > > First thank you for your post.
      > >
      > > Code: http://pastebin.com/m57b31492 Lines 197-251
      > >
      > > If i used that setEditorHtml() it will load the spry data, then
      > > change to whatever string i type in. then on submit i'm still
      showing
      > > the spry data not the updated data.. either stuff i typed in or
      the
      > > string i supplied in setEditorHTML(). i know the form has an
      onsubmit
      > > and i'm also using an onclick for the button, thish was just me
      > > debuging... i only have saveHTML on the submit. Thanks for all
      your
      > > help.
      > >
      > >
      > >
      > > --- In ydn-javascript@yahoogroups.com, Dav Glass
      > > wrote:
      > > >
      > > >
      > > > c_jazinski --
      > > >
      > > > Can I see the code you are using to load data into the Editor?
      > > >
      > > > It sounds like you are trying to add data to the Editor before
      it's
      > > ready.
      > > >
      > > > You can try listening for the editorContentLoaded event, like
      this:
      > > >
      > > > var myEditor = new YAHOO.widget.Editor('editor', { // });
      > > > myEditor.on('editorContentLoaded', function() {
      > > > myEditor.setEditorHTML('This is my new content');
      > > > });
      > > > myEditor.render();
      > > >
      > > > Dav
      > > >
      > > >
      > > > Dav Glass
      > > > dav.glass@
      > > > blog.davglass.com
      > > >
      > > >
      > > >
      > > >
      > > > + Windows: n. - The most successful computer virus, ever. +
      > > > + A computer without a Microsoft operating system is like a dog
      > > > without bricks tied to its head +
      > > > + A Microsoft Certified Systems Engineer is to computing what a
      > > > McDonalds Certified Food Specialist is to fine cuisine +
      > > >
      > > >
      > > >
      > > > ----- Original Message ----
      > > > > From: c_jazinski
      > > > > To: ydn-javascript@yahoogroups.com
      > > > > Sent: Friday, October 3, 2008 8:10:53 AM
      > > > > Subject: [ydn-javascript] Spry and Simple Editor
      > > > >
      > > > > I have a bit of an issue. I am using Coldfusion and Spry to
      > > display
      > > > > some data (dataset is JSON coming from a cfm page). I am able
      to
      > > use
      > > > > the editor and everything works fine. however if when i went
      to
      > > > > implement an edit for the editor (i want users to edit
      exsisting
      > > > > entries) the value of my editEditor doesn't get passed in. if
      i
      > > call
      > > > > saveHTML() or cleanHTML() as suggested in a random google
      link
      > > that i
      > > > > found i get this._getDoc().body blah blah is either null or
      not
      > > an
      > > > > object (as the js error). Again the editor works fine if i'm
      not
      > > > > populating any data within its form from a spry dataset.
      Thanks
      > > for all
      > > > > the help
      > > > >
      > > > >
      > > > > ------------------------------------
      > > > >
      > > > > Yahoo! Groups Links
      > > > >
      > > > >
      > > > >
      > > >
      > >
      > >
      > >
      > > ------------------------------------
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.