Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The CKEditor demo on the CKEditor website shows two language direction buttons on the toolbar as shown in the attached image.
Is it possible to enable these items somehow when using ckeditor with the wysiwyg plugin?
Comment | File | Size | Author |
---|---|---|---|
#5 | wysiwyg.ckeditor.bidir_.1112212.5.patch | 1.76 KB | TwoD |
#3 | wysiwyg.master.ckeditor-bidi.1112212.3.patch | 1.19 KB | TwoD |
Screen shot 2011-03-31 at 17.47.31.png | 4.13 KB | timdiacon |
Comments
Comment #1
timdiacon CreditAttribution: timdiacon commentedRight I've worked out how to do this, you need to add the code below to line 321 of ckeditor.inc (function name wysiwyg_ckeditor_plugins)
'BidiLtr' => t('Lang LTR;'), 'BidiRtl' => t('Lang RTL'),
It would be great to have this update included in the next release so I'm going to amend category to feature request
Comment #2
ethnovode CreditAttribution: ethnovode commentedThe buttons for ltr/rtl are available in tinymce but not in ckeditor. Would be nice to have.
Thanks timdiacon.
Comment #3
TwoDOops, these buttons were overlooked...
Looks like they were added in CKEditor 3.4b build 5808, see ticket #5909 and the changelog.
I tested the patch with releases 3.3.2, 3.4b and 3.6 to make sure the buttons are only available for the relevant versions and have not been removed recently.
EDIT: We normally create patches against the master branch, but this one should apply to all.
Comment #4
prabhatjn CreditAttribution: prabhatjn commentedThis patch works!!
Is it already committed?
Perry.
Comment #5
TwoDFixed the incorrect button name in in the unset() and committed this to all branches.
The -dev snahpshots will be updated within 12hrs and this patch will be in the next release.
Thanks for reporting, patching, testing and commenting!
Comment #7
hefox CreditAttribution: hefox commentedAny chance of backport?
Patch seems to work fine so far.