Ticket #214 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

Span and inline elements

Reported by: augustin Owned by:
Priority: major Milestone:
Component: documentation Version: trunk
Keywords: Cc:

Description

Following the example here:  http://files.wymeditor.org/wymeditor/trunk/src/examples/styles.css I managed to create my own classes for block elements (p).

However, I cannot achieve the intended results with inline elements (span, em, strong). Is it supposed to be possible?

The example file above does not contain any inline element. I checked the wiki but found no information about customizing such elements.

Is the only solution to create buttons like the default 'Bold' (strong) and 'Italics' (em) buttons?

I "only" wanted to define several classes for spans.

What's the easiest way to go about it?

Change History

comment:1 Changed 2 years ago by mr_lundis

The built in toggleClass method only works on block elements as of now, support for inline classes can be achieved though, by using the wrap/unwrap methods and/or some custom jQuery scripting.

The inline elemets and RDFa demos might be of interest.

I really need to get jfh to open up the wiki for editing''

Note: See TracTickets for help on using tickets.