我有一个asp.net站点,.net 4框架 . 我对ckeditor有点新意见 . 这里有一个快速入门指南,向您展示如何实现:http://docs.ckeditor.com/#!/guide/dev_installation
我原本以为编辑器没有显示工具栏 . 但是,在进一步调试之后,我认为ckeditor根本没有显示,事实上,textarea仍然显示出来 .
我使用的代码与网站上的示例相同 . 我在这里转发:
<textarea name="editor1" id="editor1" rows="10" cols="80">
This is my textarea to be replaced with CKEditor.
</textarea>
<script>
// Replace the <textarea id="editor1"> with a CKEditor
// instance, using default configuration.
CKEDITOR.replace('editor1');
</script>
我用这种方式包含了脚本ckeditor.js脚本:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DefectEntry3.aspx.cs" Inherits="DefectWriter.DefectEntry3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script src="App_Data/ckeditor/ckeditor.js"></script>
我确定我犯了一个简单的错误 . 任何帮助表示赞赏 .
谢谢!短发
1 回答
我在脚本源中有错误的路径 . 一旦我走上了正确的道路,一切都很好 .