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:
See the ultimate Word cleaner. Amazing!!


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.

First page Previous page 1 2 3 4 5 6 7 Next page Last page  View All


antiqueone
New User

Jun 16, 2003, 3:40 PM

Post #26 of 169 (7821 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Thanks Luis - I attach my editor.Smile
Attachments: editor.js (46.5 KB)


polel129
New User

Jun 17, 2003, 8:14 AM

Post #27 of 169 (7813 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi,

First of all thanks Luis for your amazing function.

I've implemented your function and it works without errors but it strips some spaces (" " not " ") from the text when I paste.

I've posted my editor.js. I'd be grateful if someone could help

Thanks

Eleni
Attachments: editor.js (53.6 KB)


Luis
Veteran

Jun 17, 2003, 11:23 AM

Post #28 of 169 (7807 views)
Shortcut
Re: [polel129] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi Eleni:
I've noticed you have a very initial version of the mod. The problem with the blank spaces stripping is the <SPAN> tag. I'll make a fix for you later tonight.

Greetings


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


Luis
Veteran

Jun 17, 2003, 8:58 PM

Post #29 of 169 (7795 views)
Shortcut
Re: [antiqueone] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Here it is:

The MS Filtering is applied onpaste, so I enabled a paste button.

Currently, the clean up is setup for my own needs. If you need not to strip some tag, comment it out. If you have some problems, contact me again.

Good Luck!


Don't give up!!
http://webstationone.com/test/htmlarea
Attachments: editor_antiqueone.js (54.9 KB)
  ed_paste.gif (0.90 KB)


Luis
Veteran

Jun 17, 2003, 10:34 PM

Post #30 of 169 (7789 views)
Shortcut
Re: [polel129] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi Eleni, here it is:

The MS Filtering is applied onpaste, so I enabled a paste button.

Currently, the clean up is setup for my own needs. If you need not to strip some tag, comment it out. If you have some problems, contact me again.

BTW. Your editor had an error somewhere in Function: editor_event , I fixed it.

Be aware that pasting using the context menu (right-click) the MS Filtering is not applied. If you want to prevent pasting unfiltered content, let me know to tell you how to disable it.

I tested it with about 20 different documents and it worked well.

Good Luck!


Don't give up!!
http://webstationone.com/test/htmlarea
Attachments: ed_paste.gif (0.90 KB)
  editor_eleni.js (55.2 KB)


antiqueone
New User

Jun 18, 2003, 5:22 PM

Post #31 of 169 (7760 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Thanks a lot Luis. This is great it really reduces the size of the html file. I must now get down to fully cusomising to meet my needs.

htmlarea and the help in this forum continually amazes me.


polel129
New User

Jun 23, 2003, 4:45 AM

Post #32 of 169 (7699 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Thanks Luis! It doesn't strip the spaces now.

I have a question regarding the cleanHTML function. It doesn't work on paste but when I click the View HTML source button (I can see that you call this function in editor_updateOutput).

Why is this happening?

Thanks

Eleni


Luis
Veteran

Jun 23, 2003, 11:29 AM

Post #33 of 169 (7676 views)
Shortcut
Re: [polel129] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi Eleni:
I'm at work now. I'll go into this later tonight to see what's happening.

Luis


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


Luis
Veteran

Jun 23, 2003, 9:42 PM

Post #34 of 169 (7664 views)
Shortcut
Re: [polel129] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi Eleni:

It should work as it does on my side. Anyway, try changing

editor_updateOutput(objname);

with:

editor_setmode(objname, '');
editor_setmode(objname, 'init');

This change could give you an error message, which I don't remember where in editor.js it is. If this is the case, you can kill the error message adding this script in the head section of your htmlarea page.:

<SCRIPT>
function stoperror(){
return true
}
window.onerror=stoperror
</SCRIPT>

The error doesn't seem to affect anything. Hope this helps better now.


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


barcsdad
Novice

Jul 8, 2003, 1:47 PM

Post #35 of 169 (7487 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Luis,

