如何在React组件中使用ckeditor完整版 [英] how use ckeditor full version in react component

查看:854
本文介绍了如何在React组件中使用ckeditor完整版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中使用react-ckeditor,这没问题。
,但是我需要在页面中使用ckeditor完整版作为编辑器

I'm using the react-ckeditor in project this is load ok. but I need to use ckeditor full version as editor in the page

我如何使用react-ckeditor完整版而不是标准版本?

how could I use react-ckeditor full version not the standard version?

推荐答案

来自文档


默认情况下,CKEditor 4 React组件加载标准创建第一个编辑器时,CDN会提供最新CKEditor 4版本的预设。可以通过更改CKEditor.editorUrl变量的值以指向所需的CKEditor脚本位置来更改此行为:

By default, the CKEditor 4 React component loads the standard preset of the latest CKEditor 4 release from the CDN when creating the first editor. This behavior can be altered by changing the value of the CKEditor.editorUrl variable to point to the desired CKEditor script location:

CKEditor.editorUrl = 'https://your-website.example/ckeditor/ckeditor.js';


可以从 https://ckeditor.com/ckeditor-4/download/ 并在您的源代码中上拉(例如,在中public / ckeditor-4 文件夹(如果使用create-react应用)。

A zip file can be downloaded from https://ckeditor.com/ckeditor-4/download/ and upzipped inside your source code (e.g. inside public/ckeditor-4 folder if using create-react app).

这篇关于如何在React组件中使用ckeditor完整版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