Issue #371💬 AnsweredOpened October 4, 2017by edwardjiawei0 reactions

Enable the default RTE with a custom function

Quick answerby artf

Hi @edwardjiawei, it doesn't work because the command: 'tlb' in RichTextEditor.add it's not GrapesJS's Command but the one from execCommand's API (eg. 'fontSize', 'insertHTML', etc.) so currently, you can't attach custom behaviors to RTE. I close it because I don't plan to support the current RTE anymore, instead, I'l...

Read full answer below ↓

Question

Do my API call correctly, want to add a RTE with custom function to add a link/open new windows/open modal: Command work for fontSize but the dropdown are not aligned and show the option value Command not work for insertHTML. Function not working (Intended/Not a Features) http://grapesjs.com/demo.html I think even command not working to add specific hardcoded HTML

Answers (3)

artfOctober 4, 2017

Hi @edwardjiawei, it doesn't work because the command: 'tlb' in RichTextEditor.add it's not GrapesJS's Command but the one from execCommand's API (eg. 'fontSize', 'insertHTML', etc.) so currently, you can't attach custom behaviors to RTE. I close it because I don't plan to support the current RTE a...

edwardjiaweiOctober 4, 2017

Hopefully support some RTE with more permissive license like MIT or BSD. I guess some companies might even don't choose BSD. CKEditor integration are quite easy, but the license might not be good for some companies.

Thanks anyway.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.