[table]
|类型 按钮|id| 方法
|Insert| picture| Insert a picture
||link| Insert a hyperlink
||video| Insert a video
||table| Insert a table
||hr| Insert a horizontal rule
|Style| style| Format selected block
||fontname| Set font family
||fontsize| Set font size
||color| Set foreground and background color
||bold| Toggle weight
||italic| Toggle italic
||underline| Toggle underline
||strikethrough| Toggle strikethrough
||clear| Clearing all styles
|Layout| ul| Make an un-ordered list
||ol| Make an ordered list
||paragraph| Set text alignment
||height| Set height of text
||Misc| fullscreen Toggle fullscreen editing mode
||codeview| Toggle wysiwyg and html editing mode
||undo| Undo
||redo| Redo
||help| Show help dialog
[/table]
|类型 按钮|id| 方法
|Insert| picture| Insert a picture
||link| Insert a hyperlink
||video| Insert a video
||table| Insert a table
||hr| Insert a horizontal rule
|Style| style| Format selected block
||fontname| Set font family
||fontsize| Set font size
||color| Set foreground and background color
||bold| Toggle weight
||italic| Toggle italic
||underline| Toggle underline
||strikethrough| Toggle strikethrough
||clear| Clearing all styles
|Layout| ul| Make an un-ordered list
||ol| Make an ordered list
||paragraph| Set text alignment
||height| Set height of text
||Misc| fullscreen Toggle fullscreen editing mode
||codeview| Toggle wysiwyg and html editing mode
||undo| Undo
||redo| Redo
||help| Show help dialog
[/table]
$('.summernote').summernote({
toolbar: [
//[groupname, [button list]]
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']],
]
});