Odoo 富文本編輯器

Odoo 富文本编辑器支持在 HTML 字段中创建和编辑富文本内容,例如 内部备注描述 字段,以及 知识库文章Studio 报告编辑器 等。开始输入,或使用 工具栏功能框 来格式化和组织文本。

小訣竅

将鼠标悬停在文本中的任何元素(页眉、表格、剪贴板等)上,显示 (drag) 图标。点击并按住该图标,可将元素拖放到文本中的其他位置。

文本编辑器工具栏

要编辑一个单词、句子或段落,请选择或双击该单词、句子或段落,以显示文本编辑器工具栏,并应用以下任何标准格式选项:

  • 字体样式: 使用各种选项定义字体样式,如 标题1到6、正常、段落、代码引用

  • 字体大小:选择首选字体大小。

  • 切换粗体):将文本加粗。

  • (切换斜体): 将文本改为斜体。

  • (切换下划线):下划线文本。

  • (应用字体颜色):自定义字体颜色:

    • 纯色:从预定义调色板中选择首选颜色。

    • 自定义:使用色轮或通过配置 十六进制代码RGBA 值来自定义调色板。

    • 渐变:选择预定义的渐变,或通过在 线性径向 之间进行选择并调整色轮来自定义渐变。

    • (重置):恢复原来的字体/背景颜色。

  • 添加链接):插入或编辑指向选定文本的 URL 链接,还可选择使用文件 URL 上传图片。

  • Odoo AI:编写提示并获取人工智能生成的内容。可选择点击人工智能建议,而不是编写提示。

点击 )图标,显示其他格式化选项:

  • 字体系列:使用 默认系统字体 或为文本选择首选字体系列。

  • 切换删除线):删除文本。

  • (Apply Background Color): 自定义背景颜色。

  • (移除格式):删除应用于选定文本的所有格式。

  • (切换列表):请选择以下列表选项:

    • (项目符号列表): 将文本转换为项目符号列表。

    • (编号列表):将文本转换为编号列表。

    • (待办事项列表):将文本转换为待办事项列表。

  • (文本对齐):选择以下文本对齐方式:

    • 向左对齐): 将文本向左对齐。

    • (居中对齐): 将文本居中对齐。

    • (右对齐):将文本右对齐。

    • 两端对齐:使文本左右两侧边距均保持整齐平直。

  • 使用 AI 翻译:使用 AI 翻译 已安装的语言 中的内容。

文本编辑器工具箱

小訣竅

  • 使用以下键盘快捷键应用格式化:

    • 强调:按 CTRL/CMD`+`BCTRL/CMD`+`ICTRL/`CMD`+`U`来应用粗体、斜体或下划线效果。

    • 编号列表:输入 1.1)A.A) 开始编号列表。

    • 项目符号列表: 键入 *- 开始弹出式列表。

  • 点击超链接文本,并执行以下操作之一:)、)或 )。

电源箱命令

这些命令可用于在文本编辑器中编辑和管理各类元素,例如表格、横幅、页眉等。

要使用命令,请键入 / 打开电源箱,然后输入命令名称或从多个功能中进行选择,以插入表格、图像、横幅等。

小訣竅

开始一个新段落会显示一个包含命令快捷图标的工具提示。点击图标添加命令,或点击 ellipsis)图标打开所有命令的电源箱。

備註

本说明不包括特定应用程序的特定命令。

命令

使用

分隔符

插入水平规则分隔线。

2 列

轉換為 2 欄結構。

3 列

轉換為 3 欄結構。

4 列

轉換為 4 欄結構。

表格

插入表格。

项目符号列表

创建项目符号列表。

编号列表

创建编号列表。

清单

创建清单。

切换列表

将一组文本隐藏在可折叠的切换按钮下方。

備註

要整理表格,请将鼠标悬停在某一列或行上,以显示表格菜单。点击 (省略号) 图标移动、插入或删除列或行。

插入媒體

要插入媒体文件,请输入 /Media 或点击工具提示中的 (媒体) 图标,然后从以下选项卡中进行选择:

  • 图片

    • 搜索 Unsplash 数据库,找到合适的图片。

    • 添加 URL:复制粘贴**图片地址**。

    • 上传图片:将图片上传到图片库。

  • 文件

    • 在数据库中搜索文件。

    • 添加 URL:复制粘贴一个有效的 URL。

    • 上传文件:从本地驱动器上传文件。

  • Icons: Search for and select one of the available icons.

  • Videos: Paste a video URL of the following sources: YouTube, Vimeo, Dailymotion, and Youku. Alternatively, type code to embed a video.

備註

When adding a video, use the toggles to enable autoplay or looping, hide player controls or the fullscreen button, or set a start time.

媒体编辑器工具栏

:ref:`插入图片<insert-media>`后,点击它以显示媒体编辑器工具栏,并应用以下任意格式化选项:

  • (Preview image): Preview the image, zoom in or out, rotate it, print it, or download it. Exit the preview by clicking the (close) icon in the top right corner.

  • Description: Edit the image description and tooltip, then click Apply.

  • Caption: Write a caption under 100 characters below the image.

  • (Rounded): Apply a rounded shape to the corners of the image.

  • (Circle): Apply a circular shape to the image.

  • (Shadow): Apply a shadow effect to the image.

  • (Thumbnail): Apply a border to the image.

  • (Padding): Add an image padding and choose from Small, Medium, Large, or XL sizes.

  • Resize: Restore the image to its default size or set its size to 25%, 50%, or 100%.

  • (对象):调整图像大小并旋转图像。再次点击 图标以重置转换。

  • (Crop image): Crop the image manually or apply the following options:

    • 从 “灵活”、“16:9”、“4:3”、“1:1” 或 “2:3” 长宽比中选择。

    • 放大或缩小。

    • 向左或向右旋转。

    • 水平或垂直翻转。

    • 重置图像。

  • (Add a link): Add a link to the image, type the URL, then click Apply. To remove the link, click (Remove Link).

  • (Replace): Replace the image by searching in the Unsplash database, adding a URL, or uploading a different one.

  • (Delete): Delete the image.

Icon editor toolbar

After inserting an icon, click it to display the icon editor toolbar, and apply any of the following formatting options:

  • (Select Font Color): Customize the font color.

  • (Select Background Color): Customize the background color.

  • Resize icon: From 1x to 5x.

  • (Toggle icon spin): Activate the spin animation.

  • Replace: Select a different icon.