Solved

Problem with Ckeditor

Posted on 2013-11-04
1
313 Views
Last Modified: 2013-11-05
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
Comment
Question by:HuaMinChen
1 Comment
 
LVL 16

Accepted Solution

by:
SriVaddadi earned 110 total points
ID: 39625220
did you include the corresponding java script file?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question