Updated Text Editor

Last post 06-24-2009 1:08 AM by tmorton. 1 replies.

Sort Posts:

  • Updated Text Editor

    06-24-2009, 12:26 AM
    • All-Star
      42,319 point All-Star
    • tmorton
    • Member since 08-06-2002, 5:37 PM
    • SE Pennsylvania, USA
    • Posts 7,031
    • ASPInsiders
      Moderator

    Tonight we updated the text editor being used on the site.  We moved from Tiny MCE 2.0 to Tiny MCE 3.0.  Those of you who have chosen the "Standard Editor" or "Advanced Editor" option in your profile should find that the editor toolbar will now appear across all browsers.  (Previously it would only appear in IE and FireFox.)  

    The source code plugin we had been using was not compatible with Tiny MCE 3, so we are now using version 1.5 of Alex Gorbatchev's SyntaxHighlighter.  You will notice some new formatting of source code which is inserted using the "Insert Code" icon in the editor's toolbar.  You will also seem a few options to "view plain", "copy to clipboard", and "print".

    We will probably have a few adjustments to make regarding these additional options, but we were eager to get the Tiny MCE 3 update onto the site so that all browsers could have the RTE experience.

    Tonight's update should address all known issues with the editor experience:

    • No editor toolbar appears in Chrome
    • No editor toolbar appears in Safari
    • No editor toolbar appears in Opera
    • C# with slashes in string is formatted like a comment
    • VB with single quotes in string is formatted like a comment
    • C# with HTML markup in string is not formatted correctly
    • C# generics are not formatted correctly
    • Pound sign (#) in HREF attribute does not appear
    • "expressions )" results in BLOCKED EXPRESSION being displayed
    • Pasting from Word presents Word markup junk as part of the post

    For reference, you can see samples of each of these fixes in this test thread: http://forums.asp.net/t/1437326.aspx

    http://alexgorbatchev.com/wiki/SyntaxHighlighter:Versions
    You aren't missing any core functionality, so if you have it working to your satisfaction and has everything you need, i'd say it's not worth the effort upgrading just the sake of it.

    Please note that this update will not affect the appearance of existing code snippets in forum posts.


    Terri Morton
    ASP.NET Website Manager, Neudesic
  • Re: Updated Text Editor

    06-24-2009, 1:08 AM
    • All-Star
      42,319 point All-Star
    • tmorton
    • Member since 08-06-2002, 5:37 PM
    • SE Pennsylvania, USA
    • Posts 7,031
    • ASPInsiders
      Moderator

    Known issues we have corrected:

    1. Source code formatted as "CSS" does not syntax highlight. (refer Mike's analysis: http://forums.asp.net/p/1437326/3256418.aspx#3256418) (corrected 6/30)
    2. ctrl+k no longer brings up the "insert hyperlink" option (corrected 6/30)
    3. Spellcheck button is missing (used to appear for IE) (corrected 6/30)
    4. Font size in the editor is a bit small (corrected 6/30)
    5. The "Insert code" button is not appearing in Quick Reply (did not appear in the old version, either) (corrected 10/2)
    6. In IE, you need to click into the textbox at the beginning of the first line to see the cursor (corrected 10/2)
    7. Too much tabbing needed to get to the Post button. (corrected 10/2)
    8. review tab index to lessen the number of tabs needed to get to the Post button (corrected 10/2)

    Known issues we need to correct:

    1. C# with /* in string is formatted like a comment (refer code in http://forums.asp.net/t/1439200.aspx)
    2. The source code editor has a typo: "Collapes" should be "Collapse"
    3. Previewing multiple times messes up the inserted coded

    Suggestions we need to look into:

    1. Move to version 2.0 of SyntaxHighlighter. (We are currently using 1.5.)
    2. review the source code checkboxes - possible remove and just use the same options for all users
    3. Ideally "view plain" would no pop a window, but appear inline in the post
    4. html tags that are inserted are uppercase, need to be lowercase

    (note: I am updating this list as issues become known)

    Terri Morton
    ASP.NET Website Manager, Neudesic
Page 1 of 1 (2 items)