Removing ListStyle
Mark Schonewille
m.schonewille at economy-x-talk.com
Tue Jul 30 15:38:32 EDT 2013
Hi Dn,
I don't understand where you get your listindent property from. The
following doesn't create anything like that:
on tabKey
put the listDepth of the selectedLine into myDepth
if myDepth is 1 and the shiftKey is down then
set the listStyle of the selectedLine to empty
else if myDepth > 0 and the shiftKey is down then
set the listStyle of the selectedLine to disc
set the listDepth of the selectedLine to myDepth - 1
else
set the listStyle of the selectedLine to disc
set the listDepth of the selectedLine to myDepth + 1
end if
end tabKey
on rawKeyUp
put the htmlText of me
pass rawKeyUp
end rawKeyUp
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other
colour spaces. http://www.color-converter.com
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/
On 7/30/2013 21:08, Dan Friedman wrote:
> Hello...
>
> How do you remove the listStyle of some text? If you set it to "skip" as listed in the dictionary, you still have remnants of the listStyle. For example, using the htmlText of a field, it starts with:
>
> <p>test</p>
>
> Then you set the listStyle to "disc" and you get this:
>
> <ul type="disc">
> <li>
> <p>test</p>
> </li>
> </ul>
>
> set the listStyle to "skip", and you get this:
>
> <ol type="(null)">
> <p listindent="0">test</p>
> </li>
> </ol>
>
> Setting the listStyle to empty doesn't work either. How do you get it back to this:
>
> <p>test</p>
>
> Anyone know how to remove the listStyle?
>
> Thanks in advance,
> -Dn
More information about the use-livecode
mailing list