Johannes Wilm
unread,Apr 22, 2013, 10:24:54 AM4/22/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to booktype-dev, Juan Carlos Gutiérrez Barquero, Booktype, Kathi Fletcher, Phil Schatz, Internal Aloha Editor Dev, oerpu...@googlegroups.com, ma...@fiduswriter.com
Hey,
as you know, I have been preaching for a long time about the need to use a ton of javascript to move the cursor in a contenteditable environment if you have complex elements, such as footnotes, equations, citations, etc. .
I have asked Takuto of Fidus Writer to open source this part of the source code (AGPL) already ahead of the release of the entire source code which is scheduled to happen this summer. He agreed and here you can find it including a little test app:
This same code, with some modifications, could be used in a Booktype or WYSIWHAT editor. It shouldn't matter if it uses Aloha or TinyMCE, HalloJS or whatever. Most of the code should be the same.
However: This may not be a good idea! It currently takes up about 1100 lines and is only handling the movement of the cursor in Chrome (possibly also Safari). Quite a lot of work would have to go into making it work in Firefox and Internet Explorer. I am sure there are even issues with the Chrome implementation.
But maybe studying the source code can serve as an instructional exercise so that we can come up with something completely different that none of us have thought of so far.
--
Johannes Wilm
BookJS Developer
skype: johanneswilm