Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Join Date
    Apr 2006
    Location
    Chiang Mai
    Posts
    405
    Plugin Contributions
    0

    Default 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...

  2. #12
    Join Date
    Jun 2006
    Posts
    179
    Plugin Contributions
    0

    Default Re: Can not use HTMLarea...Why?

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

  3. #13
    Join Date
    Jul 2006
    Posts
    144
    Plugin Contributions
    0

    Default Re: Can not use HTMLarea...Why?

    Quote Originally Posted by PeterBKK
    Now I’m confused....

    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

  4. #14
    Join Date
    Jun 2006
    Posts
    179
    Plugin Contributions
    0

    Default 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

    Peter

  5. #15
    Join Date
    Aug 2006
    Posts
    1
    Plugin Contributions
    0

    Default Re: Can not use HTMLarea...Why?

    Quote Originally Posted by 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:

    PHP Code:
      echo '    _editor_lang = "'.strtolower(DEFAULT_LANGUAGE).'";' .BR
    to:

    PHP Code:
      echo '    _editor_lang = "en";' .BR

    Bartek

  6. #16
    Join Date
    Mar 2006
    Posts
    3
    Plugin Contributions
    0

    Default 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.

  7. #17
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default 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!)

    2. 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

  8. #18
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default 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.

  9. #19
    Join Date
    Mar 2004
    Posts
    1
    Plugin Contributions
    0

    Default Re: Can not use HTMLarea...Why?

    Quote Originally Posted by cableguy View Post
    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

  10. #20
    Join Date
    Apr 2006
    Location
    Göteborg
    Posts
    126
    Plugin Contributions
    0

    Default 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.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 17 Oct 2012, 02:13 AM
  2. why can not me create a ez page?
    By linjuming in forum General Questions
    Replies: 2
    Last Post: 12 Oct 2012, 04:31 AM
  3. Can I use htmlarea to edit home page?
    By 510ego in forum Customization from the Admin
    Replies: 1
    Last Post: 20 Feb 2011, 07:47 AM
  4. Why firefox and IE changes a text color in HTMLarea?
    By meetsek in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Aug 2010, 12:34 AM
  5. Why Can't I Use Products and Categories Together?
    By limelites in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 21 Aug 2009, 03:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg