ckeditor5自动格式化教程

【txb】发表时间:2019-12-28 08:41:05 | 栏目:技术

ckeditor5自动格式化教程

block formatting

The following block formatting options are available:

Bulleted list – Start a line with * or - followed by a space.

Numbered list – Start a line with 1. or 1) followed by a space.

Headings – Start a line with # or ## or ### followed by a space to create a heading 1, heading 2 or heading 3 (up to heading 6 if options defines more headings).

Block quote – Start a line with > followed by a space.

Code block – Start a line with ```.

Inline formatting

The following inline formatting options are available:

 

Bold – Type **text** or __text__,

Italic – Type *text* or _text_,

Code – Type `text`.

Autoformatting sample

Example:

 

Delete all editor content.

Press # and then Space.

The current line will be turned into a heading.

This is CKEditor 5.

 

Related productivity features

In addition to enabling automatic text formatting, you may want to check the following productivity features:

 

Automatic text transformation – It enables automatic turning snippets such as (tm) into ™ and "foo" into “foo”.

Mentions – It brings support for smart autocompletion.

 阅读全文

逆风飞翔

txb

生命中我们要学会坚强

tags