Univer
Univer Doc
Features
Hyperlink

HyperLink

📊 Univer Sheet📝 Univer Doc

Insert hyperlinks in the document.

Installation

pnpm add @univerjs/docs-hyper-link @univerjs/docs-hyper-link-ui

Import

import '@univerjs/docs-hyper-link-ui/lib/index.css';
 
import { UniverDocsHyperLinkPlugin } from '@univerjs/docs-hyper-link';
import { UniverDocsHyperLinkUIPlugin } from '@univerjs/docs-hyper-link-ui';

Internationalization

import { LocaleType, Tools } from '@univerjs/core';
import DocsHyperLinkUIEnUS from '@univerjs/docs-hyper-link-ui/locale/en-US';
 
const univer = new Univer({
  theme: defaultTheme,
  locale: LocaleType.EN_US,
  locales: {
    [LocaleType.EN_US]: Tools.deepMerge(
      DocsHyperLinkUIEnUS
    ),
  },
});

Register

univer.registerPlugin(UniverDocsHyperLinkPlugin);
univer.registerPlugin(UniverDocsHyperLinkUIPlugin);

Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.