Opened 7 years ago
Closed 7 years ago
#40972 closed defect (bug) (fixed)
TinyMCE editor in Text widget does not have RTL contents
Reported by: | sa3idho | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.8.1 | Priority: | normal |
Severity: | normal | Version: | 4.8 |
Component: | Widgets | Keywords: | has-patch commit fixed-major |
Focuses: | Cc: |
Description
The visual editor of the text widget has alignment issue in RTL languages.
Attachments (3)
Change History (15)
#2
follow-up:
↓ 3
@
7 years ago
- Summary changed from Widget text issue to 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
@
7 years ago
@westonruter Yeah that's right, it's the contents of the visual editor that actually aren't displaying in RTL.
#5
@
7 years ago
The solution is:
jQuery( document ).on( 'tinymce-editor-setup', function( event, editor ) { editor.settings.directionality = 'rtl'; });
#6
follow-ups:
↓ 7
↓ 9
@
7 years ago
- Keywords has-patch added; needs-patch removed
- Owner set to azaozz
- Status changed from new to reviewing
@guytzhak please test 40972.0.diff.
@azaozz is this the right approach?
#7
in reply to:
↑ 6
@
7 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
@
7 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.
Note: See
TracTickets for help on using
tickets.
@azaozz is this an issue with
wp.editor.initialize()
?