mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
823 B
TypeScript
28 lines
823 B
TypeScript
import 'summernote';
|
|
|
|
$('#testElement').summernote({
|
|
airMode: true
|
|
});
|
|
|
|
const config: Summernote.Options = {
|
|
placeholder: '',
|
|
tabsize: 2,
|
|
height: 100,
|
|
tabDisable: true,
|
|
codeviewFilter: false,
|
|
codeviewIframeFilter: true,
|
|
codeviewFilterRegex: 'custom-regex',
|
|
codeviewIframeWhitelistSrc: ['my-own-domainname'],
|
|
toolbar: [
|
|
['misc', ['undo', 'redo']],
|
|
['style', ['bold', 'italic', 'underline', 'clear']],
|
|
['font', ['fontname', 'fontsize', 'color']],
|
|
['para', ['style', 'ul', 'ol', 'paragraph', 'height']],
|
|
['insert', ['picture', 'video']],
|
|
],
|
|
fontNames: ['Helvetica', 'Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Roboto', 'Times'],
|
|
};
|
|
|
|
$('#testElement').summernote('code', '<p> hello </p>');
|
|
$('#testElement').summernote('code');
|