In order for custom selection to work, I have to change the layout of the document in the sense that each line will be a seperate div element, not seperated by <br/>
Getting there with the application provided selections. Words of a line are now inside a line element. Along with the new formatting, word wrap and page breaks have changed to work with it.
Selection almost works, there are still a bug to work out as because selection only works on a single line at a time.
Selection still does not work all the way, but I believe I am going to start a rewrite of the codebase to make it more modular and maintainable before I go any further.
Removed the files for a rewrite. Hopefully better codebase to continue with.
Rewrite is a go. Almost completely back to origional features.
Started to provide more abstraction for a page.
Went through with JSLint and fixed the code according to its style.
Pagination now works with the new codebase. It still got a little messy, but it is far better than before.
Can now indent. Word wrap bug fixed.
Word wrap fixed. AGAIN. That will be the last time it needs fixed hopefully.
Pagination fixed to work better.
Can now bold, italic, and underline. Using even CTRL+B, CTRL+I, CTRL+U
Fixed pressing right arrow at the end of the document going outside of the page.
Added some comments and documenation for the text cursor.
Last one.
Merge pull request #4 from RyanRiffle/Rewrite

Merge it to master.