Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Location
    Charlottesville, VA
    Posts
    51
    Plugin Contributions
    0

    help question Configure HTMLArea stylesheet?

    I'm trying to configure HTMLArea to use the site's stylesheet so that when my clients edit products and such, they get a nice preview of what they will actually get. I can't seem to get it configured right - the path from there is kinda complicated, wherever that is - I'm not really sure where I'm even supposed to be configuring the path from. So, if anybody has an idea about how to set this up right, I'd really appreciate it.

    Thanks,
    Frank

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Configure HTMLArea stylesheet?

    The "data" for product descriptions is stored in the database, and if you use HTMLArea, the "styles" you apply (using HTMLArea's menu options - such as font family, font size/color, bold, italic, etc, etc) will be embedded in the descriptions' html. This will mean that these styles will over-ride any stylesheet declarations.

    Fundamentally, this content will inherit the "body" style - unless you apply such embedded styles in the description code.

    If there are specific stylesheet styles that you want the description data to use, then you must "edit" the description "text" in HTML (source) mode (use the <> toggle in HTMLArea to see the underlying source code), and then insert the desired stylesheet style ID's and/or classes manually.

    Unless your "input clerk" has a good working knowledge of HTML, it's probably better to just use HTMLArea's menu options to create embedded styles.
    20 years a Zencart User

  3. #3
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,838
    Plugin Contributions
    31

    Default Re: Configure HTMLArea stylesheet?

    Hi,
    I knew I had already posted something about this but the forum search could not find it.
    This is how you get HTMLarea to use your sites stylesheet:

    http://www.zen-cart.com/forum/showthread.php?t=101001

    regards
    Steve

  4. #4
    Join Date
    Jan 2009
    Location
    Charlottesville, VA
    Posts
    51
    Plugin Contributions
    0

    Default Re: Configure HTMLArea stylesheet?

    Quote Originally Posted by torvista View Post
    Hi,
    I knew I had already posted something about this but the forum search could not find it.
    This is how you get HTMLarea to use your sites stylesheet:

    http://www.zen-cart.com/forum/showthread.php?t=101001

    regards
    Steve
    This is the configuration I was looking for. I was looking for the "proper" relative path to the css folder in my custom template, but I worked up a more "direct" path, starting at my account root. I was trying to avoid this since it's going to move and the path will have to change, but in the end, searching for the extra folder to replace in a few places will be faster than doing this "right".

    I see to be liking the quotes today. I'll stop now.

    I actually modified this a little further in the end - decided to import 2 stylesheets, one which is the actual master stylesheet.css, and one to override a few little styles like the site's background image which doesn't need to be in the back of the textarea. It looks like this:

    Code:
    this.pageStyle = "@import url(/includes/templates/inbio/css/stylesheet.css);\n@import url(/includes/templates/inbio/css/editor.css);";

    Thanks for the help.
    Frank

 

 

Similar Threads

  1. Can't rename dist-configure.php because there is already a configure.php
    By mamasylvia in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 17 Mar 2008, 06:57 AM
  2. HtmlArea and my stylesheet
    By nigelt74 in forum General Questions
    Replies: 0
    Last Post: 11 Jun 2007, 01:27 AM
  3. how to configure my configure.php file
    By vr4indian in forum Basic Configuration
    Replies: 4
    Last Post: 30 Oct 2006, 04:00 PM

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