WordPress.org

Ready to get started?Download WordPress

Forums

lost quicktags in admin panel (21 posts)

  1. oncidium
    Member
    Posted 9 years ago #

    Hi all,

    I have been adding/changing various things in my admin files (mainly to add wp_grins). I got the smilies working fine...edited the vars file to I have many more, but I lost the quicktags box that was on the page when you go to write a post. The link "quicktags" that points to wordpress.org is still there, but not the clickable quicktags box. I looked at the edit-form and edit-form-advanced (noteven sure this is where I should be looking) and found where I put in the wp grins code. The quicktags code is right above it so I changed a couple of things and tested, but still can't get the quicktags box back. The quicktags.js file is in there so I know that isn't it. Help please?

    Thank you!

  2. oriecat
    Member
    Posted 9 years ago #

    I'm having the same problem now, did you get this figured out? I upgraded last week, so I went to quicktags.js to add the wp-grins tag back in, and then all of the quicktags disappeared. I have deleted the wp-grins tag, and still nothing. I even deleted the file and reuploaded the one from the download and still no quicktags.

  3. tomm10
    Member
    Posted 8 years ago #

    I've been searching for an answer to this as well. Do you have to just give up the quicktags if you want the clickable smilies?

  4. Mark (podz)
    Support Maven
    Posted 8 years ago #

  5. tomm10
    Member
    Posted 8 years ago #

    Followed those instructions exactly, podz. I still get just the smilies and the link to the WordPress quicktag glossary but my standard quicktags are gone now.

  6. Mark (podz)
    Support Maven
    Posted 8 years ago #

    I just tried and it works.
    Line 585 onwards.
    wp-admin/admin-functions.php
    <script type="text/javascript">edToolbar();</script>
    ';
    if (function_exists("wp_grins")) { echo ""; wp_grins(); }
    echo '</div>';
    endif;
    }

  7. tomm10
    Member
    Posted 8 years ago #

    I copied and pasted that exactly and got now change (I cleared cache and refreshed). I followed the instructions in the link you posted but didn't do anything else. Am I missing something else? It seems as though I've done exactly what is recommended for the coment.php file and the admin-functions.php file. I've done nothing to the quicktags.js file though.

  8. Mark (podz)
    Support Maven
    Posted 8 years ago #

    You don't touch the quicktags.js for smilies to work.
    I'm running 1.5.2 and I don't use smilies in the admin, but I did what I posted above and now I see them.
    Try a new admin-functions.php file ?

  9. tomm10
    Member
    Posted 8 years ago #

    I just replaced the admin-functions.php file and then changed out only the lines you posted. Smilies come up fine but still no quicktag buttons.

    Even if I deactivate the wp-grins plugin, the quicktag buttons don't come back. Since being able to shortcut html tags is more uesful than clickable smilies I may have to just eradicate the wp-grins all together if I can't figure out a way to get both of them there together.

  10. oriecat
    Member
    Posted 8 years ago #

    I finally got mine working again, but I don't recall how. Did you replace your quicktags with a new one?

  11. Mark (podz)
    Support Maven
    Posted 8 years ago #

    tomm10 - did you have quicktags before ? daft q I know, but you don't mention it.

  12. tomm10
    Member
    Posted 8 years ago #

    Not a daft question at all. Sort of akin to "Is the computer plugged in?" plenty have made the mistake!

    I did have them before. That's what's strange. Somehow it seems that the code required to place the smilies in overrides the quicktags so that the won't show up even when wp-grins is inactive.

    oriecat, did you mess with the code in the admin-functions.php to get the quicktags back?

  13. tomm10
    Member
    Posted 8 years ago #

    Well, despite my clearing the cache and restarting the browser it appears that the problem is solved after a restart. When I got home and logged on the quicktag icons showed up in my browser window.

    Thanks for the help everyone!

  14. oriecat
    Member
    Posted 8 years ago #

    Yeah, seems like mine sorted of fixed itself like that too. Weird huh? :)

  15. tomm10
    Member
    Posted 8 years ago #

    Funny, my work pc still shows it without the quicktags but they're there at home. I give up. Its black magic ;)

  16. Mark (podz)
    Support Maven
    Posted 8 years ago #

    What browsers ?

  17. tomm10
    Member
    Posted 8 years ago #

    Both Firefox. Same version.

  18. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Javascript switched off in the first one maybe ?
    The keyboard controls should be okay though I would hope.

  19. tomm10
    Member
    Posted 8 years ago #

    I get the two errors below on the JavaScript Concole of Firefox here at wokr when I access the Write Panel in the Admin area

    Error: syntax error
    Source File: http://www.tomandjaime.com/blog/wp-admin/quicktags.js
    Line: 379, Column: 2
    Source Code:
    (<?php wp_grins(); ?>)

    Error: edToolbar is not defined
    Source File: http://www.tomandjaime.com/blog/wp-admin/post.php
    Line: 124

  20. oriecat
    Member
    Posted 8 years ago #

    I think you need to delete the wp_grins tag from the quicktags.js.

  21. tomm10
    Member
    Posted 8 years ago #

    Ding, ding, ding, ding, ding! You win, oriecat! That's exactly what it was. I don't remember adding that line in there and it wasn't on my local copy of the file but when I downloaded it from the server, sure enough, the wp-grins tag was in there. I deleted it and now the tags are back on my work pc.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags