refstudycentre / living_word

Moved to https://gitlab.com/rsc-devs/living_word
MIT License
1 stars 0 forks source link

Sub-verse widget for lwc's #7

Closed krokkie closed 8 years ago

krokkie commented 8 years ago

Create a subverse widget where it takes one verse, and allows you to highlight the relevant part that your comment specifically refers to. Similar to tablet-text-selector widget.

rudolfbyker commented 8 years ago

This blocks Issue #11

rudolfbyker commented 8 years ago

Starting with dev-subverse-field. Will make dev-subverse-widget later, as the widget can only be tested if a robust field implementation exists. Learned this the hard way with the scripture module...

rudolfbyker commented 8 years ago

Maybe this field type and widget should be a standalone module? We can pass the bible verse (or any text for that matter) to the widget. The field simply stores

krokkie commented 8 years ago

Yip, agree. Input == text Output = selection, could reduce this to start + len ? Settings: single-range-only; Could later extend this is allow multiple ranges ? Maybe try "rangy" - see an example here: http://rangy.googlecode.com/svn/trunk/demos/highlighter.html https://github.com/timdown/rangy

rudolfbyker commented 8 years ago

Done. TODO: eye-candy. That would be a new issue for a later version.