Even though Freeway conflates the text style with the structure in
lists, the two are completely separate concepts in HTML. TinyMCE is
hewing closely to the HTML side of things, and when you use the
Unordered List button, you are creating a list as a text container.
Here’s what the code looks like:
<ul>
<li>Some text</li>
<li>Some more text</li>
</ul>
Freeway actually creates this same code when you create a “list” style
and apply it to a paragraph or paragraphs of text. But in HTML, lists
are not just a way to style the text, they’re a different structure.
If you could imagine a set of paragraphs styled to look like a list,
that might look like this:
<p style="list-style-type:disc; display:list-item;">Some text</p>
<p style="list-style-type:disc; display:list-item;">Some more text</p>
While this would be visually identical to the first example, it would
not have the same semantic flavor as the first example – the two
paragraphs would not be related in any way to one another, while in
the first example, the two list items share a common parent – the ul
tag – and that means they are closely related at a structural level.
Once you’ve wrapped your head around this structural difference, the
way to create a style for your list items is pretty clear. You can
either select the text inside your list (after you’ve given it the
list structure using the unordered list button) and apply one or more
text styles to it, or you could create a tag-only style in Freeway
that applies to all <li>
tags inside your WebYep element and gives
them a specific visual style.
Walter
On Aug 1, 2011, at 10:54 AM, Mark wrote:
Hi Max
I’ve set up h1 and h2 styles etc and seen that these styles are used
by TinyMCE.
How do I get bullet points? Do I create a ‘style’ or a ‘class
style’? If it is a style what tag do I give it? In TinyMCE do I
select the text, hit “unordered list” and then select the
appropriate ‘style’? or can I simply select the text and then the
appropriate “paragraph” style?
Thanks
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options