Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-09-06 23:42:12

jester12345
New member
Registered: 2005-09-06
Posts: 3

Format Menu - strange tags

I modified the format menu to include a few additions. Here is the code:
    xinha_editors.editor.config.formatblock = {
        "— FORMAT —":'',
        "Normal":'p',
        "Heading 1":'h1',
        "Heading 2":'h2',
        "Heading 3":'h3',
        "Heading 4":'h4',
        "Heading 5":'h5',
        "Heading 6":'h6',
        "Abbreviation":'abbr',
        "Acronym":'acronym',
        "Address":'address',
        "Block Quote":'blockquote',
        "Citation":'cite',
        "Computer Code":'code',
        "Keyboard":'kbd',
        "Preformatted":'pre',
        "Sample":'samp',
        "Short Quote":'q',
        "Variable":'var'
        };

However, when I click on most of these in the editor, I get HTML like this:
<<var>>Foo</<var>>

P and H1-6 work fine. It's just the ones I've added. Am I doing something wrong here? FYI, I'm on Linux/Firefox.

Thanks for your time!

Offline

#2 2005-09-07 06:32:59

kodeabe
New member
Registered: 2005-09-07
Posts: 2

Re: Format Menu - strange tags

Offline

#3 2005-09-07 09:08:33

jester12345
New member
Registered: 2005-09-06
Posts: 3

Re: Format Menu - strange tags

Thanks for the reply!
Actually, that was the post I was following to create my code from. It looks to me like I have successfully copied that example, but I presume I must be doing something wrong.

Offline

#4 2005-09-07 09:11:54

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Format Menu - strange tags

formatblock is provided by the browser.  I believe that only p and h1-6 are handled by the browsers correctly.


James Sleeman

Offline

#5 2005-09-07 09:35:53

jester12345
New member
Registered: 2005-09-06
Posts: 3

Re: Format Menu - strange tags

Ah! So what I was not getting from the post that Kodeabe pointed me to was that I need to use the default format block and do the rest with Stylist.

Offline

Board footer

Powered by FluxBB