EditorBodyStyle only works for first line of text with non-IE browsers.

Last post 07-21-2011, 11:46 AM by bshamblen. 4 replies.
Sort Posts: Previous Next
  •  07-18-2011, 4:44 PM 68594

    EditorBodyStyle only works for first line of text with non-IE browsers.

    I don't see a demo page for the EditorBodyStyle property on your website, so I can't give you steps to reproduce on one of your demos, but this is how I'm able to replicate in Firefox 5, Safari 5.05 and Chome 12.
     
    1) set the EditorBodyStyle property to the following string "font-family:'Comic Sans MS';font-size:14pt;"
    2) Load the CuteEditor and start typing. The first line looks fine. Comic Sans MS with font size 14pt is applied to all text in the first line.
    3) Hit the enter key and keep typing. The second line reverts back to Arial 10pt; The div that wraps around line 2 has no style tag.
  •  07-19-2011, 7:32 AM 68609 in reply to 68594

    Re: EditorBodyStyle only works for first line of text with non-IE browsers.

    Hi bshamblen,
     
    You can find the online demo at http://richtextbox.com/test/EditorBodyStyle.aspx
     
    I just tested on firefox 5 and safari 5, it works on both browsers with the latest version.
     
    Can you download the latest version and try again?
     
    Latest version downloads http://cutesoft.net/downloads/folders/21904/download.aspx
     
    Regards,
     
    Ken
  •  07-20-2011, 6:12 PM 68702 in reply to 68609

    Re: EditorBodyStyle only works for first line of text with non-IE browsers.

    I downloaded the latest version and it appears to have fixed the problem. However, during testing I came across another issue related to the same settings. Using your online demo for the editor body style (http://richtextbox.com/test/EditorBodyStyle.aspx) I entered some text. After entering about 10 words I changed the font size to "Size 5" and entered some more text. The extra text at the end of the first line appeared correctly, with the larger font. I then hit the enter key to bring the cursor down to the next line and I entered some more text. The font size reverted back to the default that was applied in the EditorBodyStyle. It did not remember the size that I had applied at the end of the previous line. Is this behavior intentional? If this is intentional, is there a way to force the editor to remember the last font size/font family that was selected and not revert back to the default when hitting the enter key? 
     
    Thanks for your help. 
  •  07-21-2011, 10:05 AM 68722 in reply to 68702

    Re: EditorBodyStyle only works for first line of text with non-IE browsers.

    Hi bshamblen,
     
    yes, it is the design. For now, we have not provide a property to switch it. I will write down your requirement and report to our development team. Sorry for your inconvenience.
     
    Regards,
     
    ken
  •  07-21-2011, 11:46 AM 68731 in reply to 68722

    Re: EditorBodyStyle only works for first line of text with non-IE browsers.

    Sorry again, but I found another issue, this time with IE9. I'm not sure if this issue applies to IE8 or IE7. Using your sample page for the DefaultFontStyle use these replication steps: 
    1. Use IE9 to go to http://richtextbox.com/test/EditorBodyStyle.aspx
    2. Start typing some text, but don't hit the enter key.
    3. Without highlighting anything change the font by clicking the drop down that says "Default Font" to "Impact".
    4. Notice that all of the existing text that's already been entered changes from the default font to the new font.
    5. Type some more text with "Impact" selected in the drop down,
    6. Again, without highlighting any text, change the font again to "Georgia".
    7. Notice that the entire line changes from Imact to Georgia.

    If I repeat the same steps using Firefox, Safari or Chrome the existing text does not change when I select a differnet font.

View as RSS news feed in XML