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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2003
    Posts
    565
    Thanks
    0
    Thanked 0 Times in 0 Posts

    htmlArea: getting rid of the <font> tags.

    Hi

    I have been asked to add an editor to a website. I have chosen to use htmlArea, which looks quite good. Unfortunately, it outputs the longer wanted <font> tag to manage different fonts.
    I was wondering if some people would have the kindness and the patience to help me modify the source code in order to get rid of these tags (I think that a <span> would do a better job).
    Could anyone point out where the code should be edited? That would be great. The source is quite lengthy, but for the sake of my question, I have attached it in its totality.

    Thanks in advance for your help.
    Attached Files Attached Files

  • #2
    fci
    fci is offline
    Senior Coder
    Join Date
    Aug 2004
    Location
    Twin Cities
    Posts
    1,345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would recommend asking at the htmlArea forum...

    I know in Mozilla you can modify the setting by doing something similar to this(might not be applicable for htmlArea):
    Code:
    document.getElementById('edit').contentWindow.document.execCommand("useCSS", false, !(source));
    // from src @ midas demo

  • #3
    Regular Coder
    Join Date
    Aug 2003
    Posts
    565
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for your reply

    good idea, I will wait to see what happens with this thread and then I might ask at the html Area foru.


  •  

    Posting Permissions

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