1.0.3 • Published 2 years ago
editorjs-telegram v1.0.3
Editor.js Telegram embed plugin
As simple as possible. No config whatsoever.
Usage
npm i editorjs-telegram
import Telegram from 'editorjs-telegram'
const editor = new EditorJS({
// ...
tools: {
// ...
telegram: Telegram
}
})
Any pasted link to a Telegram post (https://t.me/username/123
) will be automatically rendered as an embed.
Output
{
url: 'https://t.me/username/123'
}