# scribe-plugin-link-tooltip

> A Scribe plugin for doing a Medium/Google Docs style tooltip UI instead of a prompt for inserting links.

Latest version **0.0.5** (published 2015-07-09) · 0 weekly downloads

## Install

```sh
npm install scribe-plugin-link-tooltip
pnpm add scribe-plugin-link-tooltip
yarn add scribe-plugin-link-tooltip
bun add scribe-plugin-link-tooltip
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2015-07-09 |
| First published | 2014-11-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.x |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Craig Spaeth |
| Maintainers | craigspaeth |
| Keywords | scribe, plugin, link, tooltip, medium, google docs |

## Links

- npm: https://www.npmjs.com/package/scribe-plugin-link-tooltip
- Repository: http://github.com/artsy/scribe-plugin-link-tooltip
- Homepage: https://github.com/artsy/scribe-plugin-link-tooltip
- Issues: https://github.com/artsy/scribe-plugin-link-tooltip/issues
- npm.io page: https://npm.io/package/scribe-plugin-link-tooltip

## Recent versions

- 0.0.5 (latest) — 2015-07-09
- 0.0.4 — 2015-03-21
- 0.0.3 — 2014-11-10
- 0.0.2 — 2014-11-05
- 0.0.1 — 2014-11-05

## README

# scribe-plugin-link-tooltip

A Scribe plugin for doing a Medium/Google Docs style tooltip UI instead of a prompt for inserting links.

## Example

````javascript
var scribe = new Scribe(scribeElement);
scribe.use(scribePluginLinkTooltip());
````

## Positioning

The tooltip will append itself to the body and use `position: absolute`, `top`, and `left` to position it close to the text you're highlighting. You can use CSS and target `.scribe-plugin-link-tooltip` to adjust styling of the tooltip.

e.g.

````html
<body>
  <div id='scribe'>
    <div content-editable='true' >
    </div>
  </div>
  <form class="scribe-plugin-link-tooltip">
    <input placeholder="Paste or type a link">
    <button type="submit">Apply</button>
  </form>
</body>
````

````css
.scribe-plugin-link-tooltip {
  padding: 10px;
  background: #eee;
  z-index: 2;
  /*
    Adds the following styles via JS
    position: absolute;
    top: xx;
    left: xx;
  */
}
````

## TODO

* Remove jQuery dependency
* Tests

# License

MIT

---
_Source: https://npm.io/package/scribe-plugin-link-tooltip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
