CKEditor Samples » Replace Textarea with Inline Editor

You can also create an inline editor from a textarea element. In this case the textarea will be replaced by a div element with inline editing enabled.

// "article-body" is the name of a textarea element.
var editor = CKEDITOR.inline( 'article-body' );

This is a sample form with some fields

Title:

Article Body (Textarea converted to CKEditor):

Technical details Anchor

Mission crew
PositionAstronaut
CommanderNeil A. Armstrong
Command Module PilotMichael Collins
Lunar Module PilotEdwin "Buzz" E. Aldrin, Jr.

Launched by a Saturn V rocket from Kennedy Space Center in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of NASA's Apollo program. The Apollo spacecraft had three parts:

  1. Command Module with a cabin for the three astronauts which was the only part which landed back on Earth
  2. Service Module which supported the Command Module with propulsion, electrical power, oxygen and water
  3. Lunar Module for landing on the Moon.

After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the Sea of Tranquility. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the Pacific Ocean on July 24.


Source: Wikipedia.org