I've recently tried out your latest version, but seem to be getting some error when hyperlinking something in the editor. I haven't really made any modifications to anything. Here are two things that I've noticed:

1. If I bring up the link dialog box and do not enter anything in and click OK, then I don't get any errors (but what good does that do?).

2. If I do enter a URL and click OK, I get another browser window opening up with a 405 error on http://mywebsite.com/Editor/popups/insert_link.html

Any ideas?

Marty


Luis
Veteran

Jul 9, 2003, 1:19 AM

Post #36 of 169 (7471 views)
Shortcut
Re: [barcsdad] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi barcsdad:

I cannot figure out what's happening. It works well in my editor, but maybe you have an oudated version. The original mod by Barry-Hunter had a bug and was fixed by himself. The fix is in the post#3 of this page:

http://www.interactivetools.com/forum/gforum.cgi?post=10849


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


greiner
New User

Jul 9, 2003, 1:33 AM

Post #37 of 169 (7469 views)
Shortcut
Re: [barcsdad] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi Luis,

I implemented your solution for automatically cleaning Word files using the editor.js file you posted and it all seems to work perfectly up until the cleaning routine finishes. At this point I get an 'Unknown runtime error' on Line 452, Character 33.

Even though I get the error, the cleanup function does seem to work.

Any ideas on what's causing me to get this error?

Cheers and congrats on becoming a HTMLArea Expert!!


Mosschop
New User

Jul 9, 2003, 2:57 AM

Post #38 of 169 (7461 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

I'm not sure whether I have a problem or not. Whenever I import word documents using Luis' tools, all the images come up as blanks. Is this expected behaviour?

I ought to add that I'm not a programmer and suspect that I have one of the configuration settings wrong as the html behind the imported document is looking for the images in c:\htmlarea\. I presume that the default configuration tries to save them elsewhere?


(This post was edited by Mosschop on Jul 9, 2003, 3:08 AM)


brad1213
New User

Jul 9, 2003, 11:32 AM

Post #39 of 169 (7438 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

I'm using the Word cleaner, when I paste in a doc that has bullet points in it strips them out, I tried commenting the lines out that seem to do the replacing, but nothing happens. I commented out the whole function still does the same.

Is there a way to repalce words bullet points with <ul> tags?

Thanks

Brad


barcsdad
Novice

Jul 9, 2003, 2:51 PM

Post #40 of 169 (7430 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Luis,

