I recently transitioned from using bootstrap-wysihtml5 to integrating ckeditor in my asp.net and vb.net web application at the request of clients. To accomplish this, I followed these steps:
Utilizing ckeditor_4.4.1, I placed the ckeditor folder in the root directory and linked it in the master page as shown below.
<%@ Master Language="VB" CodeFile="E4.master.vb" Inherits="_resx_E4" %>
<!doctype html>
<html lang="en">
<head runat="server">
<title></title>
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,100' rel='stylesheet' type='text/css'>
<script src="/ckeditor/ckeditor.js" type="text/javascript"></script>
</head>
The header of the content page remained unchanged, similar to the example provided.
<%@ Page Page Title="" Language="VB" MasterPageFile="~/_resx/E4.master" AutoEventWireup="false" CodeFile="new.aspx.vb" Inherits="E4_Jobs_new" ValidateRequest="false" %>
<%@ Page <%@ Register Src="~/_controls/ucApplicationQuestions.ascx" TagPrefix="Application"
TagName="Questions" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
Lastly, on the content page, the text area code was added as follows:
<div><label>Description (required)</label>
<div>
<textarea runat="server" id="txtDescription" name="txtDescription" class="ckeditor" style="width: 98%; height: 250px;" ></textarea>
</div>
</div>
Although the ckeditor toolbar appears in the textarea, the website does not recognize or save any value entered in the field, making it impossible to submit the form as required. Despite attempting to input text directly or by copying from a Word file, the textarea remains blank. Any assistance with resolving this coding issue would be greatly appreciated.