[annotator-dev] Support for annotation inside textarea and input fileds (annotator.js)
byoung at bigbluehat.com
Thu Mar 29 19:36:22 UTC 2018
Additionally, you might want to checkout http://prosemirror.net/
It's more "foundational" and can be used to build idiosyncratic editors. It has some concepts that are similar to annotations. If I were building a Web Annotation enabled editor right this second (which sadly...I am not), then I'd pick ProseMirror and integration the Web Annotation Data Model for portability of editing/reviewing/etc.
It'd be great to hear how you progress or a link to your project once it's far enough a long to see!
From: annotator-dev <annotator-dev-bounces at lists.okfn.org> on behalf of Randall Leeds <randall at bleeds.info>
Sent: Thursday, March 29, 2018 12:06:12 AM
To: Sooraj Sethumadhavan
Cc: annotator-dev at lists.okfn.org
Subject: Re: [annotator-dev] Support for annotation inside textarea and input fileds (annotator.js)
Annotator represents selections using XPath for elements and text offsets. Textarea elements contain text, but cannot contain other content. Therefore, it's possible to get Annotator to find content within a textarea but not to highlight it.
Editors like TinyMCE don't use textarea elements. Instead, they use contenteditable to edit and create HTML content. It's possible to use Annotator to highlight or otherwise annotate this content. However, annotating dynamic content is not a built-in feature. Depending on the editor, Annotator may or may not confuse it, conflict with it, or be broken by it. Integrations should be possible but are not provided in the core library.
On Wed, Mar 14, 2018 at 1:20 AM Sooraj Sethumadhavan <sooraj.sethumadhavan at gmail.com<mailto:sooraj.sethumadhavan at gmail.com>> wrote:
I'd like to know if annotation of contents of textarea and input fields are supportedin Annotator.js. I have an application that employs tinymce and appendgrid libraries. I want to have the annotator feature for the text inside these. Is it possible? If so, could you please guide me.
annotator-dev mailing list
annotator-dev at lists.okfn.org<mailto:annotator-dev at lists.okfn.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the annotator-dev