I want to use CKEditor for a comment field in my ASP.NET MVC 2 application, but can't get it to work. Here is what I have:
The textarea where I try to integrate the editor:
[code]....
And the document ready function:
[code]....
I don't know if the problem is with the TextareaFor helper method, where I tried to set the id to Editor1. I'm pretty new to MVC as well, so I guessed this was how to do it.
anybody knows how to use ckeditor 3.2.1 in asp.net pages. i tried to follow one tutorial but that works only for simple asp.net pages. when i apply it to content page then it is not working.
I'm using ckeditor in my page and it's work fine, except when I'm sending email. The mailbody is empty in FireFox, in IE it works fine. What can it be? Here is my code
I'm not so much into JavaScript, so I'm not able to use the new CKEditor right away. Until now I was using the FCKEditor ASP.net wrapper, which works fine for me. Unfortunatly the official wrapper is not for version 3.
I've googled [URL] but the project is over a year old and seems like a beta to me.
Is there a stable ASP.net wrapper for the CKEditor available? Or how can I implement it into my ASP.net Webapplication project?
I have added ckeditor on my page. the thing is that when i make changes in the value in the ckeditor and post the value to the controller the new posted value is not there (the previous value is coming). the new value comes on posting it second time.the cycle goes on(the changes in the value in the ckeditor comes on the second posting).if i remove the createsuccess call and use html.beginform it work fine(but i have to return the value from the controller). what i am doing wrong
The CKEDITOR seems to integrate with the TextAreaFor helper but I cannot figure out how to avoid throwing a request validation exception. This is my code from my View page:
<div class="editor-field" > <%= Html.TextAreaFor(model => model.WebCopy, 10, 80, "" ) %> <script type="text/javascript"> var CKEDITOR_BASEPATH = '/ckeditor/'; $(function (e) { // to show the CK editor CKEDITOR.replaceAll( { htmlEncodeOutput : 'true' }); }); </script> </div>
I have tried setting <%@ Page ValidateRequest="false" %> and adding <httpRuntime requestValidationMode="2.0" /> to the web.config file.
I am trying to get ckeditor working on my site (having successfully used in on previous sites in the past).I have copied the ckeditor (main download) folder to the root of my site and I have added the FCKeditor.Net_2.6.3 dll to my site (plus added it to the toolbox). I have set the basepath to "~/ckeditor/" and when I view the page in a browser it tells me that the following file is missing.
Does anyone know where I can find this file (as it is nowhere to be seen in the ckeditor_3.3.1 download, in fact I don't have a folder called "editor" at all)?
I've added a CKEditor instance programmatically to my page in the code-behind of my ASP.NET page:
VB.NET:
itemEditor = New CkEditor cell.Controls.Add(itemEditor)
... which works fine. I can get the HTML on the postback and do stuff with it.
However, I also want to do some client-side stuff with it, specifically take a selected item out of another control, and insert it into the text by handling the onchange event.
So, how can I get the name of the editor instance in the JavaScript, so that I can do stuff like:
I am using ckeditor for asp.net as a editor control . i want to integrate ckfinder control with ckeditor to mange file manger with ckeditor control, i am trying from some days with the documentation provided on ckeditor website but not able to integrate.
it's my first question to this nice site :) ... i use ckeditor.com in my asp.net web site and it have a great features but if any check the full feature example when inserting image you have two feature ( upload to server - browse server and choose image ) as shown in below image
http://i45.tinypic.com/2rmp5ds.jpg
My Questions : 1- Browse Server function integrate with another product called CKfinder .. i don't want to use it i search for such one but in asp.net and can be integrating with ckeditor ?
2- is there an example Upload image function that can save in SQL DB and can be integrated with ckeditor ?
I am trying to add some widget-functionality to the CKEditor using custom plugins.. Does anyone have any experience parsing the resulting html or getting the job done in another way?
What I am looking for is to add something like a news-block at a user specified place in the text, like an ordinary image..
I have thought of several options, like just adding an iframe that takes care of the content automatically (from the src url in the iframe), but that way I loose the text formatting/css.. I have also thought of adding the content dynamically with some ajax onload, but that way I might loose some viewers..
Finally I have come to the conclusion that using custom tags like <something options="..." /> or even <div class="something" options="..."></div> and then replacing them with usercontrols is the best solution.. But how to accomplish this? I know how to add controls to other servercontrols, but how to add them easily in some random text? It could be something like putting the text prior to the widget and after into a placeholder and adding the widget-control in between..