Coder Social home page Coder Social logo

openannotation / annotator-wordpress Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 12.0 361 KB

Annotator Wordpress plugin providing annotations in wordpress using the Annotator

Home Page: http://annotatorjs.org

PHP 81.62% Ruby 1.87% JavaScript 1.47% Shell 8.00% HTML 7.04%

annotator-wordpress's People

Contributors

afiore avatar nickstenning avatar tilgovi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

annotator-wordpress's Issues

Moderating blog annotations

As they already do with comments, blog administrators will probably want to edit or delete the annotations created by users with lower editorial privileges. Perhaps we need to devise a mechanism whereby blog owners can exert editorial control over those annotations that are created and displayed directly through the Wordpress plugin. At the same time, they should not have editorial control over the annotations created and displayed independently through other clients (i.e. the bookmarklet, as well as other possible clients such as browser extensions ). It seems to me that, although in both cases the data store may be the same, these two are substantially different spaces of debate and they should be regulated by different authorities (the consumer / site owner in the former case, the service provider in the latter ).

Allow to override the default js snippet generated by the plugin

Power users may want to override the way the Wordpress plugin instantiates the Annotator. It would be perhaps good to provide the blog owner with to possibility of injecting his own JavaScript snippet and running such snippet right before than the Annotator gets instantiated.

Breaks JQuery Functions

This plugin causes problems with other JQuery functions.
Could possibly be caused by it including it's own JQuery?

Better system for defining what content should be annotable

Currently the plugin includes the Annotator on the basis of a single URL pattern defined in the settings page. This is far from being a satisfactory solution, and is not fine grained and user friendly as it should be. On the contrary, It's practically impossible to come up with a regex that matches posts belonging to one or multiple tags or categories.

For instance, if the index page for the blog posts tagged 'bar' is accessible at the URL http://blogaddress/tags/bar, this will be matched by the regex: /\/tags\/bar\/.*$/. However, there is practically no way to define a regex for matching the single URLs of the posts tagged 'bar', as these are typically generated by combining only the date and title, and not their categories or tags .

Perhaps a better approach would be to devise an inclusion mechanism based only on two criteria.
The Annotator would be automatically included for:

  • All blog posts belonging to the special category annotable
  • All blog posts having the custom field annotable set to true.

Finally, the annotator will not be included if a blog post belongs to the annotable category but also has the annotable custom field set to false.

css selector is wrong for latest wordpress

Default wordpress select is .entry-content and does not seem to be present in default wordpress twentyeleven theme. We should

a) fix this

b) really highlight in installation instructions that you need to configure this (though I worry about this -- many WP users are non-technical, perhaps we need to some auto-guessing or something ...)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.