Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AnatoliyKozlov/editorjs-telegram-post
Telegram Post Tool for Editor.js 2.0
https://github.com/AnatoliyKozlov/editorjs-telegram-post
Last synced: 3 months ago
JSON representation
Telegram Post Tool for Editor.js 2.0
- Host: GitHub
- URL: https://github.com/AnatoliyKozlov/editorjs-telegram-post
- Owner: AnatoliyKozlov
- License: mit
- Created: 2023-06-11T08:25:12.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-14T20:31:18.000Z (over 1 year ago)
- Last Synced: 2024-07-05T13:48:04.132Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 234 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-editorjs - AnatoliyKozlov/editorjs-telegram-post
README
# Telegram post
![Version of EditorJS that the plugin is compatible with](https://badgen.net/badge/Editor.js/v2.0/blue)
Provides Telegram post widget for the [Editor.js](https://ifmo.su/editor).
## Installation
### Install via NPM
Get the package
```shell
npm i --save editorjs-telegram-post
```Include module at your application
```javascript
import TelegramPost from 'editorjs-telegram-post';
```## Usage
Add a new Tool to the `tools` property of the Editor.js initial config.
```javascript
var editor = EditorJS({
...tools: {
...
telegramPost: TelegramPost,
},...
});
```## Output data
| Field | Type | Description |
| ----- | -------- |----------------------------------------|
| channelName | `string` | telegram channel name |
| messageId | `number` | message id of post in telegram channel |```json
{
"type": "telegramPost",
"data": {
"channelName": "telegram",
"messageId": 236
}
}
```