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:
New!! Open File from local disk.


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 Next page Last page  View All


Luis
Veteran

Oct 24, 2003, 2:42 PM

Post #26 of 40 (12263 views)
Shortcut
Re: [stervina] New!! Open File from local disk. [In reply to] Can't Post

Hi Stervina:

Good it worked.
Have you made some improvements to your Flash insertion mod?
Are you in a Windows server? If you do, there is an interesting workaround to get the Flash attributes reading from the server. Unfortunatelly for me I'm in a Unix box.
The workaround uses Server.CreateObject which is not an option in Unix. If it is of help, here is the link:

http://www.snook.ca/technical/31-10-01b.html

Greetings.


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


stervina
User

Oct 25, 2003, 3:30 AM

Post #27 of 40 (12252 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Hi Luis

Thanks for the information

Unfortunately, I haven't had time to make any improvements to my flash insertion mod yet. In fact it works perfectly on my site, the code that is inserted is nice and clean, and all the .swf files are displayed correctly. The width and length parameters can be set with the live resize mod once you have inserted the file.
The only thing I am not pleased with is the no-professional look of the mod itself. As I try to display a thumnail of the swf files, I get an image missing error in IE. (a red cross). You insert your file by clicking on this cross. You can preview the file by clicking on its name.
The flash mod is written in PHP combined with javascript.

Can this image missing error be handled. (eg : "if the image cannot be displayed, display another image") ?

Have a look here to see it working

http://www.college4vents.net/testhtmlarea/example.php?action=ajouter

Thanks for helping

Greetings

Stervina Lannion France


sportlerer
Novice

Oct 27, 2003, 8:55 AM

Post #28 of 40 (12230 views)
Shortcut
Re: [stervina] New!! Open File from local disk. [In reply to] Can't Post

Wonderful Luis, thanks für the new one ...

I replaced the editor with your new editor,

Coolnow I can change the backgrounds , Cool

but now i `can`t write in my textarea.

The cursor doesn`t appear and the font cannot be chosed...

What could be wrong this time?

Ohh

sportlerer


Luis
Veteran

Oct 27, 2003, 11:29 AM

Post #29 of 40 (12227 views)
Shortcut
Re: [sportlerer] New!! Open File from local disk. [In reply to] Can't Post

Hi Sporterer:

See the post #24 of this thread. You need to change several files not only editor.js. I recoomend you to replace all the files including popups and then go back to add your own mods. It's going to make your life easier because you know how your mods work and don't know how mine do. Unfortunatelly, I have not documentation, mainly because everybody's editor's stage is different and instructions might vary for each case.

Greetings.


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


sportlerer
Novice

Oct 27, 2003, 7:36 PM

Post #30 of 40 (12209 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

UnsureHi; I try and try... Now works fine, but I dont know why I Unsurecan`t save the wonderful backgrounds???Unsure

Yes, I know: §24

There is also this piece of code which is intended to update the background values on output (plus the hidden fields I talked before) and the call to the function from the submit button.

<script>
function updateAttributes(){
document.myform.bgcolor.value=MyBgColor;
document.myform.background.value=MyBgImg;
}
</script>


can you please3 tell me, where this

piece of code must be placed?

An what means to call the funktion with the submit button?

Thanks

have a good night

sportlererPirate


Mighty
Novice

Mar 4, 2004, 3:35 AM

Post #31 of 40 (11937 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Hi Luis,

I have implemented the spell checker with the ActiveX control that you specified and I just have one issue with it. When you use the CTRL-V to paste the textarea content from Word back into the textarea, it adds another blank line to the content. This is causing a problem for me as I am using it on an intranet ASP page which sends emails. This ASP program automatically appends the user's signature to the end of the email. This extra line that gets pasted at the end of the document means that there is a big gap between the end of the email and the signature.

I have tried using the oShell.SendKeys method to send a couple of backspaces to the content and this will work most of the time but I'm not confident that it will always work.

Do you have any ideas on how to get around this.

Also this only happens in Word 2000. The vast majority of our users have Word 97 but a few of the people that are using this utility have Word 2000 so this will cause an issue and the couple of backspaces that I send will delete the last two characters of the message for Work 97 users but not for Word 2000 users. I would appreciate any help that you can give me on this.

Thanks,

Mighty.

(This post was edited by Mighty on Mar 4, 2004, 6:22 AM)


Luis
Veteran

Mar 4, 2004, 11:35 AM

Post #32 of 40 (11930 views)
Shortcut
Re: [Mighty] New!! Open File from local disk. [In reply to] Can't Post

Hi Mighty:

Can you attach your editor? the fix is easy (I think), if you alredy have function cleanHTML(unclean) installed.


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


Mighty
Novice

Mar 5, 2004, 4:19 AM

