소스 검색

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>



불러오는 중...
취소
저장