HyperLink
Facade API | Paid Version | Univer Server | Univer on Node.js | Preset |
---|---|---|---|---|
✅ | - | - | - | UniverDocsHyperLinkPreset |
Insert hyperlinks in the document.
Presets Installation
import { Tools } from '@univerjs/core';
import { createUniver, defaultTheme, LocaleType } from '@univerjs/presets';
import { UniverDocsCorePreset } from '@univerjs/presets/preset-docs-core';
import UniverPresetDocsCoreEnUS from '@univerjs/presets/preset-docs-core/locales/en-US';
import { UniverDocsHyperLinkPreset } from '@univerjs/presets/preset-docs-hyperlink';
import UniverPresetDocsHyperLinkEnUS from '@univerjs/presets/preset-docs-hyperlink/locale/en-US';
const { univerAPI } = createUniver({
locale: LocaleType.EN_US,
locales: {
enUS: Tools.deepMerge({
{},
UniverPresetDocsCoreEnUS,
UniverPresetDocsHyperLinkEnUS
}),
},
theme: defaultTheme,
presets: [
UniverDocsCorePreset(),
UniverDocsHyperLinkPreset(),
],
});
Advanced Installation
npm install @univerjs/docs-hyper-link @univerjs/docs-hyper-link-ui
import { LocaleType, Tools } from '@univerjs/core';
import { UniverDocsHyperLinkPlugin } from '@univerjs/docs-hyper-link';
import { UniverDocsHyperLinkUIPlugin } from '@univerjs/docs-hyper-link-ui';
import DocsHyperLinkUIEnUS from '@univerjs/docs-hyper-link-ui/locale/en-US';
import '@univerjs/docs-hyper-link-ui/lib/index.css';
const univer = new Univer({
theme: defaultTheme,
locale: LocaleType.EN_US,
locales: {
[LocaleType.EN_US]: Tools.deepMerge(
DocsHyperLinkUIEnUS
),
},
});
univer.registerPlugin(UniverDocsHyperLinkPlugin);
univer.registerPlugin(UniverDocsHyperLinkUIPlugin);