Issue #1605πŸ’¬ AnsweredOpened November 26, 2018by rajeshmaropost0 reactions

Can we implement Paste as Rich text editor options in Rte?

Quick answerby artf

Use insertHTML instead of insertText

Read full answer below ↓

Question

hi @artf I've gone through this Drag and Drop Editor and what an amazing work. I also read your docs and I tried to extend rich text editor but i m stuck b/w some thing. As you can see screen shot below i've added different options for Rich text Editor I implemented "paste as plain text" i want to another option for paste as rich text editor (formatted text with all styling and stuff" So is it possible to do that Like here the code of mine paste option Here i take a common variable with "" this and in cut option i write common = rte.selection().toString(); rte.exec('cut')} because default pas...

Answers (3)

artfβ€’ November 30, 2018

Use insertHTML instead of insertText

rajeshmaropostβ€’ December 3, 2018

hi @artf Here is my code. rte.add('insertHTML', { name: 'insertHTML', icon: '<i class="fa fa-paste"></i>', attributes: {title: 'PasteAsPlainText', "data-tooltip": 'PasteAsPlainText'}, result: rte => { rte.exec('insertHTML', prompt("Because of your browser security settings, the editor is not able t...

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.