Re: Getting the content

  •  04-29-2005, 6:55 AM

    Re: Getting the content

    This sample (http://cutesoft.net/example/dad.html) fails in following case:
     1. Press 'Edit in CuteEditor'
    2. In Kit Child Window HTML editor switch to HTML tab
    3. On PARENT window change the content of textarea
    4. Press Get Parent Data on Kit Child Window
    5. Switch to Normal tab now.

    oops. HTML disappeared :(
     
    Workaround is to check if there is textarea in editdoc.body:
    if(editdoc.body.children.length == 1 && editdoc.body.children[0].tagName=='TEXTAREA')
        //Use editdoc.body.children[0].value instead of editdoc.innerHTML
     
View Complete Thread