BootstrapValidator with CKEditor



我正在尝试使用"BootstrapValidator"来验证"CKEditor"。

就像下面的例子:LINK

不幸的是,我没有办法让它工作。我试图更新不可见的文本区域内容,但它也没有帮助。我的尝试:

.find('[name="bio"]')
    .ckeditor()
    .editor
// To use the 'change' event, use CKEditor 4.2 or later
.on('change', function () {
    // Revalidate the bio field
    $('#profileForm').bootstrapValidator('revalidateField', 'bio');
});

JsFiddle

首先更新您的CKEditor将它添加

<script src="//cdn.ckeditor.com/4.4.3/basic/ckeditor.js"></script> <script src="//cdn.ckeditor.com/4.4.3/basic/adapters/jquery.js"></script>

然后检查。

最新更新