Re: Kupu character style for inline literals

Duncan Booth <duncan.booth-+q9EdC6cpuuCZ5vHv/[email protected]>
Newsgroups gmane.comp.web.zope.plone.documentation
Message-ID <[email protected]>
"Alexander Limi" <limi-z4DKO/[email protected]> wrote:

> On Sun, 11 Jan 2009 19:39:45 -0800, Veda Williams  
><veda-PRw/[email protected]> wrote:
>> I'll take a stab at this tomorrow. Am I to understand that we need a 
>> style
>> added called "code" and that it needs to give us the same look and
>> feel  as
>> <pre></pre>? Or am I missing something here?
> You are missing something here. ;)
> There's already a style for this, it's called the <code> tag — it's
> just  not available as a character style in Kupu right now.
> I tried adding:
>    Code tag|code
> …to the Kupu control panel, but it didn't work (the entry shows up,
> but it  doesn't insert the code tag).

Kupu only inserts tags which are supported by browser execCommand and span
tags. It does the span tags by inserting FONT tags (which are supported)
and then changing them into SPAN. (So don't try to use FONT tags in Kupu:
they'll probably be mutated accidentally.)

I've had a brief look at the code and I think it should be pretty trivial
to support other inline tags in the same way.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.