项目作者: DiemenDesign

项目描述 :
Text Manipulation Plugin Summernote Plugin
高级语言: JavaScript
项目地址: git://github.com/DiemenDesign/summernote-text-manipulator.git
创建时间: 2019-12-21T01:31:46Z
项目社区:https://github.com/DiemenDesign/summernote-text-manipulator

开源协议:MIT License

下载


summernote-text-manipulator

A plugin for the Summernote WYSIWYG editor.

Adds a dropdown to the Toolbar that contains various text manipulation options.

Installation

1. Include JS

Include the following code after including Summernote:

  1. <script src="summernote-text-manipulator.js"></script>
  2. <script src="lang/[language-COUNTRY].js"></script>

2. Supported languages

Supported languages can be found in the lang folder, and should be included after the plugin, then setting the chosen language when initialising Summernote.

3. Summernote options

Finally, customize the Summernote Toolbar.

  1. $(document).ready(function() {
  2. $('#summernote').summernote({
  3. toolbar:[
  4. ['custom',['textManipulator']], // The dropdown
  5. ['style',['style']],
  6. ['font',['bold','italic','underline','clear']],
  7. ['fontname',['fontname']],
  8. ['color',['color']],
  9. ['para',['ul','ol','paragraph']],
  10. ['height',['height']],
  11. ['table',['table']],
  12. ['insert',['media','link','hr']],
  13. ['view',['fullscreen','codeview']],
  14. ['help',['help']]
  15. ],
  16. textManipulator:{
  17. lang: 'en-US' // Change to your chosen language
  18. }
  19. });
  20. });

4. Check out our other Summernote Plugins via our main Github page.