@univerjs/sheets-hyper-link adds the core hyperlink model, commands, and sheet-specific services for Univer Sheets.
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|---|---|---|---|---|---|
@univerjs/sheets-hyper-link |
UniverSheetsHyperLink |
No | Yes | Yes | No |
pnpm add @univerjs/sheets-hyper-link
# or
npm install @univerjs/sheets-hyper-linkStart with the integration setup for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
import { LocaleType, mergeLocales, Univer } from '@univerjs/core';
import { UniverSheetsHyperLinkPlugin } from '@univerjs/sheets-hyper-link';
import EnUS from '@univerjs/sheets-hyper-link/locale/en-US';
const univer = new Univer({
locale: LocaleType.EN_US,
locales: {
[LocaleType.EN_US]: mergeLocales(EnUS),
},
});
univer.registerPlugin(UniverSheetsHyperLinkPlugin);Use this package with @univerjs/sheets-hyper-link-ui when users need hyperlink editing UI.
- Import
@univerjs/sheets-hyper-link/facadewhen using this package through Univer Facade APIs.