Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wubin1989/summernote-ace-plugin


https://github.com/wubin1989/summernote-ace-plugin

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

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