Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wubin1989/summernote-ace-plugin
https://github.com/wubin1989/summernote-ace-plugin
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/wubin1989/summernote-ace-plugin
- Owner: wubin1989
- Created: 2016-05-01T03:24:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-05T05:57:04.000Z (over 8 years ago)
- Last Synced: 2024-05-14T11:06:28.588Z (7 months ago)
- Language: JavaScript
- Size: 3.94 MB
- Stars: 10
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-summernote - summernote-ace-plugin
README
# summernote-ace-plugin
summernote plugin for ace editor## Setup
* Include summernote project script
* Include ace from https://github.com/ajaxorg/ace-builds/
* Include the script tag below in your document
```HTML```
## Usage
* Configuration summernote toolbar
```javascript
$('#summernote').summernote({
// ace options
ace: {
aceTheme: 'ace/theme/dawn',
aceMode: 'c_cpp',
aceLineHeight: '32px',
aceFontSize: '16px',
aceModeSelectorLabel: 'select your language',
aceCodeInputAreaLabel: 'input your code',
aceCodeSubmitBtnLabel: 'Insert',
aceModalTitle: 'Insert Code',
aceModes: [
'c/c++', 'java', 'javascript', 'perl', 'python', 'php', 'ruby',
'sh', 'golang', 'julia', 'rust', 'scala', 'haskell', 'lisp', 'lua', 'sql',
'coffee', 'typescript'
],
},
toolbar: [
['myplugin', ['aceCodeEditor']]
],
});
```## Demo
* git clone [email protected]:wubin1989/summernote-ace-plugin.git
* cd summernote-ace-plugin
* bower install
* open command line, type: open demo/index.html## Contacts
* Email: [email protected]## License
MIT