You are not logged in.
Pages: 1
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
See this post http://xinha.gogo.co.nz/punbb/viewtopic.php?id=23
Offline
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
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
Pages: 1