Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorGetting FCKeditor value on Clientside using JS.Getting FCKeditor value on Clientside using JS.
Previous
 
Next
New Post
3/21/2008 7:48 AM
 

hi there!

Is anyone know how to get FCKeditor value client side using javascript ?

I want to get and assign the value to editor  using JS on ClientClick.

any suggestion!!! 


Bye,

 Sahil

 

 

 
New Post
3/24/2008 7:15 AM
Accepted Answer 

Hi there i got the answer for this question. Just write following code.

    var a = FCKeditorAPI.GetInstance(editorInstance.Name).EditorWindow.parent.FCK.GetHTML() ;  

Following code return text from editor, In the Code editorInstance is instance of UR FCKeditor.


Bye,

Sahil

 
New Post
6/26/2008 5:01 AM
 
hi Check it out with following. var text = null; var oEditor = FCKeditorAPI.GetInstance('FCKeditorCommon1') ; if(oEditor) { text = oEditor.GetXHTML(true); } Now, text will return you value of text editor if any thing entered in it.
 
New Post
10/18/2012 11:21 AM
 
Hi
I was facing the same issue of getting the instance of the FCKeditor on client side. I need to set some value to it on client side. Have tried the above code but no luck.
After searching a lot found a solution which is now working perfect.

For accessing the editor, this control is actually rendered into HTML which used the parents control name twice.

For example, if you named your editor “txtContent”, then after rendering it would be "dnn_ctr###_PageName_txtContent_txtContent"

*replace ### with your Module control’s number.

In the javascript you can use code:
var editor = FCKeditorAPI.GetInstance('dnn_ctrModuleControlNumber_ControlPageName_EditorName_EditorName');

For more info visit :
http://www.mindfiresolutions.com/Get-...


-----------------------------------------------------------------------------------------------------------------------------------------
Sunil
Mindfire Solutions






Thanks,
Sunil Kumar [ DNN Developer, Mindfire Solutions,India ]
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorGetting FCKeditor value on Clientside using JS.Getting FCKeditor value on Clientside using JS.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out