Solved

Problem with Ckeditor

Posted on 2013-11-04
1
307 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now