Forums / General Questions / Can not use HTMLarea...Why?

Can not use HTMLarea...Why?

Locked

Views: 4,328

Results 1 to 20 of 24
This thread is locked. New replies are disabled.
16 Jul 2006, 3:11 PM
#1
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Can not use HTMLarea...Why?

Hi,

How come that i can not use HTMLarea. I can see it on the screen but not get an active marker in it and can not type anything in the text area. Have this problem in both IE and FF.

Peter

16 Jul 2006, 3:30 PM
#2
designbydemeter avatar

designbydemeter

Zen Follower

Join Date:
Jun 2006
Location:
Taos,NM
Posts:
225
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

Silly question -- but --

Have you selected it in Admin -
Configuration/MyStore/HTMLARREA/ and turned it on?

Laura

Laura M Collins Invitation Designs

"The best way to navigate in a new area is to first get totally lost in it."...Mike L. Stein

16 Jul 2006, 5:52 PM
#3
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

DesignbyDemeter:

Silly question -- but --

Have you selected it in Admin -
Configuration/MyStore/HTMLARREA/ and turned it on?

Laura

Yes for sure, otherwise i would not see the HTMLarea active in the Products Description Box.....

16 Jul 2006, 8:37 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can not use HTMLarea...Why?

If you're referring to attempting to edit in the define-pages-editor area, then you're likely dealing with read-only files, as per the alert on-screen. Make the files writable, and then the editor window will unlock from read-only as well.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Jul 2006, 10:45 PM
#5
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

I‘m not sure here... I thought the product description was stored in the database and not in a file... but maybe I’m wrong…. If it is as DrByte suggests stored in a file?? Which file then???

Now I’m confused....:no: :no: :no:

I just can't type anything in the HTMLarea..... see the picture

Peter

17 Jul 2006, 12:37 AM
#6
wasana avatar

wasana

Zen Follower

Join Date:
Apr 2006
Location:
Chiang Mai
Posts:
203
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

I 'replaced' htmleditor with Xinha - - htmleditor has a reputation for being buggy I think (for me it comes and goes) - when using Xinha - you right click over the editing box and the editor pops up - works nice

http://xinha.python-hosting.com/

17 Jul 2006, 7:00 AM
#7
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

That was a BIG different :thumbsup:
I love Xinha already :D

I don't know if i installed it right but i just renamed the folder to htmlarea and deleted the old one... I seems to work anyway :yes:

Thanks Wasana :thumbsup:

17 Jul 2006, 9:15 AM
#8
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

If your are using Firefxo, look at this Xinha Here!

  • Xinha Here! is a Firefox extension wrapper for the Xinha HTML editor. It enables WYSIWYG editing in any textarea and text box on any website.

.

A New Starter again

17 Jul 2006, 1:41 PM
#9
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

Nooooooooo

Ok, i could edit my files with Xinha.... However, ALL my text in every page has disappeared :cry:

What is this?????

17 Jul 2006, 1:55 PM
#10
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

Xinha even destroyed all my newsletters. Now, i can not even edit them without Xinha :shocking: :shocking: :shocking:

17 Jul 2006, 1:59 PM
#11
wasana avatar

wasana

Zen Follower

Join Date:
Apr 2006
Location:
Chiang Mai
Posts:
203
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

what a nightmare - when I installed Xinha I didn't touch any ZenCart files - it works with Firefox, not ZC... this has to be caused by what you did with the htmlarea editor files.... if possible I'd take a backstep and re-create the htmleditor files from the original installation files. then use Xinha without extra tweaking. Hopefully - it will restore access to the text... good luck...

17 Jul 2006, 2:04 PM
#12
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

No the files are completely empty... nada...zero... maybe it's better to run Xinha localy instead :huh:

20 Jul 2006, 11:30 AM
#13
typhoon avatar

typhoon

Zen Follower

Join Date:
Jul 2006
Posts:
144
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

PeterBKK:

Now I’m confused....:no: :no: :no:

I just can't type anything in the HTMLarea..... see the picture

Peter

I have the exact problem as Peter. Anyone know how to solve this problem ?
The same problem at Tools -> Define Page Editor, HTMLarea is shown but it's not possible to edit anything in the HTMLarea box...
/Typhoon

20 Jul 2006, 2:06 PM
#14
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