I just created a "clean" version of your editor (downloaded from http://www.webstationone.com/test/htmlarea/index2.html) and put it up at http://www.docuplate.com/clean/Editor.

The only change I made to the code was this line:


Code

And I still get the error when trying to add a hyperlink. Very odd. Any thoughts?

Marty


Luis
Veteran

Jul 9, 2003, 3:33 PM

Post #41 of 169 (7425 views)
Shortcut
Re: [barcsdad] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi barcsdad:
I don't know what to tell you. Perhaps the insert_link.html file in my zip is outdated. I'll take a look at it later tonight. In the meantime, could you attach your editor.js and your insert_link.html files?

It might be faster if you do.


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


barcsdad
Novice

Jul 9, 2003, 3:38 PM

Post #42 of 169 (7422 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Luis,

No problem. Like I said, these files are fresh out of your zip file. They are not modified. Thanks.

Marty
Attachments: editor.js (106 KB)
  insert_link.html (4.85 KB)


Luis
Veteran

Jul 9, 2003, 3:38 PM

Post #43 of 169 (7422 views)
Shortcut
Re: [brad1213] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi brad1213:

I've faced that problem too. It has nothing to do with the editor, but with the way as the word documents are created.

Those dots that resemble a bulleted list are not real lists, but simple bullets (&#149;) or some styles maybe.

Send me a word document which is causing you this problem and I'll try to make a fix. No promise to succeed but I do to give it a try.


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


(This post was edited by Luis on Jul 9, 2003, 3:39 PM)


Luis
Veteran

Jul 9, 2003, 3:59 PM

Post #44 of 169 (7418 views)
Shortcut
Re: [barcsdad] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi barcsdad:

try adding the onsubmit event to your form tag:

<form method="post" name="set" onsubmit="returnSelected();return false;">

let me know if it worked.


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


Luis
Veteran

Jul 10, 2003, 12:41 AM

Post #45 of 169 (7406 views)
Shortcut
Re: [Mosschop] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi Mosschop:

Yes. It has nothing to do with the WordOpener, but with the MSWord behaviour. It will happen even when copying and pasting from word.

As per your words "all the images come up as blanks" and is looking for the images in c:\htmlarea\, I assume that you are not using the code cleaner functions: function cleanHTML(unclean) and function myclean(editdoc)

The function cleanHTML(unclean), clears the images and returns only text.

At this moment I don't have a workaround to keep the images and it might be a very hard task. Why? because the directory where MSWord stores the images vary from user to user, from platform to platform and from Word Version to Word Version.

I've been trying to get a bullet-proof function to translate the weird tag that Word uses to insert images into proper HTML. (notice the path to my temp directory).

<v:imagedata o:title="rainbow" src="file:///C:/DOCUME~1/LUISFE~1/LOCALS~1/Temp/msoclip1/01/clip_image001.jpg"></v:imagedata>

If we succed, then the approach will be not to clear the images with the code cleaner but to use the (now visible) images as place holders and then, update the image url after being uploaded.

If somebody experienced in regex could help with this I'm certain everybody here will love him.


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


IanIppolito
Novice

Jul 19, 2003, 2:09 PM

Post #46 of 169 (7314 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Luis,

I used your MOD and it worked PERFECTLY. Fantastic work!Smile

I was reading through this thread and saw you said something to Eleni that wasn't included in your source code (at least I assumed not, because your web demo doesn't seem to implement it.)

You said:

>>>Be aware that pasting using the context menu (right-click) the MS Filtering is not applied. If you want to prevent pasting unfiltered content, let me know to tell you how to disable it.

Can you tell me how you did this?

Many thanks!
Ian


Luis
Veteran

Jul 19, 2003, 2:38 PM

Post #47 of 169 (7311 views)
Shortcut
Re: [IanIppolito] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Hi IanIppolito:

It's quite simple. In your editor.js, search for this line:

+ ' oncontextmenu="parent.editor_cMenu_generate(window,\'' +objname+ '\');"'

and replace it with:

+ ' oncontextmenu="return false;"'
// + ' oncontextmenu="parent.editor_cMenu_generate(window,\'' +objname+ '\');"'

Be careful with the wrapping. Must be single lines.

Working context menus are coming up. Stay tuned!!


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


(This post was edited by Luis on Jul 19, 2003, 2:40 PM)


IanIppolito
Novice

Jul 19, 2003, 4:23 PM

Post #48 of 169 (7307 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

WinkAwesome Luis...thanks I'll try it out right now.

You're doing an awful lot of work for me and everyone on this board. Do you mind if I send you a small donation of a few bucks?

Ian


Luis
Veteran

Jul 19, 2003, 4:35 PM

Post #49 of 169 (7303 views)
Shortcut
Re: [IanIppolito] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

No way! Money is not an issue for me when it comes to help somebody.

I really think the only way to express how grateful I am with life is giving the life back what life has given to me. You can do the same posting here all your improvement or sharing your ideas or concerns with each other.

Each questions I read here in the forum helps me to better understand how htmlArea works and to improve my short skills in javascript, so I'm the most grateful with this forum and all of you.

Greetings


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


IanIppolito
Novice

Jul 20, 2003, 9:53 AM

Post #50 of 169 (7291 views)
Shortcut
Re: [Luis] See the ultimate Word cleaner. Amazing!! [In reply to] Can't Post

Luis,

You are truly special and a fantastic resource. Thanks again.

Ian

First page Previous page 1 2 3 4 5 6 7 Next page Last page  View All
 
 


Search for (options)