0
JSF에서 Froala Editor (https://www.froala.com/wysiwyg-editor)를 사용하고 싶습니다. 그러나, 다음과 같은 코드를 가지고, newArticleController.body는 Froala에 의해 생성 된 HTML 대신 null 값을 가져옵니다이 문제를 해결하는 방법에Froala 편집기를 JSF와 함께 사용
$(function() {
$('.articleTextarea').froalaEditor({
toolbarButtons: ["bold", "italic", "underline", "|", "subscript", "superscript", "|", "paragraphFormat", "fontFamily", "fontSize", "|", "align", "formatOL", "formatUL", "outdent", "indent", "-", "undo", "redo", "|", "color", "emoticons", "|", "quote", "insertHR", "insertTable", "|", "createLink", "insertImage", "insertVideo", "insertFile", "|", "fullscreen", "html", "save"],
height: 250,
heightMax: 250
})
});
...
<h:form>
<h:inputTextarea value="#{newArticleController.body}" styleClass="articleTextarea"/>
<h:commandButton value="Save" action="#{newArticleController.newArticle}"/>
</h:form>
어떤 생각?