Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Editor development: synchronizing code/wysiwyg

    I am working on a Dreamweaver like editor
    (javascript,php,browser)
    The editor should be fully functional in code-view.
    (inserting/editing tags, code snippets, etc.)
    I am running into this:

    exchanging data from wysiwyg to code view

    form.value = div.innerHTML;

    linebreaks '\n' are lost, or messed up!

    Apparently all wysiwyg-editors(like html-area,spaw)
    have the same problem.

    Anyone out there who has a clue how to keep
    the linebreaks the way they were set?

    Axinya

  • #2
    Regular Coder
    Join Date
    Feb 2003
    Posts
    638
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hmm... ?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •