samclarke / SCEditor

A lightweight HTML and BBCode WYSIWYG editor
http://www.sceditor.com/
Other
661 stars 187 forks source link

图标样式问题 Icon style issue #948

Closed lianlianlianlianlianlian closed 10 months ago

lianlianlianlianlianlian commented 11 months ago

I want the effect on the official website

as follows

image

But after I installed it Display as follows

image

I like the black style on the official website. Can you tell me how to change it?

My website is using Centos7.9 PHP 8.0, and I'm not sure if it's related to PHP

samclarke commented 10 months ago

Sorry for the delay!

They are the monocons icon set. To use them you need to include the monocons.js file, if using jsdelivr it would be:

<script src="https://cdn.jsdelivr.net/npm/sceditor@3.2.0/minified/icons/monocons.js"></script>

And then set the icons option to 'monocons', for example:

sceditor.create(document.getElementById('example'), {
    format: 'bbcode',
    width: '80%',
    icons: 'monocons',
    style: 'https://cdn.jsdelivr.net/npm/sceditor@latest/minified/themes/content/default.min.css'
});