Mercurial > hg > documentViewer
changeset 600:87f3a0e63b13
add markdown plugin for annotator.
author | casties |
---|---|
date | Wed, 21 Nov 2012 17:31:32 +0100 |
parents | 3b79ae4a23ca |
children | 8c0625dfd36e |
files | zpt/viewer/layer_text_annotator.zpt |
diffstat | 1 files changed, 17 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/zpt/viewer/layer_text_annotator.zpt Mon Nov 19 17:15:13 2012 +0100 +++ b/zpt/viewer/layer_text_annotator.zpt Wed Nov 21 17:31:32 2012 +0100 @@ -7,27 +7,22 @@ <link rel="stylesheet" type="text/css" tal:attributes="href string:$rootUrl/template/annotator_files/css/annotator.css" /> - <script - tal:attributes="src string:$rootUrl/template/annotator_files/lib/vendor/json2.js"></script> - <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/extensions.js"></script> - <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/console.js"></script> - <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/class.js"></script> - <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/range.js"></script> - <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/annotator.js"></script> - <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/widget.js"></script> - <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/editor.js"></script> - <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/viewer.js"></script> - <script - tal:attributes="src string:$rootUrl/template/annotator_files/lib/notification.js"></script> - <script - tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/store.js"></script> - <script - tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/permissions.js"></script> - <!-- <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/annotateitpermissions.js"></script> --> - <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/auth.js"></script> - <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/tags.js"></script> - <script - tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/unsupported.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/vendor/json2.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/vendor/showdown.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/extensions.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/console.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/class.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/range.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/annotator.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/widget.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/editor.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/viewer.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/notification.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/store.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/permissions.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/auth.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/tags.js"></script> + <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/unsupported.js"></script> <!-- <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/filter.js"></script> --> <script type="text/javascript" @@ -82,8 +77,7 @@ 'limit' : 20, 'uri' : uri } - }).addPlugin('Tags' - ); + }).addPlugin('Tags').addPlugin('Markdown'); }); // --> </script>