Browse Source

fix: RTL support on post textarea

Fixing right to left (short: RTL) support for respective RTL languages
by adding auto-detection for the user content's directionality based on
the text's language.

Fixes #612
pull/826/head
Andreas Sander 5 months ago
parent
commit
4c6169d55d
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      templates/bare.tmpl
  2. +1
    -1
      templates/pad.tmpl

+ 1
- 1
templates/bare.tmpl View File

@@ -14,7 +14,7 @@

<div id="overlay"></div>
<textarea id="writer" placeholder="Write..." class="{{.Post.Font}}" autofocus>{{if .Post.Title}}# {{.Post.Title}}
<textarea dir="auto" id="writer" placeholder="Write..." class="{{.Post.Font}}" autofocus>{{if .Post.Title}}# {{.Post.Title}}

{{end}}{{.Post.Content}}</textarea>



+ 1
- 1
templates/pad.tmpl View File

@@ -14,7 +14,7 @@

<div id="overlay"></div>
<textarea id="writer" placeholder="Write..." class="{{.Post.Font}}" autofocus>{{if .Post.Title}}# {{.Post.Title}}
<textarea dir="auto" id="writer" placeholder="Write..." class="{{.Post.Font}}" autofocus>{{if .Post.Title}}# {{.Post.Title}}

{{end}}{{.Post.Content}}</textarea>



Loading…
Cancel
Save