Results 1 to 4 of 4

Thread: nBit HTML editor problem

  1. #1
    Join Date
    Feb 2009
    Posts
    5,468

    Default nBit HTML editor problem

    Hi All

    I know a few of you use the nBit HTML editor control and wonder if you could
    help with this problem

    if you put an "&" in the text you correctly get & in the source view

    However if you put things like pound signs or copyright symbols they show in
    the source mode as that character ie £ not £

    If you type £ or £ in the source view it correctly displays in
    HTML view but when you switch back it is a single character ie £

    This is causing my proplems when I come to use the source as it is not
    proper HTML

    Has anyone else had this sort of problem ? I suppose I may have to do my own
    subsitutions but this seems messy

    Thanks

    Andrew



  2. #2
    Join Date
    Feb 2009
    Location
    Adelaide, South Australia
    Posts
    2,863

    Default Re: nBit HTML editor problem

    Hi Andrew,

    I noticed you did not have a reply yet.

    Yes we use it (although it is not in production yet), but have not come
    across this problem.

    Cheers,
    Marco


    Andrew Kennard wrote:
    > Hi All
    >
    > I know a few of you use the nBit HTML editor control and wonder if you could
    > help with this problem
    >
    > if you put an "&" in the text you correctly get & in the source view
    >
    > However if you put things like pound signs or copyright symbols they show in
    > the source mode as that character ie £ not £
    >
    > If you type £ or £ in the source view it correctly displays in
    > HTML view but when you switch back it is a single character ie £
    >
    > This is causing my proplems when I come to use the source as it is not
    > proper HTML
    >
    > Has anyone else had this sort of problem ? I suppose I may have to do my own
    > subsitutions but this seems messy
    >
    > Thanks
    >
    > Andrew
    >
    >


  3. #3
    Join Date
    Feb 2009
    Posts
    5,468

    Default Re: nBit HTML editor problem

    Hi Marco

    Thanks for noticing me !

    I think there is only one version of the control as it has not cahnged for
    ages.

    Have you tried it on your version ?

    Cheers

    Andrew

    "Marco Kuipers" <marco.kuipers@nci.com.au> wrote in message
    news:R$uSPnewIHA.1984@dacmail.dataaccess.com...
    > Hi Andrew,
    >
    > I noticed you did not have a reply yet.
    >
    > Yes we use it (although it is not in production yet), but have not come
    > across this problem.
    >
    > Cheers,
    > Marco
    >
    >
    > Andrew Kennard wrote:
    >> Hi All
    >>
    >> I know a few of you use the nBit HTML editor control and wonder if you
    >> could help with this problem
    >>
    >> if you put an "&" in the text you correctly get &amp; in the source view
    >>
    >> However if you put things like pound signs or copyright symbols they show
    >> in the source mode as that character ie £ not &pound;
    >>
    >> If you type &pound; or &#163; in the source view it correctly displays in
    >> HTML view but when you switch back it is a single character ie £
    >>
    >> This is causing my proplems when I come to use the source as it is not
    >> proper HTML
    >>
    >> Has anyone else had this sort of problem ? I suppose I may have to do my
    >> own subsitutions but this seems messy
    >>
    >> Thanks
    >>
    >> Andrew
    >>



  4. #4
    Join Date
    Feb 2009
    Posts
    5,468

    Default Re: nBit HTML editor problem

    For now i've put this sticking plaster code in my "BeforeSave" procedure

    Get ComAllHTML of oComHTMLed to sHTMLText
    If (pos(character(156),sHTMLText)>0) Move
    (replaces(character(156),sHTMLText,"&pound;")) to sHTMLText

    Don't like it but it does the trick !


    "Marco Kuipers" <marco.kuipers@nci.com.au> wrote in message
    news:R$uSPnewIHA.1984@dacmail.dataaccess.com...
    > Hi Andrew,
    >
    > I noticed you did not have a reply yet.
    >
    > Yes we use it (although it is not in production yet), but have not come
    > across this problem.
    >
    > Cheers,
    > Marco
    >
    >
    > Andrew Kennard wrote:
    >> Hi All
    >>
    >> I know a few of you use the nBit HTML editor control and wonder if you
    >> could help with this problem
    >>
    >> if you put an "&" in the text you correctly get &amp; in the source view
    >>
    >> However if you put things like pound signs or copyright symbols they show
    >> in the source mode as that character ie £ not &pound;
    >>
    >> If you type &pound; or &#163; in the source view it correctly displays in
    >> HTML view but when you switch back it is a single character ie £
    >>
    >> This is causing my proplems when I come to use the source as it is not
    >> proper HTML
    >>
    >> Has anyone else had this sort of problem ? I suppose I may have to do my
    >> own subsitutions but this seems messy
    >>
    >> Thanks
    >>
    >> Andrew
    >>



Similar Threads

  1. nBit or another HTML Editor class
    By Marco in forum Windows Applications
    Replies: 5
    Last Post: 16-Aug-2019, 09:42 AM
  2. HTML Editor
    By ApplauseBoston in forum Windows Applications
    Replies: 5
    Last Post: 18-Dec-2007, 12:30 AM
  3. nBit HtmlViewer problem on exit
    By Mike Cooper in forum Windows Applications
    Replies: 18
    Last Post: 2-Aug-2007, 07:38 AM
  4. nbit HTML editor
    By Focus in forum Windows Applications
    Replies: 1
    Last Post: 5-Jun-2007, 10:11 AM
  5. nBit OCX problem
    By Andrew Kennard in forum Windows Applications
    Replies: 2
    Last Post: 25-Feb-2007, 09:26 AM

Posting Permissions

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