Typhoon - This is how i solved it.

Deselect HTMLarea in admin.
Use Firefox as your web reader.
Download the firefox plugin "Xinha Here 0,9"
Thats all

Now you are able to use the WYSIWYG-tool in every field on internet.
Mark the field and right klick and choose "Open Xinha Here" - woula :thumbsup:

Peter

7 Aug 2006, 5:14 PM
#15
bartek avatar

bartek

New Zenner

Join Date:
Aug 2006
Posts:
1
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

Typhoon:

I have the exact problem as Peter. Anyone know how to solve this problem ?
The same problem at Tools -> Define Page Editor, HTMLarea is shown but it's not possible to edit anything in the HTMLarea box...
/Typhoon

You have to change file /admin/includes/htmlarea.php
Change line 21:

  echo '	_editor_lang = "'.strtolower(DEFAULT_LANGUAGE).'";' .BR;

to:

  echo '	_editor_lang = "en";' .BR;

Bartek

26 Aug 2006, 8:37 AM
#16
cableguy avatar

cableguy

New Zenner

Join Date:
Mar 2006
Posts:
3
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

Hello

I have the same problem, but i found the solution.

If u go to admin/includes then u open the file htmlarea.php, then on line 21 u put 2 // then save

looks like this

before changing
echo ' _editor_lang = "'.strtolower(DEFAULT_LANGUAGE).'";' .BR;

after changing
// echo ' _editor_lang = "'.strtolower(DEFAULT_LANGUAGE).'";' .BR;

This work for me, i dont know if this is the good way to make it work or bad way.

Try it and u will see.

26 Aug 2006, 10:40 AM
#17
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

From the above two posts, both changed the code related to BR.

I think You don't need to change the code.

There are several points should be noted.

  1. the only and most updated language of HtmlArea is the english language.
    It loacaled at:
    htmlarea/lang/en.js

And most of the others are not updated!
Please copy the en.js to you language file or translate it for yourself.
if you are using another language,
e.g.
I use Chinese,
then I will copy en.js to another file as b5.js and I translate it to Chinese.
(And in the admin I use b5 as my language code!)

  1. the name of the lanage file of HtmlArea is related to the setup of language code in Zen Cart.
    e.g.
    As pointed out in Note #1 in above,
    HtmlArea default language file is english and the file name is en.js
    And the language code used in default install of Zen Cart is en.

And they works without problem.

Therefore:
A. If you use another language other than the default englihs language in Zen Cart, check that the language file in htmlarea directory is updated. If you don't find the file for you language, just copy the en.js to your own.

B. Even you use the default english language in Zen Cart, check that the language code en had not been changed!
e.g.
If you use english but in admin
the language code changed to br,
then copy the en.js to a file as br.js.

Then it may works although without code change.

A New Starter again

6 Sep 2006, 5:30 AM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can not use HTMLarea...Why?

These last notes should be resolved in v1.3.5 ...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Nov 2006, 3:56 AM
#19
jumpdawg avatar

jumpdawg

New Zenner

Join Date:
Mar 2004
Posts:
1
Plugin Contributions:
1

Re: Can not use HTMLarea...Why?

cableguy:

Hello

I have the same problem, but i found the solution.

If u go to admin/includes then u open the file htmlarea.php, then on line 21 u put 2 // then save

looks like this

before changing
echo ' _editor_lang = "'.strtolower(DEFAULT_LANGUAGE).'";' .BR;

after changing
// echo ' _editor_lang = "'.strtolower(DEFAULT_LANGUAGE).'";' .BR;

This work for me, i dont know if this is the good way to make it work or bad way.

Try it and u will see.

This worked for me, however I can't see why it works. I am using English as the default languare and Spanish as the second language

5 Dec 2006, 1:12 PM
#20
wils avatar

wils

Zen Follower

Join Date:
Apr 2006
Location:
Göteborg
Posts:
124
Plugin Contributions:
0

Re: Can not use HTMLarea...Why?

Commenting out the line for tool tips indeed works (so does forcing lang=en).

However, the cause for the issue, as noted below) seems to be that HTML area does not like incomplete language files. Copying en.js to xx.js (xx being your language code) and changing the code in the file itself does work.

Lets try to post updated versions for future inclusions.