将ck编辑器添加到Bolt cms站点

时间:2015-11-18 20:43:40

标签: ckeditor bolt-cms

我有一个bolt cms网站。在条目/展示页面上,我想用CK编辑器替换默认编辑器。现在编辑器只有6到7个按钮的基本按钮。它看起来像这样: enter image description here

我想要这种编辑器: enter image description here  我该怎么做?

1 个答案:

答案 0 :(得分:1)

app/config/config.yml文件中,您有以下部分:

wysiwyg:
    images: false            # Allow users to insert images in the content.
    anchor: false            # Adds a button to create internal anchors to link to.
    tables: false            # Adds a button to insert and modify tables in the content.
    fontcolor: false         # Allow users to mess around with font coloring.
    align: false             # Adds buttons for 'align left', 'align right', etc.
    subsuper: false          # Adds buttons for subscript and superscript, using `<sub>` and `<sup>`.
    embed: false             # Allows the user to insert embedded video's from Youtube, Vimeo, etc.
    underline: false         # Adds a button to underline text, using the `<u>`-tag.
    ruler: false             # Adds a button to add a horizontal ruler, using the `<hr>`-tag.
    strike: false            # Adds a button to add stikethrough, using the `<s>`-tag.
    blockquote: false        # Allows the user to insert code snippets using `<pre><code>`-tags.
    codesnippet: false       # Allows the user to insert blockquotes using the `<blockquote>`-tag.
    specialchar: false       # Adds a button to insert special chars like '€' or '™'.

将这些设置为true将为您提供相关按钮。

对于通过插件的额外按钮,我们将使用CKEditor 5本地添加该功能。