Add RTL toggle button for preview pane - #67
Conversation
Adds an RTL button (text-only, no icon) to both the desktop toolbar and mobile menu that toggles right-to-left direction on the markdown preview. State is persisted to localStorage and restored on page load. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@EssamSoft is attempting to deploy a commit to the ThisIs-Developer Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Thank you for the idea and implementation, but there is a question about why we need the RTL button. Already in #61 , it mentions that the space needs to be clear for more working space. I don't think it's a good idea to add it right now, but I have a plan to implement it. I want to make a panel with all tools like H1, H2, H3, inline, bold, table, code, quote, etc., and there I will add this RTL button. Is that ok? |
Thanks for your response. I think adding a toolbar might make the UX a bit more complicated. The simplified RTL button is very useful for me as an Arabic speaker. Some documents contain both Arabic and English, which causes reading issues due to the conflicting text directions between the two languages. For my use case, the ideal solution is the ‘magic’ RTL button to switch direction on demand while reading.
|
|
Thank you for the update! 🙏 One small UX note: placing the RTL button at the top of the preview pane would feel more natural — when users are in reading mode, they're not interacting with the editor toolbar, so a dedicated button near the preview area would be more accessible. |
|
@EssamSoft First of all, thank you. I really respect that you’re still putting effort into these features and supporting the developer community. Coming to the PR, I’ve reviewed the changes and found a few issues that need clarification/fixes:
|
|
Thank you for your response Let me clarify the confusion
Agreed
Yes you are right! We should change the label to LTR.
Exactly, We shouldn't apply RTL to the editor.
Agreed. |
|
Hi @EssamSoft, Thank you for your contribution and for the time and effort you've invested in this feature so far. After reconsidering the RTL/LTR buttons, I've decided that they fit better as a tool rather than a setting. Since there are plans to add more feature buttons in the future, it makes more sense to keep such functionality within a dedicated toolbar instead of placing it directly in the navigation bar. For now, I will keep the current RTL/LTR implementation as it is in the latest version. If future feature requests or user feedback indicate that the RTL/LTR toggle should be moved to the navbar, I can revisit and reimplement it accordingly. Thank you again for your contribution, feedback, and continued support of the project. I'm closing this PR for now. |


Adds an RTL button (text-only, no icon) to both the desktop toolbar and mobile menu that toggles right-to-left direction on the markdown preview. State is persisted to localStorage and restored on page load.