SpellChecker
2005/01/25 19:22
Viewed 7453 times
Replies: 1/1

I'm trying to get the Spell Checker for HTMLArea to work. I've installed Perl and Text::Aspell. Perl appers to be working. When I click on the Spell Check button, the window launches, but in the window where the spell checking should appear, I just get a blank page. Also, there are no dictionaries in the drop down list at the top of the Spell Checker window. Are there some additional steps I need to take to get it to work? Any help is appreciated.
-Eric

last
Re: SpellChecker
2005/05/14 00:12
Viewed 8624 times
Replies: 0/0

Hello,

I ran into the same issue while integrating HTMLArea into a CMS system recently. You have to manually download and install dictionary files from here:

ftp://ftp.gnu.org/gnu/aspell/dict

Once you download the files for the languages you want to use to your server, decompress them like this:

tar -jxvf aspell-en-...

Then do the standard ./configure && make && make install as root. You also have to make sure aspell is on your PATH for the ./configure and make steps to succeed.

Once installed, the language(s) will appear in the drop-down menu.

The blank screen might be another issue, though. As I recall, I also had to install the perl module XML::DOM and its dependencies in order to get the spell checker to work. That may or may not be your issue. Try running tail -f on your httpd error log file while trying to use the spell checker, it pointed me in the right direction.

Cheers,
Troy Davis
Metaphor Studio
Cincinnati, Ohio

last
bug with image insert on Gecko based browsers
2005/02/01 13:19
Viewed 7367 times
Replies: 0/0

reproduce:
1. open example core.html
2. ctrl+a; del
3. click on insert image button
4. paste http://www.google.com/images/logo.gif into URL
5. add all other info as Alt Text, Border, etc
6. Click ok
7. View HTML
Final Result: <img src="http://www.google.com/images/logo.gif" />
!!! No alt text or any other property has been set thus were defined

same happens on current RC1 and on version taken down from CVS (today).

anyone else can comfirm that? This is a rather annoying bug if HTMLArea is used in production environment.

regards
/Donny

last
htmlarea and sgml character
2005/02/01 16:36
Viewed 7358 times
Replies: 1/1
Hi, if you type in htmlarea some international character: é = &ecute; or & = & the html translation is not done, i mean you will have é or & in your html generated by htmlarea but not &ecute; or & is it a bug or a feature to turn on/off ?
last
Re: htmlarea and sgml character
2005/02/05 20:57
Viewed 9754 times
Replies: 0/0

I wouldn't say it's a bug and certainly there's no feature to convert those characters to HTML entities. Think “Unicode”.

About the & though, it should be converted to &amp; without problems.

last
Edited by mishoo on 2005/02/05 20:58
Formatblock
2005/02/06 19:47
Viewed 7995 times
Replies: 1/2

Try This..

Write a few lines in a txt-file. such as

test
test
test

copy them to a htmlarea in Internet Explorer..

so and now the problem, try to format the first line to an other formatblock such as [Heading 1]

what do you get?

im getting

<p>
<h1>
test
test
test
</h1>
</p>

and thats not realy what i want...

are there any workarounds?

last
Re: Formatblock
2005/02/06 21:50
Viewed 10339 times
Replies: 1/1

Yes, promote Firefox! :-)
In other words, no, there's no workaround--sorry.

last
HTMLArea for Users
2005/02/06 20:04
Viewed 7596 times
Replies: 1/1

I want to use the HTMLArea in my own CMS.
The CMS is used by Users. This Users don't even know how to spell html.

But they use Copy&Paste such as they never made something else.

I'm trying to write a code, that strips out unwanted tags, formats, styles, colors, fonts and all this stuff nobody want to see on the homepage.
The wordclean function isn't bad, i used it for the major things.
Now i have Problems with IE. IE's executeCommand isn't doing the same as the function in mozilla.

As Sample the Forecolor Command:

IE
<p>test</p> -> <p><font color="#000000">test</font></p>

Mozilla
<p>test</p> -> <span style="color:#000000;">test</span></p>

So and now try to strip out the font-tag.. ;)

anyone in here had the same problem?

the code i wrote:

