Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
6.x-1.0
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2010 at 21:37 UTC
Updated:
18 Mar 2010 at 08:00 UTC
I had a node created with firefox that I wanted to update using Safari. When opening the node in edit mode in Safari, the ckeditor toolbar was not visible. I only had the textarea with the "switch to plain text editor" link below. The link was not working either. Using the code inspector of Safari, I found out that there was a javascript error in the file /ckeditor/include/ckeditor.utils.js at the line 44:
var tv = teaser.textarea.val();
if (tv.length > 0) {
$("#" + textarea_id).val(tv + '\n<!--break-->\n' + $("#" + textarea_id).val());
The variable tv in my case was undefined. I have just added a validation in the if section to make it work again in Safari:
var tv = teaser.textarea.val();
if (tv && tv.length > 0) {
$("#" + textarea_id).val(tv + '\n<!--break-->\n' + $("#" + textarea_id).val());
Comments
Comment #1
carolalind commentedThank You so much!!! This solution solved my problem with ckeditor which I've been struggeling with for a long time now. My errors kept showing up in ie8 but worked fine in firefox, so it seems this problem shows up randomly in different browsers on different computers. Very strange...
Comment #2
jteague commentedI can confirm that this bug occurs sporadically across several browsers, including Firefox 3, Safari, and IE8. hinanui's fix resolves the issue. Recommend the patch. I updated the title of this report to clarify that the bug is not Safari-centric.
Comment #3
wwalc commentedComment #4
mephir commentedChnages commited to CVS.