Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable highlights by default everywhere #2739

Conversation

seanh
Copy link
Contributor

@seanh seanh commented Nov 24, 2015

Enable highlights by default in the Chrome extension, bookmarklet and embed.

They were already enabled by default in the Chrome extension and
bookmarklet so this only changes the embed.

Highlights are turned on by default in annotator/host.coffee if no
showHighlights option is found.

The extension and bookmarklet no longer need to set showHighlights: true as
this is now the default. The embed (which was not setting showHighlights: true
and so was getting the default setting of false) will now get the new default
setting of true.

For people embedding h into their own pages, they can turn off highlights by
default by including:

<script>
  window.hypothesisConfig=function(){return{showHighlights:false}};
</script>

fixes #2695

Enable highlights by default in the Chrome extension, bookmarklet and embed.

They were already enabled by default in the Chrome extension and
bookmarklet so this only changes the embed.

Highlights are turned on by default in annotator/host.coffee if no
showHighlights option is found.

The extension and bookmarklet no longer need to set showHighlights: true as
this is now the default. The embed (which was not setting showHighlights: true
and so was getting the default setting of false) will now get the new default
setting of true.

For people embedding h into their own pages, they can turn off highlights by
default by including:

    <script>
      window.hypothesisConfig=function(){return{showHighlights:false}};
    </script>
@seanh
Copy link
Contributor Author

seanh commented Nov 24, 2015

Note the embed instructions on the hypothes.is front page need updating when this is deployed.

@nickstenning
Copy link
Contributor

Note the embed instructions on the hypothes.is front page need updating when this is deployed.

Although I'm guessing that you can take care of this with #2740?

@nickstenning
Copy link
Contributor

LGTM.

nickstenning added a commit that referenced this pull request Nov 25, 2015
…t-behavior-of-the-embed-to-highlights-on-by-default

Enable highlights by default everywhere
@nickstenning nickstenning merged commit e226a6c into master Nov 25, 2015
@nickstenning nickstenning deleted the trello-177-change-the-default-behavior-of-the-embed-to-highlights-on-by-default branch November 25, 2015 19:36
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.

Enable highlights by default for embedded H
2 participants