DefinitelyTyped/types/summernote/summernote-tests.ts
Corbin Crutchley 493128ea2d [summernote] Update various aspects of typings (#40622)
* Update various aspects of the Summernote typings

* Remove un-needed comma
2019-11-25 13:29:08 -08:00

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');