Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4121496
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:21:32+00:00 2026-05-20T23:21:32+00:00

I use CKEditor to enter rich text descriptions in different views. My ckeditor tags

  • 0

I use CKEditor to enter rich text descriptions in different views. My ckeditor tags looks like

<ckeditor:ckeditorcontrol id="CKEditor1" runat="server" toolbar="Basic" />

Let me note down the issues am facing:

  • Even though my toolbar is basic am getting full option toolbar for editor.
  • In edit view the description is to be there in the ckeditor as its text. How can this be done. The textbox for Instruction name is given as <%=Html.TextBoxFor(m => m.InstructionName, new { @class="formstyle"} )%> which shows the InstructionName in edit view. Which works fine. I want the same with InstructionDesc which is a ckeditor.

I tried

<CKEditor:CKEditorControl ID="CKEditor1" runat="server" Toolbar="Basic" name="docDesc" Text=<%=Model.DocDesc %> />

but this is throwing error:

An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Server tags cannot contain <% ... %> constructs.

Please help me solve these issues. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T23:21:33+00:00Added an answer on May 20, 2026 at 11:21 pm

    You’ll probably need to move away from using the asp.net style control and create a text area either manually or through an HTML helper. We import the CKEditor javascript in the head of our master page and then the following in the view when CKEditor is used:

    <%= Html.TextAreaFor(m=>m.InstructionDesc) %>
    <script type="text/javascript">CKEDITOR.replace('InstructionDesc');</script>
    

    That should convert the text area into a CKEditor instance. The name inside the replace will need to match the ID of the text area.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I like CKEditor and my server uses PHP. I want to use CKEditor to
I created a blog (for coding practice). I use a Rich Text Editor (ckeditor)
Here is the scenario. I want to use CKEditor for a rich text field
I want to use Ckeditor for Entering text and I want to save that
In my Asp.net MVC 1.0 application I want to use CKEditor as my Rich
I'd like to use CKEditor's Image plug-in separately from the rest of CKEditor. Basically
With CKEDITOR, when I use JS to get the contents of the Text Editor,
I am currently using django-ckeditor to allow users to enter a rich description for
Sometimes users copy and paste text from different sources to CKEditor, but I want
I use ckeditor and would like to be able to give the use a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.