Getting The Value Of A CKEditor?

Jan 7, 2010

I am building a content editor with Ajax and am working on submitting content. I have a form built with a CKEditor element and I was wondering how to get that with Javascript to submit with my post.

View 3 Replies


ADVERTISEMENT

Getting The Value Of A CKEditor Instance - Get Null

Jan 8, 2010

I am new to Javascript and am working with Ajax. I am building a content manager for my site, and I have an instance of CKEditor. I was wondering what the javascript would be to get the value of the textarea. Normally with a textarea I use formname.elementname.value. When I use that with the CKEditor I get a null value.

View 1 Replies View Related

Cannot Get The Value Of The Specific Ckeditor Instances

Oct 26, 2010

I have a cms page that uses multiple instances of ckeditor. In the previous version of this cms we used FCKeditor. The problem is that we cannot get the value of the specific ckeditor instances. The ckeditor documentation says that I can get the value of an instance like this: CKEDITOR.instances.editor1.getData() This assumes that my ckeditor instance is associated with a form field called "editor1". My question is, how do I modify the code so that "editor1" is a variable?

View 2 Replies View Related

Onkeywhatever In CKEditor - Reference The Iframe Itself

Apr 2, 2009

I've been bashing my head in a vain attempt to achieve the desired result... i.e. having the ability to catch an event inside of an iframe, generated by CKEditor... all in all, I've tried numerous ways to reference the iframe itself, and I've managed to succeed... though catching an event still remains a dream. Google turned out to be less than helpful and well.. CKEditor's own event listeners really don't do a whole lot of good either (Not for me anyways). The code is being tested with the sample provided with the plug-in... for double-click on div to begin editing it. Here is the code I have at the moment:

iframes = document.getElementsByTagName("iframe");
iframes[0].contentWindow.document.body.onkeypress = function () {
alert('Event caught!');
}

Obviously, the alert is there for testing purposes, but so far I've been unable to get it to fire.

View 2 Replies View Related

Access To Events Save CkEditor?

Nov 12, 2011

i in my project use of CKeditori need Access to event save itnamely i want user on click on button save i do a action

View 2 Replies View Related

Free CKEditor + CKFinder Alternative?

Feb 6, 2010

Does anyone of you knows a good free CKEditor + CKFinder alternative?

View 2 Replies View Related

Editor CKEditor - Don't See Images Upload

Mar 30, 2011

I'm using the editor CKEditor [URL] for my forum that I developed. When I create a new topic in my forum is so good, now when I see the issue that the images you upload do not see and I look at Funt code looks like this:

<img alt="" src="http://tecnolatino.com/wp-content/uploads/2010/08/comprar-una-c%C3%A1mara-digital.jpg" style="width: 547px; height: 320px;" />

View 3 Replies View Related

JQuery :: Doesnt Show Ckeditor's Div And Textarea

Aug 11, 2011

The first time I open the page, everything is running. I press the edit button to edit the subject, and div is showing. I am using CKeditor and first time i can edit my post. Then when i press edit button again, doesnt show ckeditor's div and textarea. Only show status div. And It wrote "succesfully".

I will use screenshoots...This is for First time to click edit button...

And When i click submit button ...is writting "Loading" then "succesfully"on background..

And When i click edit button again.... Only writting "succesfully"..

My codes...

Submit Click Event

Ajax codes:

View 1 Replies View Related

Updating Div With Text From Ckeditor / Getting Styles To Work

Oct 27, 2011

I have a textarea which uses ckeditor to make it a wysiwyg. I also have a bit of JS which watches the ckeditor and when a user types into it, whatever they type appears in a div elsewhere on the page.My ckeditor allows the text to be bold, italic, underlined and resized. When I apply styles to the text in the ckeditor textarea, I want them to reflected in the div which updates. At the moment only underline and resizing the text works. Choosing bold or italic does nothing the text updates ok, but no bold or italic. I've been told: "Ckeditor is using strong for bold, em for italics. My guess is that the browser or framework you are using doesn't apply bold and italics styles to those tags. You'll have to do that yourself."

I've tested on several browsers, I checked in FF Opera Safari Chrome IE8 & IE9 and its the same in all them. Underline works, resize works but neither bold or italic do. (Interestingly in IE7 bold and italic do work as well as the size and underline! What's going on with that?!?) So I assume it is the framework? Can anyone tell me if this is right and if so, how do I go about doing that myself?

View 1 Replies View Related

Updating Div With Text From Ckeditor - Getting Styles To Work?

Oct 27, 2011

I have a textarea which uses ckeditor to make it a wysiwyg. I also have a bit of JS which watches the ckeditor and when a user types into it, whatever they type appears in a div elsewhere on the page.My ckeditor allows the text to be bold, italic, underlined and resized. When I apply styles to the text in the ckeditor textarea, I want them to reflected in the div which updates. At the moment only underline and resizing the text works. Choosing bold or italic does nothing the text updates ok, but no bold or italic.

I've been told: "Ckeditor is using strong for bold, em for italics. My guess is that the browser or framework you are using doesn't apply bold and italics styles to those tags.ou'll have to do that yourself."I've tested on several browsers, I checked in FF Opera Safari Chrome IE8 & IE9 and its the same in all them. Underline works, resize works but neither bold or italic do. (Interestingly in IE7 bold and italic do work as well as the size and underline! What's going on with that?!?)So I assume it is the framework? Can anyone tell me if this is right and if so, how do I go about doing that myself?heres the JS I'm using to update the div:

Code:
<label for="editor1">Background Story</label>
<textarea id="editor1" name="editor1">This is sample text

View 1 Replies View Related

Updating Div With Text From Ckeditor - Getting Styles To Work

Oct 27, 2011

I have a textarea which uses ckeditor to make it a wysiwyg. I also have a bit of JS which watches the ckeditor and when a user types into it, whatever they type appears in a div elsewhere on the page.

My ckeditor allows the text to be bold, italic, underlined and resized. When I apply styles to the text in the ckeditor textarea, I want them to reflected in the div which updates. At the moment only underline and resizing the text works. Choosing bold or italic does nothing :( the text updates ok, but no bold or italic.

I've been told: "Ckeditor is using strong for bold, em for italics. My guess is that the browser or framework you are using doesn't apply bold and italics styles to those tags. You'll have to do that yourself."

I've tested on several browsers, I checked in FF Opera Safari Chrome IE8 & IE9 and its the same in all them. Underline works, resize works but neither bold or italic do. (Interestingly in IE7 bold and italic do work as well as the size and underline!

heres the JS I'm using to update the div:

<label for="editor1">Background Story</label>
<textarea id="editor1" name="editor1">This is sample text

View 1 Replies View Related

Adding File Browser Option To Standard CKEditor

Jun 17, 2010

Any body succeed in adding file browser option to standard CKEditor developed completely with JavaScript.I have followed the link [URL]. it is too complex to understand.If any succeed with this or adding file browser option to simple notepad app

View 1 Replies View Related

Event Listening In CKEditor - Draft Saver - Onkeypress Will Launch A Function Which Will Check If Timer Is On

Nov 27, 2009

I have problem with event listening in CKEditor. I searched these forums for answer, but I didnt found it.
I need someting like "onkeypress" on textarea for CKEditor. If I think well, I can must use "DOM" of CKEditor, because it is not simple textarea - but I am lost here. I really dont know how to do it. I need simple draft saver - onkeypress will launch a function which will check if timer is on. If yes, return false. If no, use ajax to save content of textarea.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved