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 <r...@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@lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/annotator-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
>
_______________________________________________
annotator-dev mailing list
annotator-dev@lists.okfn.org
https://lists.okfn.org/mailman/listinfo/annotator-dev
Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev

Reply via email to