How to use Simditor, a text editor based on browser WYSIWYG
Based on the browser WYSIWYG text editor Simditor how to use, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
Simditor is Tower's open source WYSIWYG text editor whose philosophy is to keep it simple and avoid excessive functionality.
The characteristics of WYSIWYG Simditor
Compared with traditional editors, it has the following characteristics:
Compact function and fast loading
Output formatted standard html
Every function has a very excellent experience.
Compatible browsers: IE10+, Chrome, Firefox, Safari.
Download WYSIWYG simditor and use the
First of all, you need to download the relevant js and css files of simditor and put them under your own project. The css and js files that need to be introduced are introduced first. Then proceed to a very important step, configure your own js file to achieve the real purpose of introducing simditor.
(function () {
$(function () {)
Vareditor,toolbar
Simditor.locale='zh-CN'
Toolbar= ['title','bold','italic','underline','strikethrough','fontScale','color',' |', 'ol','ul','blockquote','code','table',' |', 'link','image','hr',' |', 'indent','outdent','alignment']
Editor=newSimditor ({
Textarea:$ ('# simditor')
Placeholder:', enter the text here.'
Toolbar:toolbar
PasteImage:true
DefaultImage:'/simditor/images/image.png'
Upload:false
})
})
}) .call (this)
After reading the above, have you mastered how to use Simditor, a text editor based on browser WYSIWYG? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!