WordPress.org

Ready to get started?Download WordPress

Forums

Make Code View Default (7 posts)

  1. gammablog
    Member
    Posted 7 years ago #

    The visual editor is a handy thing, and I know how to switch it off in /wp-admin/profile.php. But does anyone know if it is possible to make the code view the default view? So I can toggle to the visual only when I want it. The reason I want this is that the visual editor messes with the code of embedded Flash, Youtube etc. So if I have a Youtube video in a post and want to add a tag or whatever, I have to switch to code and re-copy the embed code from Youtube, arrgh!

  2. mstenzel
    Member
    Posted 7 years ago #

    This is an excellent idea. Since Visual is the view that is giving folks a problem, making Code the default view would be awesome. Makes the more disruptive editor available on an "as needed" basis. (Yes I know that the vid problems stem from bad embed codes, but the reality is that the Visual/YouTube conundrum is a major topic for these fora).

  3. e7
    Member
    Posted 7 years ago #

    Well I don't know how to turn it off, I guess I'll look in the file you provided. There should be an option in the site admin which allows people to select which view they want for the editor as default (visual vs. code)

    I'm not sure why you guys made the visual editor default since after a quick search I see many people are having trouble with it, not just me.

  4. e7
    Member
    Posted 7 years ago #

    Actually I see there is an option under Users > Your Profile which allows you to just turn the thing off.

    Thanks for the info posted here btw.

  5. safetinspector
    Member
    Posted 6 years ago #

    Yeah, but I'd rather default to code and have the visual mode as an option on-the-fly. Although it usually just screws up my manually added tags anyway.

  6. Joni
    Member
    Posted 6 years ago #

    Well, once you turn it off as e7 noted, it's off for all times until you turn it on again. So.. problem solved, no?

  7. mjulson
    Member
    Posted 6 years ago #

    No, it's not solved. Some people want to be able to use the visual editor, even if it's only for 80% of the their posts. The suggested solution of making code view default, instead of visual view, basically allows people to embed the youtube code and if they edit the post(like I'm not doing trying to put tags on my posts), the visual editor won't reformat all of the code and break the youtube video.

    Although, of course, a better solution would be to have an option to surround the link/code with some kind of an identifier that the visual editor just won't touch.

Topic Closed

This topic has been closed to new replies.

About this Topic