2014-08-28 4 views
0

wysihtml5 Editor 버전 0.3.0에서 텍스트 내용을 가져오고 설정하는 방법을 알고있는 사람이 있으면 알려주십시오. "getTextContent"와 같은 메서드로 시도했지만 작동하지 않습니다. bootstrap 및 wysihtml5 Editor 버전 0.3.0을 사용하고 있습니다. 예를 들어 나는이 코드를 시도 : wysihtml5의 텍스트 내용 가져 오기 및 설정 편집기 버전 0.3.0

var wysihtml5Editor = $('#inputContentCourrier').data("wysihtml5").editor; 
alert(wysihtml5Editor.getTextContent()); 

여러분의 도움에 감사드립니다.

+0

그래도 확인하려면이 내용을 확인해야합니다. http://stackoverflow.com/a/27999511/3765109 – efkan

답변

0

getValue() 방법을 사용할 수 있습니다. Like - alert(wysihtml5Editor.getValue());