Skip to content

Feat/quill tg spoiler#5

Open
DariaKamenskaya wants to merge 3 commits intoProCharity:mainfrom
DariaKamenskaya:feat/quill-tg-spoiler
Open

Feat/quill tg spoiler#5
DariaKamenskaya wants to merge 3 commits intoProCharity:mainfrom
DariaKamenskaya:feat/quill-tg-spoiler

Conversation

@DariaKamenskaya
Copy link
Copy Markdown

Добавить кастомный тег спойлер в текстовый редактор для рассылки сообщений

class ColorGreyBlot extends Inline {}
ColorGreyBlot.blotName = 'tg-spoiler';
ColorGreyBlot.tagName = 'span';
Quill.register('tg-spoiler', ColorGreyBlot);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В редакторе будет выводиться надпись tg-spoiler? давай тогда просто spoiler.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это для создания класса стилей tg-spoiler у тега span. вроде так (spoiler) текст спойлеров должен уходить в Bot API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants