更新时间:2023-02-08 13:43:06
实际上很容易。首先从网站下载最新代码,并将其解压缩到项目中的目录(我选择/ Scripts / ckeditor )。然后在您的视图中,使用与链接中的完整示例 / a>,它应该工作。
It's pretty easy to do actually. First download the latest code from the website and extract it to a directory in your project (I choose /Scripts/ckeditor). Then in your view, use the same code as in the "complete sample" in this link and it should work.
基本上,重要的步骤是:
Basically, the important steps are:
放置:
Place the:
< script type =text / javascript>
CKEDITOR.replace('editor1');
< / script>
<script type="text/javascript"> CKEDITOR.replace( 'editor1' ); </script>
您的textarea之后,make
确保textarea的id是
,在CKEDITOR .replace()
语句。
RIGHT AFTER your textarea and make sure the id of the textarea is the same in the CKEDITOR.replace() statement.