From 916f1f3557f8e8e1d481b9e7159e2d6a095b6767 Mon Sep 17 00:00:00 2001
From: Caleb Thorne <calebt@monarchdigital.com>
Date: Wed, 16 Mar 2011 14:30:03 -0600
Subject: [PATCH] Change toggle link to use onclick propert for javascript.

---
 ckeditor.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ckeditor.module b/ckeditor.module
index a1cc327..0f02a12 100644
--- a/ckeditor.module
+++ b/ckeditor.module
@@ -531,7 +531,7 @@ function ckeditor_process_textarea($element) {
         $content .= $element['#value'];
       }
       $wysiwyg_link = '';
-      $wysiwyg_link .= "<a class=\"ckeditor_links\" style=\"display:none\" href=\"javascript:Drupal.ckeditorToggle('{$textarea_id}','". str_replace("'", "\\'", t('Switch to plain text editor')) ."','". str_replace("'", "\\'", t('Switch to rich text editor')) ."',". $xss_check .");\" id=\"switch_{$textarea_id}\">";
+      $wysiwyg_link .= "<a class=\"ckeditor_links\" style=\"display:none\" href=\"javascript:void(0);\" onclick=\"javascript:Drupal.ckeditorToggle('{$textarea_id}','". str_replace("'", "\\'", t('Switch to plain text editor')) ."','". str_replace("'", "\\'", t('Switch to rich text editor')) ."',". $xss_check .");\" id=\"switch_{$textarea_id}\">";
       $wysiwyg_link .= $ckeditor_on ? t('Switch to plain text editor') : t('Switch to rich text editor');
       $wysiwyg_link .= '</a>';
 
-- 
1.7.0.4

