首选项概述

0 次阅读

Everyone uses the editor in their own way and, to help encourage that, there’s an entire section where you can turn on and off different options to your liking. This includes everything from enabling text only icons to whether you want a pre-publish checklist to appear to whether you want to see your theme styles as you’re writing! Take some time below to explore what options are available and to create the editing experience you prefer.

Image showing the preferences modal under Options > Preferences.

如何查找首选项

In the upper-right corner of the LitePress Editor, select the three dot icon. This opens up the Options. Within the Options pop over at the bottom, select Preferences.

Image showing an arrow pointing to the three dot menu that opens up the wider Options for the editor.

通用

This section covers high level preferences that shape your experience overall. Think of it as the most high level preferences to choose from.

Include pre-publish checklist

By toggling this on, you are enabling an extra step to appear before publishing a page or post that asks you to
review settings such as categories and tags. This checklist will only appear upon publishing:

缩小界面

If you’re someone who likes to have a clean interface in order to focus on your content, this is a great option to explore as it compacts various options in the toolbar and removes breadcrumbs at the bottom of the editor. Keep in mind that these options don’t go away! They are simply hidden while you’re writing and, if you need them, they become visible once more when you hover over the Toolbar.

Toolbar when option turned off:

Toolbar when option turned on:

Spotlight mode

Spotlight mode impacts how you interact with blocks as you write by purposefully highlighting the current block being edited while fading out the rest of the content. This can be helpful if you want to refine pieces of your content one by one without being distracted by the larger post content.

Display block breadcrumbs

Block breadcrumbs allow you to easily get a sense of where you are in the content and offers a way to easily select parent blocks. This is particularly helpful when you’re dealing with layers of nested blocks or more complicated arrangements.

外观

本节介绍了与编辑器本身的外观和感觉特别相关的首选项。

显示按钮标签

此选项允许您在工具栏中显示文本而不是图标。由于工具栏是目前我们与核心编辑器交互的主要方式之一,这导致了编辑体验的巨大差异。此选项适用于顶部工具栏和单个区块工具栏。

选项关闭时的工具栏:

选项打开时的工具栏:

使用主题样式

这个选项可以让你的编辑器看起来像你的主题,这样,当你创建内容时,你就可以强烈地感觉到发布后会是什么样子。如果你更喜欢关注内容本身,而不一定是它的外观,你可以关闭这个选项来删除你的主题样式。

区块

显示最常用的块

此选项使区块插入器中出现一个您最常用的区块的部分。如果您发现自己重复使用相同的几个区块来构建大部分内容,这将很有帮助。

图片显示了带有“最常用”部分的块插入器。

在区块内包含文本光标

通过阻止光标离开区块来帮助屏幕阅读器。

面板

文档设置

此部分控制页面/帖子设置边栏中显示的面板。如果您在此处关闭某个项目,它将隐藏侧边栏中的同一部分。如果您经常发现自己不使用设置侧边栏中的特定面板并希望简化您的编辑体验,这可能有助于探索。

附加选项

在这允许一个选项向编辑器添加额外的区域,如自定义的字段。当你打开或关闭此选项时,需要重新加载页面才能使其更改生效。在你打开此设置之前记得一定要保存文件。

在编辑器下方显示自定义字段选项的图像。