Announcement

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

#1 2010-01-08 11:54:38

james_bell
New member
Registered: 2010-01-08
Posts: 4

Adding Span option to the format block

I am trying to add the a span option to the format block, but it isn't working. The option is showing up in the menu but not doing anything when I choose it.

Here is the code I am using [inside a settings file]

xinha_config.formatblock = {
    "— format —"  : "",
    "Heading 2": "h2",
    "Heading 3": "h3",
    "Heading 4": "h4",
    "Heading 5": "h5",
    "Heading 6": "h6",
    "Normal"   : "p",
    "Span"       : "span",
    "Address"  : "address",
    "Formatted": "pre"
  };

Everything else is working fine. Any help would be appreciated.

Thanks

Offline

#2 2010-01-10 21:41:32

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

Re: Adding Span option to the format block

Span is not a block element, you can't do it.


James Sleeman

Offline

#3 2010-01-11 02:54:35

james_bell
New member
Registered: 2010-01-08
Posts: 4

Re: Adding Span option to the format block

Is there any way of getting round this??

Last edited by james_bell (2010-01-11 11:51:45)

Offline

#4 2010-01-11 19:30:01

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

Re: Adding Span option to the format block

Not using format block.  It's built into browsers, it only understands block elements.

Look through the plugins, maybe something there, or create your own to wrap the appropriate span.


James Sleeman

Offline

#5 2010-01-12 05:18:59

james_bell
New member
Registered: 2010-01-08
Posts: 4

Re: Adding Span option to the format block

Could you give me a list of all the cross browser supported block elements for xihna.

Thanks for your help.

Offline

#6 2010-01-12 07:48:20

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

Re: Adding Span option to the format block

All block elements are supported to my knowledge.  Refer HTML specifications.


James Sleeman

Offline

#7 2010-01-12 08:09:05

james_bell
New member
Registered: 2010-01-08
Posts: 4

Re: Adding Span option to the format block

Last thing, I have tried to use blockquote but it only seems to work in Firefox and not Internet Explorer. Any ideas?

Offline

#8 2010-01-12 19:33:57

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

Re: Adding Span option to the format block

Blockquote is probably only handled by the indent/outdent function in IE I suspect.  This is all behaviour defined within the web browser itself.


James Sleeman

Offline

Board footer

Powered by FluxBB