HTMLArea.prototype._cleanup = function() {
var value = this.getInnerHTML();
var vlen1 = value.length;
var v1 = value;
value = value.

//<b> -> <strong>
replace(/<b>/gi,'<strong>').
replace(/<\/b>/gi,'</strong>').
replace(/<em>/gi,'<i>').
replace(/<\/em>/gi,'</i>').
replace(/<strong><\/strong>/gi,'').
replace(/<i><\/i>/gi,'').

//<p /> -> <br />
//<br asdasd /> -> <br />
replace(/<p \/>/gi, '<br />\n').
replace(/<p><\/p>/gi, '<br />\n').
replace(/<br[^>]*>/gi, '<br />').

//<table> new format
replace(/<table[^>]*>/g, '<table cellpadding="0" cellspacing="0" border="1" width="100%">').
//<td> -> <td class="content">
replace(/<td[^>]*>/g, '<td class="content">').

//Delete Styles
replace(/font-family/g,'').
replace(/font-size/g,'').
replace(/background-color/g,'').
replace(/background/g,'').
replace(/bgcolor/g,'').
replace(/margin:/g,'').
replace(/padding:/g,'').
replace(/padding:/g,'').
replace(/font-weight/g,'[[weight]]').
replace(/font-style/g,'[[style]]').
replace(/font-face/g,'').
replace(/font-size/g,'').
replace(/font-style/g,'').
replace(/font-/g,'').
replace(/font/g,'').
replace(/[[weight]]/g,'font-weight').
replace(/[[style]]/g,'font-style').
replace(/tab-stops:/g, '').
replace(/mso-tab-count:/g, '').
replace(/mso-bidi-:/g, '').
replace(/text-indent/g, '').
replace(/<span>\&nbsp\;<\/span>/g, '').

//Javascript in Paths
replace(/javascript:/g, '').

// make one line
replace(/\r\n/g, ' ').
/replace(/\n/g, ' ').
replace(/\r/g, ' ').
replace(/\&nbsp\;/g,' ').
replace(/\t/g, " ").

// keep tags, strip attributes
replace(/ style=\"[^>]*\"/gi,'').

//clean up tags
replace(/<b [^>]*>/gi,'<b>').
replace(/<i [^>]*>/gi,'<i>').
replace(/<li [^>]*>/gi,'<li>').
replace(/<ul [^>]*>/gi,'<ul>').
replace(/<h1[^>]*>/gi,'<h1>').
replace(/<h2[^>]*>/gi,'<h2>').

//kill unwanted tags
replace(/<\?xml:[^>]*>/g, '').
replace(/<\/?st1:[^>]*>/g,'').
replace(/<\/?[a-z]\:[^>]*>/g,'').
replace(/<\/?font[^>]*>/gi,'').
replace(/<\/?span[^>]*>/gi,' ').
replace(/<\/?div[^>]*>/gi,' ').
replace(/<\/?pre[^>]*>/gi,' ').
replace(/<\/?h[3-6][^>]*>/gi,' ').

//kill unwanted tags + content
replace(/<script[^>]*>[^\n]*<\/script[^>]*>/g, '').
replace(/<style[^>]*>[^\n]*<\/style[^>]*>/g, '');

//dummy
this.setHTML(value);

//debug
var value = this.getInnerHTML();
var vlen2 = value.length;
alert(v1 + "\n" + "\n" + value + "\n" + "\n" + "Cleaned.. " + (vlen1 - vlen2) + " Zeichen entfernt!");

this.forceRedraw();
this.updateToolbar();
}

last
Re: HTMLArea for Users
2005/02/20 14:03
Viewed 9969 times
Replies: 0/0

You may want to have a look at the indite plugin :
http://www.kyberfabrikken.dk/opensource/indite/

last
Problems with pop-ups
2005/02/07 08:45
Viewed 7400 times
Replies: 1/1

I've recently downloaded HTMLArea. Everything was ok, but when I want to edit text color, bgcolor, tables and everything that use a pop-up page to create de HTML code is broken (i'm using IE).

The browser give me an "Access denied" message... in both original and pop-up page when I clicked on any "pop-up icon".

I've change the entire pop-up and root directory (yes, all files) into a CHMOD 777, but nothing happens...

Thanks for all.
Alejandro from Argentina.

last
Re: Problems with pop-ups
2005/02/13 01:24
Viewed 9652 times
Replies: 0/0

I've solved it... you know what the problem was? The Google AdSense code...

Try this

[htmlarea code] (the header one)

[google adsense code]

[textarea]

Now... tell me what happen (probably the pop-ups wont work)

Cya!
Alejandro from Argentina

last
SpellChecker
2005/02/12 01:41
Viewed 8273 times
Replies: 1/4

I'm trying to use the SpellChecker plugin but every time I click the spellcheck button I get the spellcheck window but it just displays the contents of the spell-check-logic.cgi perl script.

last
Re: SpellChecker
2005/02/12 15:24
Viewed 11012 times
Replies: 1/3

Well, your server must have the ability to run .cgi files as CGI scripts and have Perl and all the required modules installed. How to do this depends on a lot of factors such as the server operating system, HTTP server, etc. which is why we can't provide any hints in the HTMLArea documentation--but a sysadmin should know how to configure it.

last
NO Error msg in browser
2005/02/15 07:33
Viewed 8447 times
Replies: 1/2
by Tom

I have added this to a php page, and I get no error msg in the browser, but the editor dont show up either.

IF i look at the java console I do have error msg's there.
They are as follows:

Error: syntax error
Source File: http://www.hillbillybargains.com/public_html/htmlarea/htmlarea.js
Line: 1
Source Code:
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

Error: syntax error
Source File: http://www.hillbillybargains.com/public_html/htmlarea/dialog.js
Line: 1
Source Code:
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

Error: syntax error
Source File: http://www.hillbillybargains.com/public_html/htmlarea/lang/en.js
Line: 1
Source Code:
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

Error: HTMLArea is not defined
Source File: http://www.hillbillybargains.com/admin/newsletters.php
Line: 17

Warning: The stylesheet http://www.hillbillybargains.com/public_html/htmlarea/htmlarea.css was loaded as CSS even though its MIME type, "text/html", is not "text/css".

Error: HTMLArea is not defined

Now, the path to the editor i have coded as

/public_html/htmlarea/

public_html is my root.
If i take that off of the front of the path, then i get a browser message saying that the path is not defined at all, and that I need to define it.

I am at a total loss, I am sure its a path problem, but just not sure what to try now.
i have tried htmlarea by itself,, and that dont work.

HELP!!! <pulling at hair>

Can someone direct me to what i need to do ? or what i did wrong?

Thanks in advance

Tom

last
Re: NO Error msg in browser
2005/02/15 08:30
Viewed 10081 times
Replies: 1/1

Error: syntax error
Source File: http://www.hillbillybargains.com/public_html/htmlarea/htmlarea.js
Line: 1
Source Code:
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

You almost gave yourself the answer.  Try clicking the link above and note that it doesn't point to the htmlarea.js file!  If your document root is public_html, then try removing “public_html/” from the address and check that it's OK. :-p

HELP!!! <pulling at hair>

Don't do that. 8-)

last
Google