Post #33 of 40 (11915 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Hi Luis,

I have attached the editor file that I am using. I have got around it for the moment but it's not a very reliable solution. I basically looked at the code that Word writes back to the textarea and used the ASP replace function to replace the last paragraph with a blank.

Let me know if you can come up with a better solution.
Attachments: editor.js (48.7 KB)


Luis
Veteran

Mar 5, 2004, 11:22 AM

Post #34 of 40 (11913 views)
Shortcut
Re: [Mighty] New!! Open File from local disk. [In reply to] Can't Post

Hi Mighty:

This is exactly what I was going to do:

It's a partial solution, because if somebody selects only part of a paragraph, when the text returns from the spellchecker, the last <P> splits the text. However, I've found not a solution for it.

Greetings


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


Mighty
Novice

Mar 8, 2004, 2:17 AM

Post #35 of 40 (11894 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Hi Luis,

What you were saying about selecting part of the text will not happen in my case. What I did is add in the "Select All" to the spell checker. Basically, when the user clicks on the spell checker button, it selects all the text and then runs the spell checker on it. So the extra <P></P> will always be at the end of the text.

Does this help in finding a better solution??

Mighty


Luis
Veteran

Mar 8, 2004, 11:29 AM

Post #36 of 40 (11891 views)
Shortcut
Re: [Mighty] New!! Open File from local disk. [In reply to] Can't Post

Hi Mighty:

If you are forcing SelectAll before spellchecking, then it's pretty easy. Can you post the whole code of the
else if (cmdID.toLowerCase() == 'spell') {
block, so I can add the fix there without misguiding you?

Greetings.


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


Station Three
User

Mar 8, 2004, 3:13 PM

Post #37 of 40 (11885 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Does anyone know how to implement Luis's version into other IT scripts? I am mainly wanting to do this with Page Publisher.

Thanks.

_________________________________
Matthew Shull
Station Three Web Technologies
http://www.stationthree.com
1-800-293-9655


Mighty
Novice

Mar 9, 2004, 2:13 AM

Post #38 of 40 (11875 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Hi Luis,

Here is the code from my spell checker button. I don't really need all the tag checking lines as I don't have a button to insert a form into the textarea but I'm not too worried about that.

else if (cmdID.toLowerCase() == 'spell') {

editdoc.execCommand('selectall')
var str=editdoc.selection.createRange().htmlText;
var disTag1=str.indexOf("<IMG");
var disTag2=str.indexOf("<SELECT");
var disTag3=str.indexOf("<FORM");
var disTag4=str.indexOf("<INPUT");
var disTag5=str.indexOf("<BUTTON");

if (disTag1>=0 ||disTag2>=0 ||disTag3>=0 ||disTag4>=0 ||disTag5>=0)
{
alert("Your selection must contain no images or form elements.\nPlease select complete paragraphs and try again.");
}
else if (!str){alert('Nothing to spellcheck. Please select the text you want htmlArea to check.\nWe recommend you to select complete paragraphs.');}
else {
editdoc.execCommand('copy');
CheckDocument(); return true;
}

}


Thanks for this,

Mighty


Luis
Veteran

Mar 9, 2004, 3:22 AM

Post #39 of 40 (11871 views)
Shortcut
Re: [Mighty] New!! Open File from local disk. [In reply to] Can't Post

Hi Mighty:

Try adding the replacement code in red. It should work, but if it doesn't, attach your editor and I'll try a different approach.

else if (cmdID.toLowerCase() == 'spell') {
var str=editdoc.selection.createRange().htmlText;
var disTag1=str.indexOf("<IMG");
var disTag2=str.indexOf("<SELECT");
var disTag3=str.indexOf("<FORM");
var disTag4=str.indexOf("<INPUT");
var disTag5=str.indexOf("<BUTTON");

if (disTag1>=0 ||disTag2>=0 ||disTag3>=0 ||disTag4>=0 ||disTag5>=0)
{
alert("Your selection must contain no images or form elements.\nPlease select complete paragraphs and try again.");
}
else if (!str){alert('Nothing to spellcheck. Please select the text you want htmlArea to check.\nWe recommend you to select complete paragraphs.');}
else {
editdoc.execCommand('copy');
editdoc.body.innerHTML.replace(/<P><\/P>$/gi, "");
return true;
}
}


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


Mighty
Novice

Mar 9, 2004, 3:51 AM

Post #40 of 40 (11869 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Hi Luis,

Unfortunately that won't work. The extra paragraph is not simply <P></P>.

It is generally either:

<P class=MsoNormal style="margin: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P>

or

<P class=MsoNormal style="margin: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;</FONT></FONT></P>

First page Previous page 1 2 Next page Last page  View All
 
 


Search for (options)