Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

Problem with Ckeditor

Hi,
I got this error
SCRIPT5009: 'CKEDITOR' is undefined
Default.aspx, line 59 character 9

that is from
https://dl.dropboxusercontent.com/u/40211031/t588.png

when running the deployed project but I had copied the relevant folders of Ckeditor to the server. why?

Here is the markup page
<%@ Page Title="Home Page" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="App16._Default" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>Testing</title>
	<style type="text/css">
		.body
		{
			background-color: #1BA8E0;
		}
		.left
		{
			position: absolute;
			left: 10px;
			border: Groove 1px #ccc;
			width: 320px;
		}
		.right
		{
			position: absolute;
			left: 330px;
			border: none 1px #c00;
			width: 73%;
		}
		.up
		{
			top: 20px;
		}
        .adminRichText
        {
            width:450px;
        }
	</style>
</head>
<body>
	<form id="form1" runat="server">
     <div>
        <asp:TextBox ID="RichTextBox" runat="server" TextMode = "MultiLine" CssClass="adminRichText" ></asp:TextBox>
        <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
        <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" />           
        <asp:Label ID="lblDisplay" runat="server" Text="" Visible = "false" ></asp:Label>
    </div>
	</form>
    <script type="text/javascript" src="<%= ResolveUrl("~/content/javascript/ckeditor/ckeditor.js") %>"></script>
    <script type="text/javascript" src="<%= ResolveUrl("~/content/javascript/ckeditor/adapters/jquery.js") %>"></script>
    <textarea id="ta1" name="MyEA" runat="server" ></textarea>
    <script type="text/javascript">
        CKEDITOR.replace('<%=ta1.ClientID.Replace("_","$") %>', { toolbar: 'Mybar' });
    </script>
    <br />
</body>
</html>

Open in new window

0
HuaMinChen
Asked:
HuaMinChen
1 Solution
 
SriVaddadiCommented:
did you include the corresponding java script file?
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now