[annotator-dev] Activating Markup plugin

Randall Leeds randall at bleeds.info
Sat Apr 30 00:11:59 UTC 2016


You could also use an old version of Showdown. The v1.2.x branch contains
one that should work in the lib/vendor directory.

https://github.com/openannotation/annotator/tree/v1.2.x/lib/vendor

On Fri, Apr 29, 2016 at 5:10 PM Randall Leeds <randall at bleeds.info> wrote:

> If you check the issue tracker you can find a very similar issue [1].
>
> This issue has been fixed. Annotator v1.2.x has never been updated to
> support the newer versions of Showdown.
>
> You could either backport the patch [2] and submit a pull request or try
> to migrate to the development tip of Annotator.
>
> [1] https://github.com/openannotation/annotator/issues/542
> [2]
> https://github.com/openannotation/annotator/commit/83dfed16e2b4f1c9f6f8427f70c5cfb15f247039
>
> On Thu, Apr 28, 2016 at 2:08 AM Ralph Heinkel <rh at ralph-heinkel.com>
> wrote:
>
>> Hi everyone,
>>
>> has anyone had success with activating the markup plugin with annotator
>> 1.2?
>> My minimal setup is:
>>
>> <html>
>>     <head>
>>         <link rel="stylesheet" href="http://assets.annotateit.org/annotator/v1.2.10/annotator.min.css" <http://assets.annotateit.org/annotator/v1.2.10/annotator.min.css>>
>>         <script src="https://code.jquery.com/jquery-1.11.3.js" <https://code.jquery.com/jquery-1.11.3.js>></script>
>>         <script src="https://cdn.rawgit.com/showdownjs/showdown/1.3.0/dist/showdown.min.js" <https://cdn.rawgit.com/showdownjs/showdown/1.3.0/dist/showdown.min.js>></script>
>>         <script src="http://assets.annotateit.org/annotator/v1.2.10/annotator.min.js" <http://assets.annotateit.org/annotator/v1.2.10/annotator.min.js>></script>
>>         <script src="http://assets.annotateit.org/annotator/v1.2.10/annotator.markdown.min.js" <http://assets.annotateit.org/annotator/v1.2.10/annotator.markdown.min.js>></script>
>>     </head>
>>     <body>
>>         <div id="content">
>>             <h1>Titel</h1>
>>         </div>
>>         <script type="text/javascript">
>>         jQuery(function ($) {
>>             $('#content').annotator().annotator('addPlugin', 'Markdown');
>>         });
>>         </script>
>>     </body>
>> </html>
>>
>> However the activation fails, and firebug report the following error:
>>
>>     *To use the Markdown plugin, you must include Showdown into the page
>> first.*
>>
>> Obviously the showdown js module is loaded before annotator in the HTML
>> above, what else can be wrong? Any help is very much appreciated.
>>
>> Thanks,
>>
>> Ralph
>> _______________________________________________
>> annotator-dev mailing list
>> annotator-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/annotator-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20160430/d7d28bf6/attachment-0004.html>


More information about the annotator-dev mailing list