liberosoft/luyawysiwyg

所见即所得编辑器

安装: 186

依赖: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 2

开放性问题: 0

语言:JavaScript

类型:luya-module

v1.0.7 2018-11-30 13:28 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:42:11 UTC


README

luya CMS 的所见即所得模块。支持 TinyMCE。

安装

composer require liberosoft/luyawysiwyg

要将模块添加到您的项目中,请进入配置的模块部分

return [
    'modules' => [
        // ...
        'wysiwygfrontend' => [
            'class' => 'liberosoft\luyawysiwyg\frontend\Module',
            'useAppViewPath' => false,
        ],
        'wysiwygadmin' => [
            'class' => 'liberosoft\luyawysiwyg\admin\Module',
            'useAppViewPath' => false,
            'textEditorOptions' => [ // tinymce options
                'height' => '480',
                'plugins' => 'link image code lists textcolor',
                'toolbar' => 'undo redo | bold underline italic forecolor backcolor | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat | code'
            ]
        ],
        // ...
    ],
];

运行

./luya import