WordPress.org

Ready to get started?Download WordPress

Forums

HTML editor in 2.2? (16 posts)

  1. psunate1977
    Member
    Posted 7 years ago #

    I had this in 2.0, bu8t finally updated and now I have a tab called code and visual when I write a post.

    How can I get the HTML button back?

    I did check the visual rich ediotr button in my profile and nothing.

    Thanks

  2. Chris_K
    Member
    Posted 7 years ago #

    Err, html = code.

  3. psunate1977
    Member
    Posted 7 years ago #

    what

  4. Chris_K
    Member
    Posted 7 years ago #

    Using the "Code" tab is just like using the old "html" button.

  5. psunate1977
    Member
    Posted 7 years ago #

    No it's not at all.

  6. Chris_K
    Member
    Posted 7 years ago #

    I was remembering them as the same, just that one was in a popup dialog and the other is in a tab. But moving on...

    Perhaps you'll want to just disable the tabbed editor?

    Users -> Your Profile, uncheck the top box.

    That's the "classic" editor.

  7. SaltwaterC
    Member
    Posted 7 years ago #

    It's a TinyMCE thingy. The editor has built in a HTML editor, which has been turned off from the JavaScript configuration script. In a alternative way, TinyMCE can be turned on/off for a textarea, so this is what the Visual/Code buttons does: toggles on/off the rich text editor. In order to turn back on the HTML editor, search the following file: /wp-includes/js/tinymce/tiny_mce_config.php, search the $mce_buttons variable and add there a new value 'code' to the array parsed by the apply_filters(); function.

    Example:
    Default array: http://wordpress.pastebin.ca/586139
    Pimped array: http://wordpress.pastebin.ca/586144

    You can see a new 'code' value in the array - that places the 'HTML' item in the editor's bar at the end of the button list. You can control where to place the button, by inserting the 'code' value somewhere inside the array.

  8. LordAvon
    Member
    Posted 7 years ago #

    I have the same problem, try and put in any html (like P and BR tags) and the editor strips them out.

    So, I did as saltwater said, still no 'HTML' button.
    I tried putting 'code' into different places in the menu, no difference.

    I must say, the removal of HTML tags is a *REAL* step backwards IMHO, it was great to be able to put in text and type away, then go into the html and make tweaks.

    It's frustrating that WP has been 'dumbed down'.

    Please tell us how to get the html back.

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Look up one post and read and you'll find your answer.

  10. Parfvin
    Member
    Posted 6 years ago #

    I added the item in the array and got the tool back. Thanks!

  11. SaltwaterC
    Member
    Posted 6 years ago #

    @LordAvon: something is wrong into your configuration or the editor is still cached by the browser.

    Anyway, TinyMCE is very configurable. You can add lots of plugins to it, plugins that are included into the default distribution package, and create the interface that you like.

    Links:
    http://tinymce.moxiecode.com/download.php - official distribution packages
    http://wiki.moxiecode.com/index.php/TinyMCE:Index - official documentation
    http://img233.imageshack.us/img233/7007/picture1uw9.png - my pimped setup with some extra plugins as example

  12. webhombretom
    Member
    Posted 6 years ago #

    I've tried adding 'code' into the array and it did not work for me either.

  13. minute44
    Member
    Posted 6 years ago #

    I don't think it has been dumbed down at all. I perfer the Code tab to the old HTML one. It seems better at helping you maintain web standards.

  14. webhombretom
    Member
    Posted 6 years ago #

    The absence of a visual interface maybe not make a difference to a coder, but to anyone else it pretty much makes it useless. It's a huge step backward. I've spent three hours now researching fixes with no success. I had planned on installing this for many clients, but so glad I haven't yet. I'd be in deep doodoo.

  15. moshu
    Member
    Posted 6 years ago #

    I had planned on installing this for many clients, but so glad I haven't yet. I'd be in deep doodoo.

    To be honest... had you installed the wysiwyg animal for your your clients - they would be in a really deep doodoo :)
    They all tend to copy/paste from MS Word and that's the real screw up for any blog. You don't have thta much time to clean up all that garbage in their posts!
    Don't even install it or delete it and never tell them there is a wysiwyg thing. They will learn to click on the quicktags and will be happy campers: even when copying from their "favourite" word processor they won't be able to get the garbage into the posts.

    As for special formatting: usually, they don't need more than 3-4 things (besides the existing Quikctags), so I just create for them those buttons in the quicktags.js file and everybody is happy.

    just my $0.02

  16. webhombretom
    Member
    Posted 6 years ago #

    Yeah, that's why I paste into notepad first. But anyhow, for those of you who've had the same problem, here's what I finally found worked for me: http://wordpress.org/extend/plugins/fckeditor-for-wordpress-plugin/

    I simply uploaded the plugin and activated it and it actually worked. Uggh! Now back to paying jobs.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.