지출 시간이 지나면 나는 내 자신의 문제에 대한 해결책을 가졌습니다. 무엇 내가 한 일은 내가이 코드를 적용하여 TinyMCE에 CSS의 편집, 그래서 내 코드는 다음과 같이이다 :
tinymce.init
({
selector: '#tickeFormEditor', //texteditor'id
plugins: "pagebreak",
menubar: "insert",
toolbar: "pagebreak",
width: "auto",
height: 200,
theme: 'modern',
setup: function (ed) {
ed.on('keyup', function (e) {
var count = CountCharacters();
document.getElementById("character_count").innerHTML = "Characters: " + count;
});
},
theme_advanced_resizing: false,
plugins:
[
'advlist autolink lists link image charmap print preview hr anchor pagebreak',
'searchreplace wordcount visualblocks visualchars code fullscreen',
'insertdatetime media nonbreaking save table contextmenu directionality',
'emoticons template paste textcolor colorpicker textpattern imagetools'
],
toolbar1: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
toolbar2: 'print preview media | forecolor backcolor emoticons',
image_advtab: false,
templates:
[
{ title: 'Test template 1', content: 'Test 1' },
{ title: 'Test template 2', content: 'Test 2' }
],
content_css: //this is where i have used css of TinyMCE
[
'includes/plugins/tinymce/codepen.min.css'
],
table_default_attributes:
{
border: '1'
},
table_default_styles:
{
border: '1px solid black', borderCollapse: 'collapse'
}
});
을 그리고 난 CSS를 편집하고이 클래스 .mce-content-body p
.mce-content-body p
{
margin:25px 0;
word-wrap:break-word;
word-break:break-all;
}
에게 업데이트 그건 내가 어떻게 내 문제의 해결책을 가지고 그래서 만약 당신이 문제를하거나 어떤 문제가 텍스트 편집기의 CSS에 관한 다음이 CSS를 편집하고 문제를 해결할 수 있습니다. 희망이 당신을 도울 것입니다. :)