PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

MarkdownX formatting

cyberagora

Mar 18th, 2024 05:31 AM

is it possible in markdownx to format things to be in the middle of the page. and maybe if possible to maybe make the text RTL(Right to left) and LTR(Left to right) for other languages support like Arabic and Prussian

bobbyiliev

Mar 18th, 2024 09:35 AM

Hey!

To align text to the right in a <textarea>, ensuring it displays in a right-to-left (RTL) format, you can use the dir attribute with the value rtl. eg: dir="rtl".

Would this work for you?

cyberagora

Mar 18th, 2024 12:11 PM

sometimes they would want to sort of put some of the text in arabic and the rest in english thats why and other times its for formatting to make the result look better i guess idk if this is possible with or not

bobbyiliev

Mar 19th, 2024 04:48 AM

Hey!

I think that your best aproach here then would be to use dir="auto".

This is something that would go beyond the capabilities of the editor itself, as you would store this in your database and then you would need to display it to your users with your own custom logic as well.

If you have an example of how this is implemented in another editor I would love to see this in action so I could possibly try and re-implement this.

Let me know if this works for you!

cyberagora

Mar 19th, 2024 08:04 AM

I know this is a bit of an odd request but I'm sure would make this editor more powerful

Screenshot 2024-03-19 at 18.01.32.png

its hilighted in blue

you can find it here here

bobbyiliev

Mar 19th, 2024 01:49 PM

Hey!

Ah ok this is a WYSIWYG editor. With Markdown editors in general you could just use HTML:

<p class="text-right">
    This text will be to the right.
</p>

Would this work for you?