RyanRiffle / Poe

A word processor built with HTML, CSS, and JavaScript
GNU General Public License v3.0
21 stars 4 forks source link

Nested Lists #30

Open RyanRiffle opened 9 years ago

RyanRiffle commented 9 years ago

Nested lists need to be added, as noted by @MrSchism. Poe.TextCursor is the primary thing that might be blocking this.

MrSchism commented 9 years ago

Tab (which would usually be what carries the list/bullet to the indent) doesn't function at all. Using the List/bullet button again restarts the count.

RyanRiffle commented 9 years ago

Right now it gets the current paragraph, and inserts a list after it. The list object inherits from Paragraph so it doesn't indent. It would be simple to make the button work just checking for whether the current paragraph is an instanceof a list, then inserting another. I am just not sure if the Poe.TextCursor implementation is able to support nested Poe.Paragraph (Since the list inherits from Poe.Paragraph)