Hi guys,
We’re using Pro / Cornerstone with WPML on a bilingual English/Arabic site, where languages are handled via URL directories (/en/ and /ar/). Post permalinks use post IDs.
Arabic pages render correctly on the front end with the expected attributes (for example, right-to-left layout with lang=“ar” and dir=“rtl”).
However, when editing the same Arabic page in Cornerstone, the editor URL is of the form https://example.com/cornerstone/edit/12345.
On this Cornerstone editor page, the document itself is rendered with an English language context (for example lang=“en-US”). As a result, although the page preview is correctly RTL, the editing fields for Cornerstone elements — in particular the Rich Text (TinyMCE) editor — remain left-to-right while editing Arabic content.
In the editor page head, the title clearly contains Arabic text (the page title itself), for example: ممشى عُمان في الأمم المتحدة – Page – Cornerstone.
This suggests that Cornerstone is not inheriting the correct language and direction (lang=“ar”, dir=“rtl”) from the underlying WPML Arabic page when loading the editor interface and element editing fields.
Could you advise how to make Cornerstone / TinyMCE initialise as RTL when editing Arabic text elements or provide a fix so that the Cornerstone editor page uses the correct language and direction when the page being edited is Arabic?
We’re happy to provide additional diagnostics if needed, but the core issue appears to be the editor shell being forced to an English language context regardless of the language of the page being edited.
Thanks,
Thibault