:: TheOneAndTheOnly.com – Andrew Buckman ::

WordPress Plugin: Editor Search

Blogged in by Andrew · Wednesday May 4, 2005

The Editor Search plugin adds searching and ‘go to line number’ functionality to the WordPress theme/plugin editors built-in to your admin area. Once the plugin is installed and activated, you’ll notice two new input boxes above the main textarea to allow you to easily search below.

Current Version: 1.3
Download Editor Search 1.3 Plugin for WordPress 1.5

Release Notes
version 1.3 / 2005-06-07
Word searching now wraps in both Firefox and Internet Explorer. I also made a small usability improvement (I think) in this version, when you click in one of the input boxes, the other will clear. Now you won’t be searching for ‘Firefox’ and still have the line number 5 in your other entry box. It was annoying me so I fixed that.

Finally, per Jalenack’s request I’ve added the ability to switch the javascript to an “external” format. Personally I preferred the old way so I’ve decided to leave that as the default method. If you want to try the external format, I tried to provide a brief explanation and instructions near the beginning of the plugin file. No matter which method you choose, everything is still contained in just the one file. Note you do NOT have to edit the plugin file at all if you want to continue letting it work the way it always has, only if you prefer the external javascript reference.

version 1.2 / 2005-06-01
After much frustration, I’m pleased to announce that Editor Search now works in Internet Explorer 6.0. IE appears to automatically scroll the textarea to the proper position when I move the cursor, so that should be perfectly accurate, however the slight deviation from the proper position still occurs in Firefox, hoping to minimize/eliminate that in 1.4 or 1.5. One minor difference in IE is that word searching doesn’t currently wrap when you reach the end, I should be fixing that in 1.3.

version 1.1 / 2005-05-15
The only noticable change is the addition of form tags around the input boxes to facilitate hitting the enter/return key after typing in your search phrase or line number. In the background, the code added to the editor pages should now be Valid XHTML 1.0 Transitional.

version 1.0 / 2005-05-04
I’ve only tested the plugin in Firefox for now. I’m actually not sure it will work on IE due to differences in grabbing the cursor position and scrolling variables via JavaScript. I’ll try to add official IE support in the future.

The plugin attempts to scroll your textarea to the proper location so you can see the word it found (or line number it put you on), however it isn’t entirely accurate at this point. I’m pretty sure it’s because of lines wrapping and I’m working on a new scrollToCursor routine, but I wanted to get this out there to start with.

Listed in the WordPress Plugins Database

22 Responses to “WordPress Plugin: Editor Search”

  1. Robert says:

    Great plugin! Oh, how I’ve wanted this. :o ) Thanks.

  2. CysnusTM says:

    This has been a godsend. Thanks!

  3. Andrew says:

    You’re both quite welcome, glad to see somebody likes it! :)

  4. Great plugin! Nice job. Could the search thing be made case insensitive?

  5. Lorelle says:

    This is great, but could you describe better what it does, where it works, and how to work with it? I’m only guess, but I assume there is some button or tag or combination of keys that I press to get a search window to type in a number or word to search within the text area of…? The Write Post Screen, the built-in Text Editor of WordPress,…?

    I like the idea, I just need to know more. Thanks.

  6. Andrew says:

    I believe I can switch it to case insensitive, I’ll try to do that in the next rev.

    No key combination, the plugin simply adds inputs for both searching and line numbers above the textarea when editing plug-ins and themes in the WordPress admin area. I see now I neglected to add a description to this permalink page, I’ll fix that up now.

  7. Franto says:

    Really great plugin, and I’ve added post about it (http://www.franto.com/blog2/great-editor-search-plugin)

  8. DiS says:


  9. Snapturtle says:

    Mid summer redesign

    If you haven’t already noticed by now, I’ve redesigned Snapturtle recently using the latest version of WordPress and the impressive Blix 0.9.1 theme.
    While researching the availability of Technorati plugins, during which I found the Techn…

  10. Anonymous says:

    I used this site to get information for that i had in my class. This is an excellent site for this information :)

  11. mamo says:

    thanks for that great mo. thats what i was looking for!

  12. Anonymous says:

    Respekt! Ein wirlich gelungene Seite.

  13. Bryant Mairs says:

    I really like this plugin a lot. I’ve been using this plugin with the Tiger Style Administration plugin, though, and I didn’t think it really blended with the rest of the interface. I’ve edited this plugin accordingly so that it looks right at home. My post regarding the changes I’ve made and the source are at http://goddard-87.resnet.brown.edu/posts/29/.

  14. Just an FYI,

    I found an odd place in the code, and replaced it. Here are my updates:

    // Get lines total by figuring out the width
    // of the textarea and then dividing total chars by it.
    //var linesTotal = b.value.split(‘\n’).length; // (Old method)
    var linesTotal = (b.value.length / b.offsetWidth);

    Basically, your code looked for line ends which didn’t work for me with word wrap. I would have 6 lines showing, but only one return.

    The new line of code divides the total length of the “value” in the textbox by the width of it’s containing textbox. The only thing is that this leads to non-whole numbers, but the program seems to handle that fine, and it’s easy enough to round numbers off.

    THX for the plugin, hope this helps.

  15. lil wyte says:


    I installed WordPress on my server, and set up a site. It’s a relly nice piece of software. However, I am missing a piece of functionality, and

    couldn’t find a suitable answer for it. Mayou you know a plugin I could use?I need to automatically inserts ads in my posts.And not AdSense ads, but rather HTML snippets defined by me (affiliate links, etc). Let’s say I would insert a tag in my post:
    – ad here –
    and the plugin would automatically replace it with some HTML code, when the post is displayed on my site.I really don’t need any fancy configuration options etc, just the basic replace functionality.
    Do you know a plugin that can handle this?

  16. Just what I needed, and at the right time :>

    Thumbs up :>


  17. affiliate.solutions says:

    I really liked your blog! You have some great content. Check out my blog and give me some feedback… I just posted a great blog about the 36 Best WordPress plugins for 2009., thanks !

  18. courtney says:

    great plug in save me a lot of time

  19. It's good research..thanks for helpful plugins..

Leave a Reply to Jason Maggard

©2010 Andrew Buckman
34 queries. 0.285 seconds.
Powered by Wordpress
theme based on desert by evil.bert