我正在尝试将fontsizes添加到summernote编辑器中,但没有运气。如果我删除[ts]
Argument of type 'typeof MenuContainer' is not assignable to parameter of type 'ComponentClass<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>'.
Types of property 'defaultProps' are incompatible.
Type '{ focus: boolean; }' has no properties in common with type 'Partial<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>'.
并使用['fontsize', ['8', '9', '10', '11', '12', '14', '18']],
,我只会获得一个尺寸,即13个。我正在尝试获取尺寸列表。
['fontsize', ['fontsize']],
答案 0 :(得分:1)
答案 1 :(得分:1)
我的问题是我有一个文件bootstrap.js破坏了代码。
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.js"></script>
<!-- include summernote css/js -->
<link href="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.9/summernote-lite.css" rel="stylesheet">
<script src="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.9/summernote-lite.js"></script>