Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Crappy article editor :(

Crappy article editor :(

Scheduled Pinned Locked Moved Site Bugs / Suggestions
htmlquestion
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jgauffin
    wrote on last edited by
    #1

    I've just written my second article in a long time and the article editor is giving me nightmares X| I'm sorry for being so blunt. But after spending most of my time in text editors (simple HTML / markdown) it's really hard to get a good structure with your editor. My last article (submitted for editors) looked nice when I wrote it and saved it. But now the code syntax is wierd and many of my paragraphs have been merged into a single one. Can't you please add an alternative editor or just add support for markdown (i.e. a simple textarea which will convert markdown to HTML when submitted)? I don't think that I'll write another article if I have to use the current editor or upload CP formatted HTML. All you'll get is just tech blog entries from me. //A sad user whos article got deformatted by your editor.

    C N 2 Replies Last reply
    0
    • J jgauffin

      I've just written my second article in a long time and the article editor is giving me nightmares X| I'm sorry for being so blunt. But after spending most of my time in text editors (simple HTML / markdown) it's really hard to get a good structure with your editor. My last article (submitted for editors) looked nice when I wrote it and saved it. But now the code syntax is wierd and many of my paragraphs have been merged into a single one. Can't you please add an alternative editor or just add support for markdown (i.e. a simple textarea which will convert markdown to HTML when submitted)? I don't think that I'll write another article if I have to use the current editor or upload CP formatted HTML. All you'll get is just tech blog entries from me. //A sad user whos article got deformatted by your editor.

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      You have the option of hitting the "HTML" button at the far right of the editor toolbar to get you into straight HTML mode. Which article? If you wish you can send me your HTML and I'll try posting to see what's going on. Anything specific? As to Markdown, we've been toying with that.

      cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

      J 2 Replies Last reply
      0
      • C Chris Maunder

        You have the option of hitting the "HTML" button at the far right of the editor toolbar to get you into straight HTML mode. Which article? If you wish you can send me your HTML and I'll try posting to see what's going on. Anything specific? As to Markdown, we've been toying with that.

        cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

        J Offline
        J Offline
        jgauffin
        wrote on last edited by
        #3

        It's my Griffin.Networking article. As for markdown: Feel free to use my griffin.editor (markdown editor) which I present here: http://blog.gauffin.org/2012/02/introducing-griffin-editor-a-jquery-textarea-plugin/[^] You can also check my (in development, but working) .NET wiki engine: https://github.com/jgauffin/griffin.wiki[^]. It has a working parser.

        C 1 Reply Last reply
        0
        • C Chris Maunder

          You have the option of hitting the "HTML" button at the far right of the editor toolbar to get you into straight HTML mode. Which article? If you wish you can send me your HTML and I'll try posting to see what's going on. Anything specific? As to Markdown, we've been toying with that.

          cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

          J Offline
          J Offline
          jgauffin
          wrote on last edited by
          #4

          I took me another four edits before everything looks OK again. http://www.codeproject.com/script/Articles/ArticleVersion.aspx?awid=11334&aid=367633[^]

          1 Reply Last reply
          0
          • J jgauffin

            I've just written my second article in a long time and the article editor is giving me nightmares X| I'm sorry for being so blunt. But after spending most of my time in text editors (simple HTML / markdown) it's really hard to get a good structure with your editor. My last article (submitted for editors) looked nice when I wrote it and saved it. But now the code syntax is wierd and many of my paragraphs have been merged into a single one. Can't you please add an alternative editor or just add support for markdown (i.e. a simple textarea which will convert markdown to HTML when submitted)? I don't think that I'll write another article if I have to use the current editor or upload CP formatted HTML. All you'll get is just tech blog entries from me. //A sad user whos article got deformatted by your editor.

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #5

            Just use HTML edit-mode and check the leave-my-HTML-alone checkbox. And you should be good.

            Regards, Nish


            My technology blog: voidnish.wordpress.com

            S 1 Reply Last reply
            0
            • J jgauffin

              It's my Griffin.Networking article. As for markdown: Feel free to use my griffin.editor (markdown editor) which I present here: http://blog.gauffin.org/2012/02/introducing-griffin-editor-a-jquery-textarea-plugin/[^] You can also check my (in development, but working) .NET wiki engine: https://github.com/jgauffin/griffin.wiki[^]. It has a working parser.

              C Offline
              C Offline
              Chris Maunder
              wrote on last edited by
              #6

              I've seen a few Markdown editors and it's great to see you've packaged up one so neatly. I want to extend the idea, though, and not simply have a Markdown editor with preview, but a true WYSIWYG markdown editor. The only hurdle we're facing, since we have the code to handle all the switching between the built in browser's WYSIWYG editor and a HTML-only mode is converting HTML to Markdown. Our current editor, when you switch from WYSIWYG to HTML mode takes the HTML from the browser's editor and places it in a Textarea. Simple. To make a Markdown WYSIWYG editor all we need is to take that HTML and convert it to Markdown via javascript. The most promising candidate I've seen so far (quick look, zero investigation) is http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown[^]. The biggest issue seems to be with webKit processing of XSLT. the jQuery transform plugin looks like it would be great - except that the jQuery.com SNAFU that resulted in all plugin's being lost means I can't find a copy of the plugin file (though I'm sure there are tons of copies lying around)

              cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

              J 1 Reply Last reply
              0
              • C Chris Maunder

                I've seen a few Markdown editors and it's great to see you've packaged up one so neatly. I want to extend the idea, though, and not simply have a Markdown editor with preview, but a true WYSIWYG markdown editor. The only hurdle we're facing, since we have the code to handle all the switching between the built in browser's WYSIWYG editor and a HTML-only mode is converting HTML to Markdown. Our current editor, when you switch from WYSIWYG to HTML mode takes the HTML from the browser's editor and places it in a Textarea. Simple. To make a Markdown WYSIWYG editor all we need is to take that HTML and convert it to Markdown via javascript. The most promising candidate I've seen so far (quick look, zero investigation) is http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown[^]. The biggest issue seems to be with webKit processing of XSLT. the jQuery transform plugin looks like it would be great - except that the jQuery.com SNAFU that resulted in all plugin's being lost means I can't find a copy of the plugin file (though I'm sure there are tons of copies lying around)

                cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                J Offline
                J Offline
                jgauffin
                wrote on last edited by
                #7

                Markdown and similar formatting languages are typically referred to as WYSIWYM[^]. Hence it would, imho, defeat the purpose to use Markdown if you wrap it in a WYSIWYG editor. Users which see the markdown option would expect to get a syntax aid toolbar (contra a formatting toolbar) and not a fully blown editor which hides the markdown. I would humbly ask you to at least do a poll before choosing to go down that path. Trying to convert existing HTML to Markdown is nothing I've done. I always save the unmodified text in one column and the generated HTML in another.

                C 1 Reply Last reply
                0
                • N Nish Nishant

                  Just use HTML edit-mode and check the leave-my-HTML-alone checkbox. And you should be good.

                  Regards, Nish


                  My technology blog: voidnish.wordpress.com

                  S Offline
                  S Offline
                  Sergey Alexandrovich Kryukov
                  wrote on last edited by
                  #8

                  Good idea. I have a different idea which works good for me. Do some basic WYSIWYG editing and switch to HTML-only mode, just to have some samples of the code and see what markup and classes are used. Using the samples obtained, copy them to an editor of your liking. For example, I either use my own plain-text editor with HTML (or other) plug-ins or Visual Studio HTML editor. Complete the article. Check it up with your browser. Start CodeProject submission process again, go to the HTML-only mode and copy/paste all your HTML to the CodeProject editor window, all at once. Check up the submitted article with you browser as it appears on CodeProject Web site. I had some problem with my very first article, but by the moment I wanted to publish my second one, I came to this procedure which never let me down ever since. :-) Good luck,

                  —SA

                  P.S.: Nish, sorry that I put it in reply to your comment. Of course this post is mostly for OP.

                  Sergey A Kryukov

                  1 Reply Last reply
                  0
                  • J jgauffin

                    Markdown and similar formatting languages are typically referred to as WYSIWYM[^]. Hence it would, imho, defeat the purpose to use Markdown if you wrap it in a WYSIWYG editor. Users which see the markdown option would expect to get a syntax aid toolbar (contra a formatting toolbar) and not a fully blown editor which hides the markdown. I would humbly ask you to at least do a poll before choosing to go down that path. Trying to convert existing HTML to Markdown is nothing I've done. I always save the unmodified text in one column and the generated HTML in another.

                    C Offline
                    C Offline
                    Chris Maunder
                    wrote on last edited by
                    #9

                    I would always provide a formatting toolbar and a Markdown-view in the editor. It would never be a WYSIWY(G|M)-only option.

                    cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups