In wordpress, the editor will support and will be in RTL by default if you install it in an rtl language, for example, if you install wordpress with the hebrew UI the editor will be rtl by default.
The problem is if you install the hebrew UI but change your profile to use the English one, in order to still use the editor in rtl mode while using the English UI you can add this code to functions.php or a site plugin:
function Eyal_setEditorToRTL($settings)
{
$settings['directionality'] = 'rtl';
return $settings;
}
add_filter('tiny_mce_before_init', 'Eyal_setEditorToRTL');
The filter alters the default settings for the tinyMCE editor and set it in rtl mode.
Related Posts:
- Creating a wp_editor instance with custom tinyMCE buttons
- How to add custom CSS (theme option) to TinyMCE?
- How to add “Insert/Edit link” button in custom popup tinymce window?
- How to disable TinyMCE from removing span tags
- Add popup window to TinyMCE buttons
- How to customize TinyMCE4 in WP 3.9 – the old way for styles and formats doesn’t work anymore
- TinyMCE editor is breaking my beautiful HTML
- Load wp_editor via ajax [duplicate]
- Why did multiple line breaks stop working in text editor?
- TinyMCE 4.x : How to customize toolbar on wp_editor()
- Replace Taxomony Description Field with Visual/WYSIWYG Editor
- How to replace the content of tinyMCE editor in both text and visual mode using jQuery?
- TinyMCE format dropdown no longer showing style previews
- Is it possible to re-use the image details popup?
- Cite-Tag for blockquotes
- Wait for Gutenberg or built something in ACF?
- Replicating the_editor (Media Bar, TinyMCE, Visual/HTML Tabs) functionality without a huge rewrite
- “wp_editor” not displaying TinyMCE correctly when square brackets used in name
- Using a dashicon for a custom button in TinyMCE?
- How to disable TinyMCE 4 keyboard shortcuts
- Pasting code into pre-formatted text in Visual Editor not working in 3.3.1
- Integrating inline tinymce editor in a component for a gutenberg block
- WordPress MultiSite Paste from Word Tool Does not work
- TinyMCE removes iframe attributes width and height
- Append Font Family in TinyMCE
- Remove empty lines ( ) when author updates their post
- Easy way to inject js in tinymce iframe?
- WP 3.3 my rich text category editor toolbar is gone!
- WordPress visual editor broke due to non standard port?
- Deprecated TinyMCE API call: windowManager.createInstance(..)
- wordpress 3.5 tinymce height
- TinyMCE is broken
- Adding image to visual editor popup for shortcode with wp.media and wp.mce: changing image duplicates shortcode
- Change TinyMCE Block Format Labels
- Adding Custom Styles to the MCE dropdown toolbar
- How to stop editor removing space ( ) in the beginning of the paragraph
- Is there a way to remove the default css from TinyMCE?
- Preserving tabs and line breaks in when switching from HTML to Visual Editor
- TinyMCE Visual Blocks plugin set Show blocks option for all users
- Gutenberg; Rich Text/HTML for Metadata Textarea Control in Back End
- Add a TinyMCE Core Plugin Using tiny_mce_before_init
- Selectively remove empty line after line change
- Fontawesome icon vanishes in editor while switching text and visual mode
- wordpress qtranslate editor text is not working [closed]
- create a front end post page template withTinyMCE,
- editor text cut off when using 2 spaces (after periods)
- How does WordPress remember which editor is being used?
- Add buttons to the new TinyMCE WP Editor. Javascript API
- Is it possible to disable the image alignment options in the post editor?
- Open Insert/edit link popup
- How to dynamically generate wordpress editor on frontend?
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- tinyMCE 4.0 custom button onclick no longer working
- How to add Listbox / Select dropdown for shortcodes in WP 3.9 beta2 using TinyMCE?
- Using spellchecker plugin in TinyMCE
- wp_editor not modify html tags of initial content
- Stop TinyMCE from deleting empty HTML tags
- Custom TinyMCE Editor Formats in Dropdown
- Why is the media upload button not in the main toolbar & can it be placed there instead?
- Can I disable `wp-tinymce.php` load as script?
- wp_editor – Media uploader button to tinymce
- Removing tags around tags
- Editor html formatting is different from view source
- WordPress no longer holding post formatting
- HTML formatting issues when switching between editor tabs
- Stop editor from adding “amp;” after every “&”
- Visual composer causing conflict with TinyMCE [closed]
- Overriding TinyMCE buttons – Justify button shortcodes not working
- WP Editor: Keep Bold, Underline, etc. but ignore color
- TinyMCE 4 & wp_editor multiple editor issue
- TinyMCE Advances is removing blanks (” “)
- How to remove buttons from tinyMCE in wp_editor added via AJAX
- enable TinyMCE for comment forms
- TinyMCE – Insert media at the beginning of post
- Best Browser for Editing Posts
- TinyMCE invalid nested list markup
- Unable to save Theme Options when TinyMCE is enabled for the text area
- Adding a Media Button to the WordPress Content Editor
- Error in backend: Failed to load plugin: tabfocus from url
- How can I change TinyMCE’s default block format?
- Changing code with ( ) when author updates their post (TinyMCE)
- Adding a class to custom TinyMCE button using WPLinks dialog box
- Remove MS Word comments from pasted text
- How to force wp excerpt to use br tag?
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- How to have html in TinyMce “Text” tab properly indented and highlighted
- TinyMCE adds a after a HR
- How to remove “justifyfull” in TinyMCE
- TinyMCE errors after 3.7.1 to 3.9.1 upgrade
- Localize tinymce in WordPress 3.9?
- WordPress WYSIWYG editor on demand, responsive
- Get the More QuickTag button back
- Make videos output as iframes not links
- Preventing tinyMCE from auto formatting selected blocks of content
- How to insert image from link in TinyMCE
- Tinymce broken after update
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- get backend to front end
- Why did my get mangled, and how can I keep from happening again?
- WordPress Started Executing Code Inside PRE Tags Even They Are Properly Escaped