header parallax image
uncoditional

code liberated

  • Home
  • Pete
  • Home
  • Pete
Browser SupportJQuery and CSS

CKEditor barebones basics

June 27, 2014Peter Lombardo3264 views

A few very basic points about CKEditor today.
Let’s say you have a typical textarea named foo and you want to turn it into a ckeditor object.

var editor = CKEDITOR.replace('foo');

That’s it.  Of course there’s many more options and configurations you can add, but that’s the basic implementation.

But what if you want to refer to that instance later.  In our case, it is called CKEDITOR.instances.foo .  NOW you can do more with it later on, such as updating your text field with the contents of the editor object before saving back to the server.

$("#foo").val(CKEDITOR.instances.foo.getData());

Hoping that’s worth something to ya.

  • tweet
previous story

Balsamiq Mockups: the good and the bad

next story

Proper Formatting of Money in T-SQL

Peter Lombardo

Peter Lombardo

Web developer too long.

you might also like

com.amazonaws.ClientConfiguration Errors

September 18, 2014

jQuery Dialog not playing well with ckeditor

July 25, 2014

Ellipse for Select list in mobile format

July 2, 2014

Leave a Response Cancel reply

You must be logged in to post a comment.

about me

uncoditional

Pete Lombardo

I like people and coding. Both change. Twenty years of full-stack development. I live in Maryland.

Recent Posts

  •   lives on!
    									
  • Cannot find module ‘…/…’ or its corresponding type declarations.
  • *ngIf – use parentheses
  • Angular component code block execution order
  • material dialog- how to get response data .subscribe()

Recent Comments

    Archives

    • June 2022
    • March 2022
    • June 2020
    • June 2019
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • June 2017
    • June 2015
    • May 2015
    • April 2015
    • October 2014
    • September 2014
    • July 2014
    • June 2014
    • May 2013
    • February 2013
    • January 2013
    • November 2012
    • October 2012

    Categories

    • angular
    • AWS
    • before the code
    • Browser Support
    • CFML & Mach-II
    • Chromebook
    • ckEditor
    • CloudSearch
    • ColdFusion
    • Java
    • javascript/typescript
    • JQuery and CSS
    • Languages
    • Life
    • material design
    • project
    • Projects
    • SNS
    • SQL
    • Tools
    • Uncategorized
    • unCODitional

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    0
    Followers
    0
    Followers
    0
    Followers
    0
    Followers

    Follow @ Instagram

    Configuration error or no pictures...