summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsun2008-12-20 17:20:19 (GMT)
committer sun2008-12-20 17:20:19 (GMT)
commit02732f80756b01764e173033478150f7ad06f451 (patch)
tree9f0b3b5a857050d96601771a9ad6480b8e284596
parenta3d9c86843789edc4b396caf38c3d0e8875ce9a5 (diff)
#348986 by sun: Added CSS class for toggle link container.
-rw-r--r--CHANGELOG.txt1
-rw-r--r--wysiwyg.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 0556689..b7e9288 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.x-x.x, xxxx-xx-xx
---------------------------
+#348986 by sun: Added CSS class for toggle link container.
#342864 by davexoxide, sun: Added YUI editor support.
#343217 by sun: Fixed improperly capitalized library script name for nicEdit.
#341267 by sun: Fixed improper test for internal editor plugins.
diff --git a/wysiwyg.js b/wysiwyg.js
index eea31ee..a29e9ac 100644
--- a/wysiwyg.js
+++ b/wysiwyg.js
@@ -115,7 +115,7 @@ Drupal.wysiwygAttachToggleLink = function(context, params) {
var a = document.createElement('a');
$(a).attr({id: 'wysiwyg-toggle-' + params.field, href: 'javascript:void(0);'}).append(text);
var div = document.createElement('div');
- $(div).append(a);
+ $(div).addClass('wysiwyg-toggle-wrapper').append(a);
$('#' + params.field).after(div);
}
$('#wysiwyg-toggle-' + params.field).html(params.status ? Drupal.settings.wysiwyg.disable : Drupal.settings.wysiwyg.enable).show().unbind('click').click(function() {