瀏覽代碼

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 6 月之前
父節點
當前提交
4c6169d55d
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      templates/bare.tmpl
  2. +1
    -1
      templates/pad.tmpl

+ 1
- 1
templates/bare.tmpl 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存