2017-03-13 1 views
1

Tinymce를 사용한 온라인 웹 페이지 편집기가 있습니다.Tinymce 새 라인 및 이스케이프 오류

<br> 대신 Enter 키를 누르면 극단적 인 문제가 발생하여 /r/n 개의 특수 문자가 삽입됩니다. 내가 링크 나 이미지의 경로 또는 객체의도 높이 또는 폭을 삽입 할 때마다 다음과 같이

는 또한, 표시

링크 : <a href="\"../page/swami-sant-dass-ji\"">Read More</a>

이미지 :이 엉망으로되어 <img src="\"../n/assets/images/swamiji.jpg\"">

내 웹 사이트와. 또한 stripslashes 기능이 문제를 해결하지 못해도 영향을받지 않습니다.

도움말 감사합니다!

편집

내 TinyMCE에 이니셜은 다음과 같습니다

나는 당신의 TinyMCE에 구성을하고 참조 이상한 결과를 생성하지 않는 링크 나 이미지를 삽입 TinyMCE에 바이올린에로드하면
tinymce.init({ 
      selector:'textarea#texteditor1', 
      height: 500, 
      theme: 'modern', 
      force_br_newlines : true, 
      force_p_newlines : false, 
      forced_root_block : '', 
      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 codesample toc' 
      ], 
      toolbar1: 'code | undo redo | styleselect | bold italic | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image codesample | preview', 
      image_advtab: true, 
      table_default_attributes: { 
       class: 'table table-bordered table-striped', 
       id:'datatable-table-page' 
      }, 
      entity_encoding: "raw", 
      content_css: [ 
      '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i', 
      '//www.tinymce.com/css/codepen.min.css' 
      ] 
     }); 

답변

0

.

TinyMCE에서 (콘텐츠를 저장/다시로드하기 전에) 상황이 올바른 것처럼 보이지만 다시로드하면 엉망이됩니다. 이것은 TinyMCE가 아니라 응용 프로그램 코드의 문제입니다.