","answerCount":3,"author":{"@type":"Person","name":"NorthstarTech","url":"https://github.com/NorthstarTech"},"dateCreated":"2017-11-28T13:13:00Z","dateModified":"2019-09-18T06:56:31Z","acceptedAnswer":{"@type":"Answer","text":"Hi @NorthstarTech, I see that your code is including the grapesjs-plugin-ckeditor.js file. Are you also including that plugin when calling grapesjs.init() as shown here?","dateCreated":"2017-11-28T14:16:44Z","upvoteCount":0,"author":{"@type":"Person","name":"ryandeba","url":"https://github.com/ryandeba"},"url":"https://github.com/GrapesJS/grapesjs/issues/579#issuecomment-347536371"},"suggestedAnswer":[{"@type":"Answer","text":"yes I also added the plugin on grapesjs.init() but not working. It gives the error shown below.","dateCreated":"2017-11-28T14:21:58Z","upvoteCount":0,"author":{"@type":"Person","name":"NorthstarTech","url":"https://github.com/NorthstarTech"},"url":"https://github.com/GrapesJS/grapesjs/issues/579#issuecomment-347537922"},{"@type":"Answer","text":"I'm not super familiar with the ckeditor plugin, but it does appear to that it is expecting the sharedspace ckeditor plugin (see here). I think you just need to be sure and include that plugin in your CKEditor configuration. Here's a link to that plugin, but I bet you could also do a custom build of CKEditor through their website and choose to include that from the Available Plugins list.","dateCreated":"2017-11-28T14:35:48Z","upvoteCount":0,"author":{"@type":"Person","name":"ryandeba","url":"https://github.com/ryandeba"},"url":"https://github.com/GrapesJS/grapesjs/issues/579#issuecomment-347542295"}]}}
Issue #579💬 AnsweredOpened November 28, 2017by NorthstarTech0 reactions

Replacing richtexteditor to ckeditor

快速解答by ryandeba

Hi @NorthstarTech, I see that your code is including the grapesjs-plugin-ckeditor.js file. Are you also including that plugin when calling grapesjs.init() as shown here?

Read full answer below ↓

Question

代码片段TEXT
I am replacing richtexteditor to ckeditor in grapesjs but its not working. Richtexteditor is still showing. How should I resolve this? My code is:
 editor.setCustomRte({
	 enable: function(el, rte) {
		rte = new CKEDITOR.inline(el, {
			toolbar: [{
		           attributes: { "class": "fa fa-image" },
		           command: "open-dialog"
		        } ]  
		}); 
		return rte; 
     },
   });

I also added these scripts, 
<script src="https://cdn.ckeditor.com/4.7.3/standard/ckeditor.js"></script>
<script src="js/grapesjs-plugin-ckeditor.min.js"></script>

Answers (3)

ryandebaNovember 28, 2017

Hi @NorthstarTech,

I see that your code is including the grapesjs-plugin-ckeditor.js file. Are you also including that plugin when calling grapesjs.init() as shown here?

NorthstarTechNovember 28, 2017

yes I also added the plugin on grapesjs.init() but not working. It gives the error shown below. error

ryandebaNovember 28, 2017

I'm not super familiar with the ckeditor plugin, but it does appear to that it is expecting the sharedspace ckeditor plugin (see here). I think you just need to be sure and include that plugin in your CKEditor configuration. Here's a link to that plugin, but I bet you could also do a custom build of CKEditor through their website and choose to include that from the Available Plugins list.

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.