Skip to content

MNT-17527 Add support for annotation layer#2

Open
yregaieg wants to merge 1 commit into
AlfrescoArchive:masterfrom
yregaieg:clickable-links-in-previews
Open

MNT-17527 Add support for annotation layer#2
yregaieg wants to merge 1 commit into
AlfrescoArchive:masterfrom
yregaieg:clickable-links-in-previews

Conversation

@yregaieg

Copy link
Copy Markdown

In order to have clickable links in PDFJS viewer in Alfresco Share, the annotation layer needs to be rendered. In this PR, I added the support for this feature and added an activation flag (defaulting to true) as discussed with @esplinr.
Alfresco can switch that back to false by default and have a config entry (in share-config-custom.xml for instance) defining that setting.
IMHO it should be active by default (as it was with the swf previews back in 4.x) and customers can opt out of the feature by a simple extension setting the activation flag to false.

@davidcognite

Copy link
Copy Markdown
Contributor

Thanks for the PR! As referenced in the title, we've already got an MNT ticket for this: https://issues.alfresco.com/jira/browse/MNT-17527 - so will continue the discussion there about getting this fix reviewed and merged.

this.config = config || {};
this.textContent = null;
this.textLayerDiv = null;
this.annotationLayerDiv = null;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems you removed the parameter variable textLayerDiv here

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forget it. You created a copy of the original one, and then changed it to annotationLayerDiv... sorry

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@douglascrp well... I reused an existing (duplicate property), instead of adding a new one..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants