htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0 - Add-Ons:
Search and Replace


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


Luis
Veteran

Apr 17, 2003, 3:17 AM

Post #1 of 18 (10427 views)
Shortcut
Search and Replace Can't Post

Here it is!! Search and Replace Dialog.

1.- Back up your find.html file (just in case you want to go back with it)

2.- Download the attached file and put it in your popups directory.

3.- Enjoy it.

4.- If somebody improves it, don't forget to post.

http://webstationone.com/test/htmlarea


Don't give up!!
http://webstationone.com/test/htmlarea
Attachments: find.html (4.83 KB)


AtK
User

Apr 17, 2003, 4:08 AM

Post #2 of 18 (10417 views)
Shortcut
Re: [Luis] Search and Replace [In reply to] Can't Post

GREAT WORK! Wink

greetz
AtK


trouvailles
Novice

Apr 17, 2003, 10:39 PM

Post #3 of 18 (10378 views)
Shortcut
Re: [AtK] Search and Replace [In reply to] Can't Post

Wow! That's great. Stop adding nice features like this. I have to rework my menu again.

Pierre
http://fslactivities.sd61.bc.ca/ezHTMLarea/


Luis
Veteran

Apr 18, 2003, 1:59 AM

Post #4 of 18 (10372 views)
Shortcut
Re: [trouvailles] Search and Replace [In reply to] Can't Post

You don't have to. You can use the same button you currently use for FIND. Since the find function is integrated in the find and replace. You don't need two.

Greetings.

Never mind. Just realized afterwords that you are not using the original Find function.

If you don't want to redo your menu and calling the function with a shorcut like CTRL+S is enough, let me know to send you the code.


Don't give up!!
http://webstationone.com/test/htmlarea


(This post was edited by Luis on Apr 18, 2003, 2:14 AM)


trouvailles
Novice

Apr 18, 2003, 7:51 AM

Post #5 of 18 (10359 views)
Shortcut
Re: [Luis] Search and Replace [In reply to] Can't Post

Thanks Luis,

I inserted the find function and it works great.

Now, is there a way to make it work with the HTML codes? I found out that you can keep the button active in the Show HTML Source mode by adding the following:

if (cmdID == "htmlmode" || cmdID == "showhelp" || cmdID == "about" || cmdID == "popupeditor" || cmdID == "find")

However, the Find button doesn't work in this mode. Is there a way to make it work?

Pierre
http://fslactivities.sd61.bc.ca/ezHTMLarea/


(This post was edited by trouvailles on Apr 18, 2003, 7:52 AM)


Luis
Veteran

Apr 19, 2003, 12:13 AM

Post #6 of 18 (10331 views)
Shortcut
Re: [trouvailles] Search and Replace [In reply to] Can't Post

Hi Pierre!!

I'm sure it must there be a way, but I don't have the answer yet.

Why would you like to have this function enabled in HTML mode?

In my personal opinion, the WYSIWYG editor is intended to make life easier to persons with nothing or just a little knowledge of HTML. Here are some considerations why I wouldn't have it enabled:

1.- Unexperienced users tend to copy and paste by dragging the mouse.

2.- IE always selects the next character at the end of a word For example, the < of this closing tag</P> either when selecting by dragging or using CTRL+SHIFT+ARROW

3.- If unexperienced users make a global replacement in this way, the function will create them a lot of headaches, destroying completely their work in a fraction of a second.

Anyway, I think that having the ability is good so you can decide when and for whom to make it available, but it is not a priority. I will give it a try after I finish some pending tasks. If you find a solution before let me know.

Greetings.


Don't give up!!
http://webstationone.com/test/htmlarea


(This post was edited by Luis on Apr 19, 2003, 12:13 AM)


trouvailles
Novice

Apr 19, 2003, 11:05 PM

Post #7 of 18 (10296 views)
Shortcut
Re: [Luis] Search and Replace [In reply to] Can't Post

Hi Luis,

You may be right. However, I still think it would be nice to have the option to use or not this function. Unexperienced users will probably not even look at the HTML anyway. It could be handy to change things such as colours: text, links, background cells, ...

Pierre


sticks
Novice

May 6, 2003, 3:45 PM

Post #8 of 18 (10164 views)
Shortcut
Re: [Luis] Search and Replace [In reply to] Can't Post

Luis,

Your menu looks great, can you post your JS file?

Does your spell checker actually work? I didn't seem to get it to find a word I had intentionally misspelled.

Thanks in advance...

Sticks


Luis
Veteran

May 6, 2003, 3:58 PM

Post #9 of 18 (10163 views)
Shortcut
Re: [sticks] Search and Replace [In reply to] Can't Post

Hi sticks:
Sure I'll post my files, hopefully this week. My editor.js is a mess and I've not had time to clean it up. I need to comment out lot of things in it so you don't have to pull out your hair trying to figure out what is what.

Regarding the Spellchecker, it is indeed your Spellchecker.
It works with an ActiveX control that opens the user's Spellcheker of his own MS Word, so it detects whatever words you have in the dictionary and in whatever language you have your WORD program configured to use (if you have proper dictionaries installed).


Don't give up!!
http://webstationone.com/test/htmlarea


