Bolt cms ckeditor图片上传

Iul*_*anu 2 ckeditor bolt-cms

我想从ckeditor上传图片.

config中的选项仅允许您从堆栈中添加图像.

在文档中,我没有找到与上传图像相关的任何内容.有办法做到这一点吗?

小智 6

在您的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 '™'.
Run Code Online (Sandbox Code Playgroud)

你只想设置images: true,这将告诉CKeditor启用图像插件.