CKEditor

Testing Rails - Cucumber vs CKEditor

Submitted by aaron on Thu, 06/16/2011 - 12:45

 How do you get a feature to set the value of a ckeditor field so that it can run under any driver (javascript or not)?

#value = "Thing to set body to..."
begin
  page.evaluate_script("CKEDITOR.instances.discussion_body_editor.setData('<p>#{value.gsub("'","\\\\'")}</p>');")
rescue Capybara::NotSupportedByDriverError
  And %{I fill in "discussion_body_editor" with "#{value}"}
end

 
 

Bringing CKEditor to Drupal 5

Submitted by aaron on Tue, 03/23/2010 - 10:54

At the moment, there is no pre-packaged way to add CKEditor to Drupal 5.  The following is a result of my attempt to port the Drupal 6 wysiwyg module's CKEditor plugin to the Drupal 5 version.  It's ugly, but accomplishes my goal of getting CKEditor going in D5 without having to create a new module from scratch or try to port the rather large D6 module for CKEditor.
 
Step 1) Create ckeditor.inc (this is based off the D5 version of fckeditor.inc and the D6 version of ckeditor.inc), and place it under wysiwyg/editors
 

Syndicate content

Copyright © 2011, Aaron Blondeau

Drupal theme by Kiwi Themes.