Solved

Problem with Ckeditor

Posted on 2013-11-04
1
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

696 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