[kupu-dev] Inserting 'small' tag does not work (FF3)
Duncan Booth
duncan.booth at suttoncourtenay.org.uk
Mon Jan 12 14:37:22 CET 2009
"gogo at bluedynamics.com" <gogo at bluedynamics.com> wrote:
> I have a problem using "small" in kupu_config as "Style".
> My definition section for "Styles" looks looks like this:
>
> """
> Small|small
> Heading|h2
> Subheading|h3
> Literal|pre
> Discreet|p|discreet
> Pull-quote|div|pullquote
> Call-out|p|callout
> Highlight|span|visualHighlight
> Odd row|tr|odd
> Even row|tr|even
> Heading cell|th|
> """
>
> I just added the first line to the defaults: 'Small|small', using
> kupu1.4.12. When i try to use the style it shows up in the dropdown
menu,
> the other styles seem to work as they should, but *small* does not.
>
> What am I doing wrong here???
See the documentation. Specifically:
Kupu allows you to specify styles for paragraphs (P or DIV tags),
character styles (SPAN tags), and table elements (TABLE, THEAD, TBODY,
TFOOT, TR, TH, TD tags). The table styles are only available while the
cursor is inside a table, other styles are available at all times.
Other tags not mentioned in the documentation may work on some browsers
but not on others. I'm afraid all I can suggest short term is that you
define a class and use <span class="small"> instead of the <small> tag.
Even SPAN tags use something of a kludge: the browsers don't support a
clean way to apply SPAN tags so kupu applies FONT tags and then fixes
them up afterwards. It is probably a fairly small change to the code to
use the same kludge for some other desirable tags such as small or cite.
See kupubasetools.js line 746 onwards if anyone fancies contributing a
patch.
More information about the kupu-dev
mailing list