sticks
Novice

May 6, 2003, 4:04 PM

Post #10 of 18 (10160 views)
Shortcut
Re: [Luis] Search and Replace [In reply to] Can't Post

Thanks, I will look for it...essentially my needs are for the word cleanup, search and replace, and the spell checker.

We have integrated the tool into an app that allows users to transfer policy documents to a management site that will track as employees review and sign the policies...the source for some of these documents is pretty questionable, so whatever we can provide to help make them presentable and accurate is a benefit.

Are you working your changes into 3.x yet?


Luis
Veteran

May 6, 2003, 5:40 PM

Post #11 of 18 (10152 views)
Shortcut
Re: [sticks] Search and Replace [In reply to] Can't Post

Hi Sticks!
Meanwhile, you can download the spellchecker at the top of:
http://www.interactivetools.com/forum/gforum.cgi?post=8923;search_string=spellcheck;#8923

and the search an replace function at the top of this thread.


Don't give up!!
http://webstationone.com/test/htmlarea


djpeppone
Novice

May 7, 2003, 2:08 AM

Post #12 of 18 (10138 views)
Shortcut
Re: [Luis] Search and Replace [In reply to] Can't Post

dear luis

i find your site with the editor really cool. i find the loader i genius. i would find if you could me email the complete files of your editor in your site with the loader. is that possible ?? where can i download the complete set of files ??

thanks

dj peppone


Luis
Veteran

May 7, 2003, 2:25 AM

Post #13 of 18 (10133 views)
Shortcut
Re: [djpeppone] Search and Replace [In reply to] Can't Post

hi djpeppone!

See the post #9 of this thread.


Don't give up!!
http://webstationone.com/test/htmlarea


eisa
User

Jun 8, 2003, 10:04 AM

Post #14 of 18 (9924 views)
Shortcut
Re: [trouvailles] Search and Replace [In reply to] Can't Post

If you wan't to make the Search & Replace function work in HTML-mode, find the place in your editor.js file where you calls find.html and change the code to this:
// (Find function)
if (cmdID == 'Find') {
setGlobalVar ("_editor_field",objname);
var findRange = editor_obj.document.body.createTextRange();
showModelessDialog(_editor_url + "popups/find.html",window, "resizable: no; help: no; status: no; scroll: no; ");
return;
}
The only thing you do is to remove the contentWindow. from the original code.

Then you add

if (cmdID == "htmlmode" || cmdID == "showhelp" || cmdID == "about" || cmdID == "popupeditor" || cmdID == "find")

as you had found out.

// EiSa //

http://www.savio.no/htmlarea/example.asp | Webdesign


Luis
Veteran

Jun 8, 2003, 1:44 PM

Post #15 of 18 (9908 views)
Shortcut
Re: [eisa] Search and Replace [In reply to] Can't Post

Hi Eisa:

Your approach on this is not correct.

var findRange =editor_obj.contentWindow.document.body.createTextRange();

has not any effect in this mod. It belongs to the old find mod. I decided to leave it there to make it easier for somebody to bring it back.

The text range is defined inside the popup:
TxtRange = dialogArguments.document.selection.createRange();

You can enable the Find and replace function in HTML mode, by simply adding || cmdID == "find" where you mention. The problem is that in html mode the range is the whole page, therefore it replaces any character in the page whether it is or not in the textarea. Why? I don't know.


Don't give up!!
http://webstationone.com/test/htmlarea


(This post was edited by Luis on Jun 8, 2003, 2:41 PM)


eisa
User

Jun 8, 2003, 2:12 PM

Post #16 of 18 (9905 views)
Shortcut
Re: [Luis] Search and Replace [In reply to] Can't Post

Ok, then I don't have the newest mod. I guess it's the one with all the shortcuts? But with the old mod I had to remove contentWindow to make it work. Have also noticed that it searches and replaces other things on the page if you don't have the cursor in the HTMLArea-field. If the cursor are inside the HTMLArea-field it only searches the field as far as I have noticed. I can live with that for now.

Thank's for your information anyway.

http://www.savio.no/htmlarea/example.asp | Webdesign


kmillera
Novice

Jun 8, 2003, 10:40 PM

Post #17 of 18 (9886 views)
Shortcut
Re: [eisa] Search and Replace [In reply to] Can't Post

Hai-

Luis I know we have bickered, but your last two posts are great. I haven't touched my editor in two months and I come back to find mine is behind the latest curve! Though I can't use your code off the bat (I built my own editor) It gives me a great start. Both the spell checker and the find replace are awesome. Kudos to you man. I only wished there were more architects like you posting code than programmers haha.

kmiller


Luis
Veteran

Jun 9, 2003, 11:54 PM

Post #18 of 18 (9848 views)
Shortcut
Re: [kmillera] Search and Replace [In reply to] Can't Post

Thanks for what it concerns to my work. I respect your opinion on programmers but personally I appreciate what some programmers do. The little bit I've learned has been created by programmers first, (I guess).


Don't give up!!
http://webstationone.com/test/htmlarea


(This post was edited by Luis on Jun 9, 2003, 11:57 PM)

 
 
 


Search for (options)