我在RedactorJS
的最后一个版本(9.1.1)上添加了fontcolor plugin。它不起作用。我无法添加plunker / jsFiddle,因为RedactorJS
需要许可证,但我提供了我的conf文件:
<script src="redactor/redactor.min.js"></script>
<script src="plugins/fontcolor/fontcolor.js"></script>
<script type="text/javascript">
$(function() {
$('#redactor').redactor({
buttons: [
'bold',
'italic',
'underline',
'fontcolor',
'formatting',
'image',
'link',
'unorderedlist',
'orderedlist',
'alignment',
'|',
'html'
]
});
});
</script>
<textarea id="redactor" name="content">
<h2>Hello and Welcome</h2>
<p>...</p>
</textarea>
答案 0 :(得分:3)
修正:
$('#redactor').redactor({
plugins: ['fontcolor'],
buttons: [
'bold',
'italic',
'underline',
'formatting',
'image',
'link',
'unorderedlist',
'orderedlist',
'alignment',
'|',
'html'
]
});