:: TheOneAndTheOnly.com – Andrew Buckman ::

WordPress Plugin: Editor Search

Blogged in by Andrew · Wednesday May 4, 2005

Description
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

Trackback · 21 comments

21 Responses to “WordPress Plugin: Editor Search”

  1. spacer Robert says:
    May 15, 2005 at 10:15 pm

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

    Reply
  2. spacer CysnusTM says:
    May 25, 2005 at 7:40 am

    This has been a godsend. Thanks!

    Reply
  3. spacer Andrew says:
    May 25, 2005 at 10:05 am

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

    Reply
  4. spacer Mathias Bynens says:
    June 1, 2005 at 9:18 am

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

    Reply
  5. spacer Lorelle says:
    June 1, 2005 at 3:54 pm

    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.

    Reply
  6. spacer Andrew says:
    June 1, 2005 at 4:00 pm

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

    Lorelle:
    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.

    Reply
  7. spacer Franto says:
    June 2, 2005 at 2:12 am

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

    Reply
  8. spacer DiS says:
    July 16, 2005 at 3:56 pm

    THANK YOU, THANK YOU, THANK YOU!

    Reply
  9. Snapturtle says:
    July 21, 2005 at 11:08 am

    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…

    Reply
  10. spacer Anonymous says:
    August 4, 2005 at 9:22 am

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

    Reply
  11. spacer mamo says:
    August 9, 2005 at 3:51 pm

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

    Reply
  12. spacer Anonymous says:
    August 11, 2005 at 2:56 am

    Respekt! Ein wirlich gelungene Seite.

    Reply
  13. spacer Bryant Mairs says:
    November 12, 2005 at 4:17 pm

    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 goddard-87.resnet.brown.edu/posts/29/.

    Reply
  14. spacer Jason Maggard says:
    May 30, 2006 at 12:23 pm

    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.

    Reply
  15. spacer lil wyte says:
    July 23, 2006 at 7:04 am

    Hello!

    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?

    Reply
  16. Disruptive Library Technology Jester :: DLTJ under a New Theme says:
    August 13, 2006 at 10:29 pm

    [...] Editor Search [...]

    Reply
  17. WP Plugins DB » Plugin Details » Editor Search says:
    July 9, 2007 at 6:02 am

    [...] Visit [...]

    Reply
  18. spacer Sarah Reeders says:
    January 10, 2008 at 6:10 pm

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

    Thumbs up :>

    Sarah.

    Reply
  19. ein blog eben, keiner weiss wieso » Plugin Roundup (1) says:
    August 27, 2008 at 8:44 am

    [...] Editor Search [...]

    Reply
  20. spacer affiliate.solutions says:
    February 16, 2009 at 11:42 pm

    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 !

    Reply
  21. spacer courtney says:
    July 17, 2009 at 7:25 am

    great plug in save me a lot of time

    Reply

Leave a Reply

Click here to cancel reply.

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

 


gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.