Я строю пользовательский текстовый редактор с использованием ванильного JavaScript, и мне нужно реализовать функциональность для экспорта контента из редактора в файл RTF (богатый текст). < /p>
Основное Структура моего редактора заключается в следующем: < /p>
...
...
...
```
I need to export the content of the editor, including multiple pages, into an RTF file.
The content is structured within elements, and each page has sections like header, body, and footer.
What’s the best approach to convert the editor’s HTML structure into RTF format?
How can I handle things like multiple pages and rich text formatting while ensuring proper export to RTF?
I can't find solution. I've already used bundle.js from html-to-rtf module but I can't.
var html = document.getElementById('editor');
var rtf_content = htmlToRtf(html);
Подробнее здесь: https://stackoverflow.com/questions/794 ... javascript