![]() |
Innova HTML Editor External CSS |
Post Reply ![]() |
Author | |
carstone ![]() Groupie ![]() Joined: 12-July-2006 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 29-September-2008 at 2:52pm |
Can anyone tell me where the Innova Studio HTML Editor loads its CSS from? The tags presented do not represent the main css for the rest of the site. I need to set up some standard formating so my product manager can load up products and easily apply. If she uses the text formating option, the code is doubled since it calls out all formating on every div.
Is there a software switch somewhere to tell Innova to get it's CSS from the main CSS? Edited by carstone - 05-October-2008 at 11:17pm |
|
![]() |
|
carstone ![]() Groupie ![]() Joined: 12-July-2006 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
I seem to have figured out my own answer and I want to share it here. I would put it in the Wiki, but I don't have time to learn the format right now.
Background: I wanted to give my product manager specific css styles to use when using the html editor in product creation. When using the formatting options in Innova Studio html editor, it inserts all in-line styles, which seems like a lot of extra code AND it prevents the advantage of sitewide style changes by editing an external css file. (If the person editing the products knew all the site wide css tags created elsewhere AND if they knew how to code them in, you wouldn't need to do this.) I am no css or html wiz, but through persistance, I have discovered a documented way to do this with Innova Studio. (A side note: Innova Studio support is worthless. They would not help me unless I was the developer that purchased the license for the source code. Being a user is not enough.) So, I found documentation scattered around the internet if you search on InnovaStudio documentation. Here are the steps (Oh, yeah, the disclaimer: USE AT YOUR OWN RISK):
Finally, I believe this is so simple and unobtrusive that Early Impact should consider distributing these two changed files with their updates. They could even add some sample formatting. Then, all we would have to do is edit or add styles to the HtmlEditor.css. Thanks Edited by carstone - 05-October-2008 at 11:20pm |
|
![]() |
|
ProductCart ![]() Admin Group ![]() ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() |
Thanks again for your contribution!
We researched this topic and found that the HTML Editor already was equipped to do this. By default, it loads a stylesheet called "test.css" in a directory called "styles". Both don't existing in the Control Panel folder, and therefore nothing is loaded. For ProductCart version 3.5 we will introduce a file change so that pcStorefront.css (the default CSS file used by ProductCart in the storefront) is loaded automatically by the HTML editor in the Control Panel. You can easily edit this so that it loads another CSS document. Please see: http://wiki.earlyimpact.com/developers/controlpanel_htmleditorcss Edited by earlyimp - 12-October-2008 at 7:26am |
|
![]() |
|
cmason ![]() Senior Member ![]() Joined: 18-June-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Excellent posting, I should have been more detailed in my posting on http://www.earlyimpact.com/forum/forum_posts.asp?TID=1750&KW=innova&PID=5690#5690. What I've learned since then is that neither pcStoreFront.css, nor pcHeaderFooter.css works very well as the Innova css file because of the multiple divs/classes. If you set body to have a colored background then anyone using the Innova Editor will have to cope with a colored background.
Instead of trying to maintain a separate css file for use with the editor, I have created a new style sheet for the site. I had to do this anyway because I like to strip out the defaults * { padding:0px; margin:0px; } html, body { margin: 0; padding: 0; } To center tables in FireFox, I add table { margin:0px auto; } Plus, neither pcHeaderFooter.css or pcStoreFront.css has any definitions for tags like h1, h2, h3, a, ul, li, etc. I set the body background to white in my style sheet and then override the body background color in pcHeaderFooter.css. That way everyone using the Innova Editor sees text presented very close to how it'll look when the page is styled. End users s/b instructed to never use Innova's font and font sizes. On the web, there are only a very few fonts that you can be sure that sites guests will have installed. Set your fonts in "body" in your style sheet (current recommendation is "Tahoma, Helvetica, Arial, sans-serif" to cover Mac and PC users) For sizing, Innova creates a static sized, pt based font size that is a huge no-no. Pt sizes vary according to the font that's being used by the browser. Instead create some classes - big, small, etc based on either em or % font sizes. You can set those to not show - more info at http://www.soyjoy.hk/tc/module.htmlarea/documentation/aspnet_toolbar.htm. I don't know why EI didn't include the documentation files in PC. I already had a license so I never really noticed it's absence before.Perhaps it's a licensing issue? |
|
![]() |
|
intour ![]() Senior Member ![]() Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Excellent post and good to know it was addressed in Version 3.5.
It was something that I had wanted to solve but it was never such a priority that i could give it the time.
Thanks
|
|
![]() |
|
ProductCart ![]() Admin Group ![]() ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() |
A clarification on the above: as far as we know there is no documentation for the Innova Studio Editor. We have contacted them about it several times in the past. There used to be some tutorials, but we can't find those either on the Web site.
Also, pcStorefront.css does include style definitions for H1, H2, etc. tags. In order not to conflict with other cascading style sheets, those definitions specifically targets "ProductCart" page elements, such as "pcMainTable". Here is the version of this file that currently ships with ProductCart (as of December 2008). uploads/1/pcStorefront.zip |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |