การจัดรูปแบบข้อความใน Frappe Wiki

คุณสามารถจัดรูปแบบข้อความได้จาก Toolbar จาก Command Menu หรือใช้คีย์ลัด Markdown ในขณะที่พิมพ์ โดยตัว Wiki จะบันทึกหน้าเนื้อหาเป็นรูปแบบ Markdown เสมอ หากต้องการจัดระเบียบคลังความรู้และระบบเอกสารขององค์กรอย่างสมบูรณ์แบบ สามารถเลือกใช้บริการระบบ ERPNext ได้เช่นกัน

The toolbar

Toolbar จะอยู่บริเวณด้านบนของ Editor สามารถเลื่อนเมาส์ไปชี้ที่ปุ่มเพื่อดูชื่อคำสั่งได้

The editor toolbar with heading, text, list, block and insert buttons
  • Heading สำหรับเปิดเมนูเลือกระดับหัวข้อตั้งแต่ Heading 1 ถึง Heading 6
  • Bold, Italic, Underline, Strike และ Code สำหรับจัดรูปแบบข้อความที่เลือก
  • Bullet List, Ordered List และ Task List สำหรับเริ่มต้นรายการ
  • Blockquote, Code Block และ Horizontal Rule สำหรับแทรกบล็อกข้อความหรือเส้นคั่น
  • Table, Link, Insert Image, Insert Video และ Insert PDF สำหรับแทรกเนื้อหาประเภทต่างๆ
  • Undo และ Redo

เมื่อคุณไฮไลต์เลือกข้อความ เมนูขนาดเล็กจะปรากฏขึ้นเหนือข้อความนั้น ซึ่งประกอบด้วยคำสั่งจัดรูปแบบข้อความ, Link, Heading 1 ถึง Heading 3, รายการทั้งสองรูปแบบ, Blockquote และ Code Block (เมนูนี้จะไม่แสดงบนโทรศัพท์มือถือ)

The command menu

พิมพ์ / เพื่อเปิด Command Menu จากนั้นพิมพ์ข้อความเพิ่มเติมเพื่อกรองรายการคำสั่ง แล้วกด Enter หรือคลิกเลือกรายการที่ต้องการ

The command menu open below a slash, with the Text and Lists groups
Group Items
Text Heading 1, Heading 2, Heading 3, Blockquote, Code Block
Lists Bullet List, Numbered List, Task List
Media Image, Video, PDF
Insert Table, Embed, Diagram, Link to Page, Horizontal Rule
Callouts Note, Tip, Caution, Danger

Markdown shortcuts

สิ่งที่พิมพ์ ผลลัพธ์ที่ได้
# ถึง ###### ตามด้วยเว้นวรรค Heading 1 ถึง Heading 6
**text** Bold
*text* หรือ _text_ Italic
~~text~~ Strikethrough
`text` Inline code
[text](url) Link
-, * หรือ + ตามด้วยเว้นวรรค Bullet list
1. ตามด้วยเว้นวรรค Numbered list
[ ] ตามด้วยเว้นวรรค Task list
> ตามด้วยเว้นวรรค Quote
``` and a space Code block
--- Horizontal rule

Keyboard shortcuts

Shortcut Action
Ctrl + B / I / U Bold / italic / underline
Ctrl + Shift + S Strikethrough
Ctrl + E Inline code
Ctrl + Alt + 1 to 6 Heading 1 to Heading 6
Ctrl + Shift + 7 / 8 / 9 Numbered list / bullet list / task list
Ctrl + Shift + B Quote

On a Mac, use Cmd instead of Ctrl, and Option instead of Alt.

Code blocks

A code block shows line numbers. Hold the pointer on the block to see the language menu and Copy code. The language is auto until you pick one. To set it as you type, put the language after the backticks, then a space, for example ```python. Press Tab and Shift + Tab to indent lines in the block.

Tables

คลิก Table บน Toolbar แล้วเลือกขนาดที่ต้องการ หรือพิมพ์ /table เพื่อสร้างตารางขนาด 3 x 3 พร้อมแถว Header เมื่อเคอร์เซอร์อยู่ในตาราง จะมีเมนูแสดงเครื่องมือควบคุมแถว คอลัมน์ และเซลล์ปรากฏขึ้น

Spacing

กด Enter เพื่อขึ้นย่อหน้าใหม่ ย่อหน้าที่เว้นว่างไว้จะยังคงแสดงเป็นช่องว่างบนหน้าที่เผยแพร่ กด Shift + Enter เพื่อขึ้นบรรทัดใหม่ภายในย่อหน้าเดิม

Other content

แปลจากเอกสารของ Frappe: https://docs.frappe.io/wiki/authoring-content/format-text