2012-08-16 3 views
4

TinyMce를 사용하여 데이터베이스의 텍스트를 삽입/편집하지만, <br />이없는 이유를 모르겠습니다. ENTER 나 SHIFT + ENTER를 누르더라도 새 줄이 없습니다.TinyMce가 삽입되지 않았습니다. <br />

TinyMCE에 초기화 :

tinyMCE.init({ 
    mode : "textareas", 
    theme : "simple", 
    force_p_newlines : false, 
    force_br_newlines : true, 
    convert_newlines_to_brs : false 
}); 

답변

13

TinyMCE documentation for force_br_newlines에 따르면

이 옵션은 3.5 사용 forced_root_blocks 추천되지 않습니다 : BR 행동 대 페이지를 제어하는 ​​대신에 거짓.

버전 3.0a1부터는 forced_root_block이 기본적으로 사용됩니다. The documentation also says이 옵션을 사용하지 않으면 Enter 키는 <br />이고 Shift + Enter 키는 <p>이됩니다.

이 시도 :

tinyMCE.init({ 
    mode : "textareas", 
    theme : "simple", 
    forced_root_block : false, 
}); 
관련 문제