- Initial commit for bullet list
TODO:
- Make bullets bold
- Calculate width of bullet-string according to the font and set headIndent and firstLineHeadIndent according to this width
- Calculating the width of the bullet string according to the font and setting it as paragraph indentation to keep all lines in bullet list aligned
- Added ability to create bullet list by selecting multiple paragraphs at a time
- Detect whether bullet should be inserted or not based on the state of the first paragraph
- Making the inserted bullet bold
- Fixed a memory leak
- Fixed comment for bullet list
- If initial selected range length is 0, after applying bullet place cursor at initial location. This way the user can apply a bullet on existing paragraph, and continue typing after the bullet is inserted
- Resize toolbar and font button to display full font name
- Keep scroll position of toolbar after redrawing content
- Fixed crash when bullet is selected on empty text
- Removed the logic that prevents existing typing attributes to be populated on toolbar during initial load
- Added logic to insert a bullet when entering a new line
- Added a logic to delete bullet (both characters) when back space is selected in front of a bullet
- Fixed a memory leak
- Performance improvement (Don't make a copy of attributed string unless there is a bullet and the mutable copy is needed)
- Workaround for the bug where in iOS6 accessing typingAttribute on an empty text causes a crash
- Added a method to pass html string and populate the rich text editor (Only works on iOS7 +)
- Making bullet list consistent with the way iOS parses html to bullet attributed string
- Added TextAttachment functionality (Inserting images into RichTextEditor)
Fixed #32
Inserting an image loses the attributed and won't apply to text being typed after the image
- Overriding setAttributedText & setText and updating toolbar state to make sure that when the text is changed through code the toolbar gets updated
- We want to update the toolbar when the font changes as well
- Fixed the problem with the color picker where selecting outside of the color picker causes the color to become black.
- Sliding finger to top of the color picker will now select white, and sliding to the bottom will now select black.
- Done button was renamed to select
- There is now a clear button to completely remove color attributed when needed
- On iPhone (iOS7) when modal is presented, textView loses focus, when modal is dismissed textView doesn't become first responder automatically
So there is now a new delegate that let's the RichTextEditor to become first responder after the modal is dismissed
- Added 3 new datasource methods to allow the user to pass a custom colorPicker, fontPicker, or a fontSizePicker to richTextEditor in order to override the use of default pickers
- When backspace is selected and bullet is removed, the paragraph head indent needs to be set to 0 so that new lines won't have bullet indent