Opened 9 years ago
Closed 9 years ago
#40972 closed defect (bug) (fixed)
TinyMCE editor in Text widget does not have RTL contents
| Reported by: | sa3idho | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.8.1 |
| Component: | Widgets | Version: | 4.8 |
| Severity: | normal | Keywords: | has-patch commit fixed-major |
| Cc: | Focuses: |
Description
The visual editor of the text widget has alignment issue in RTL languages.
Attachments (3)
Change History (15)
#2
follow-up:
↓ 3
@
9 years ago
- Summary Widget text issue → TinyMCE editor in Text widget does not have RTL contents
@sa3idho to confirm, it's the contents of the editor that actually aren't displaying in RTL when they should, correct?
#3
in reply to: ↑ 2
@
9 years ago
@westonruter Yeah that's right, it's the contents of the visual editor that actually aren't displaying in RTL.
#5
@
9 years ago
The solution is:
jQuery( document ).on( 'tinymce-editor-setup', function( event, editor ) {
editor.settings.directionality = 'rtl';
});
#6
follow-ups:
↓ 7
↓ 9
@
9 years ago
- Keywords has-patch added; needs-patch removed
- Owner set to
- Status new → reviewing
@guytzhak please test 40972.0.diff.
@azaozz is this the right approach?
#7
in reply to: ↑ 6
@
9 years ago
Replying to westonruter: It is a right approach :-)
@guytzhak please test 40972.0.diff.
@azaozz is this the right approach?
#9
in reply to: ↑ 6
@
9 years ago
Replying to westonruter:
Yep, that should work. We don't set directionality: 'ltr' when outputting the settings for the other editor, maybe better to leave that out here too.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@azaozz is this an issue with
wp.editor.initialize()?