Styles in HTML Textbox

This section can be used to submit suggestions for Extension Builder.
Note that this section is not monitored for support.
Forum rules
This forum section can be used to submit suggestions for Extension Builder.
Note that this section is not monitored for support.
Post Reply
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Styles in HTML Textbox

Post by Pablo »

As mentioned in our previous discussion, the HTML textbox is a separate application, it generates its own HTML code. It cannot access the style from the Style Manager.
The HTML textbox is a HTML editor based around the built-in editor functionality of MSHTML (the rendering engine of IE)/. Microsoft has build this component, we cannot change its behavior. We just thought it would make a nice additional to the WWB tools. It is provided "AS IS", for those who find it useful. It was not designed to be part of WYSIWYG Web Builder.
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Styles in HTML Textbox

Post by Navaldesign »

Please note that although you can not access the styles, IF your code in the HTML Textbox is edited so that it uses the styles, the content will appear correctly styled if you Preview or Publish the page.
It will not be correctly viewed in the WB workspace but will correctly display when previewed or published.
To make this work 100% make sure that in options you set WB to create a global CSS file.
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Styles in HTML Textbox

Post by Navaldesign »

If, as I mentioned, you set WB to use global file for styles, then the code

<LINK REL=StyleSheet HREF="mystyle.css" TYPE="text/css">

is automatically added by WB and the global file is accessible by all your pages.

So, if, in example, you define a Hyperlink style in WB, then, in the HTML Textbox, you simply need to use something like (just an example of linking text) :

<a href="http://www.domainname.com/" class="mysttyle">Text to link</a>

where the red part is added by you in the HTML textbox code (switcing to HTML mode) and "mystyle" is one of the styles you have defined in WB.
www.dbtechnosystems.com
suflex
 
 
Posts: 6
Joined: Thu Sep 27, 2012 9:26 pm

Re: Styles in HTML Textbox

Post by suflex »

I'm late to this party, but I also wished html textbox could use wwb styles. However, I think I may have found a solution and would like some confirmation if this makes sense.

1. Apply the predefined styles given by the html textbox when writing your content
2. Publish your page
3. replace the html textbox's css files with the desired css file

I figured the fastest way to do that would be to make publish empty page using the wwb style you want (without html textbox) use the resulting css file instead of the one generated by html textbox.

Does this solution make sense?
Post Reply