I was able to get your module installed and the annotation block shows up properly, but when i try to add an annotation i get the following error:

Please select the paragraph you want to annotate.

without any capacity to choose any text in the body field.

tried both chrome and firefox both as admin as an authenticated user.

Comments

hartcapl’s picture

Issue summary: View changes
captainpants’s picture

StatusFileSize
new1.9 KB

I suspect that you're using a theme that does not print out body classes from hook_preprocess_page().

I've added a class to the body field of annotatable content instead of the body in the hopes that this will be more compatible with the way people set up their drupal theming.

Please apply the attached patch and tell me if it works.

captainpants’s picture

Assigned: Unassigned » captainpants

Assigning this issue to myself.

hartcapl’s picture

Success.

I was using the Bootstrap 3 theme on a test site, but the patch has solved the issue. the same theme also has an issue with the annotations once created. looks like the "Section n annotations" header text is too beefy, so the text and the "v" are obscured. but it does still work.

and thanks for this module. i can see it being very useful.

captainpants’s picture

Status: Active » Fixed

Thanks for bringing this to my attention.
I committed the change and it should show up in the snapshot release shortly.

As for your issue with "Section n annotations", there are some recommendations within this module's documentation that state...

"Use a LARGE block region for displaying annotations. This block region should also be to the left or right of the content being annotated.". 

Increasing the size of your block region should solve that issue.

You should also note that all the css provided by the module is just default stuff and I encourage you to overwrite it with your theme's css.

captainpants’s picture

Status: Fixed » Closed (fixed)