TLF 2.0 Bullets in editor


hi all,

 

i developing editor new tlf 2.0. working fine except bullet's functionality.

 

the goal use bullets dynamically different selected paragraphs.

 

could please tell me if can implement simple solution using listelement , listitemelement considering different cases ? seems quite difficult , tedious.

for instance, new tlf 2.0 use 'ul' , 'li' html tags in order create bullets.  need check when 'ul' , 'li' start , end according user selection.

 

one of these cases example :

  • test 1
  • test 2
  • test 3

with : <ul><li>test 1</li><li>test 2</li><li>test 3</li></ul>

 

then, user selects text 2 , undo bullet :

  • test 1

    test 2

  • test 3

with : <ul><li>test 1</li></ul>test 2<ul><li>test 3</li></ul>

i need calculate indexes of first listelement, paragraph , second listelement in order recreate proper list.

 

is there simple way implement example , other cases ?

has implemented similar solution : dynamic bullet functionality rich text editor using listelement , listitemelement ?

 

thanks lot tips , help.

 

regards,

mc

hi,

 

if understand correctly there new operation in develoment (not yet available) should help.  think want promote children of second listelement child of listitem.  inprocess operation - tentatively called promotechildren should you.  way won't have bullet.  way set content property of second listitem's listmarkerformat "none".

 

note tlf 2.0 doesn't have <ul> or <ol> tag.  instead has single <list> tag maps listelement.  without built-in css ul , ol don't make sense.  used selectors list style in browsers.  listelement's can have paragraphs, divs, other lists listitems direct children.

 

hope helps,

richard



More discussions in Text Layout Framework


adobe

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい