2014-02-26 6 views
1

장고 관리자와 함께 ckeditor로 게시물을 만들면 좋은 포스트가됩니다. 그러나 편집해야 할 때 모든 HTML 태그와 스타일 (모든 소스)이 wysiwyg 모드로 표시됩니다. 장고 ckeditor가 wysiwyg에서 html 태그를 붙여 넣습니다.

내가 쓰고 있어요

:
enter image description here

'저장하고 계속 편집'
enter image description here

내 모델에서 RichTextField를 사용 후.
P. django-ckeditor-PyPI에서 업데이트했습니다.
아마도 내 configs에 문제가 있습니까? 장고 - ckeditor-확장의

복제 내 환매 특약, 진정한 및 데모 애플리케이션 실행 - https://github.com/riklaunim/django-ckeditor - 그것은 관리자에 당신을 위해 작동하는지 확인을하고, 경우 :

CKEDITOR_CONFIGS = { 
    'default': { 
     'toolbar': 'UltraFull', 
     'height': 300, 
     'toolbar_UltraFull': [ 
      ['Font', 'FontSize', 'Format'], 
      ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'], 
      [ 
       'NumberedList', 'BulletedList', '-', 
       'Outdent', 'Indent', '-', 
       'Blockquote', '-', 
       'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' 
      ], 
      ['Link', 'Unlink', 'Anchor'], 
      ['Image', 'Flash', 'Table', 'HorizontalRule', 'PageBreak', 'Smiley', 'SpecialChar'], 
      ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'], 
      ['TextColor', 'BGColor'], 
      ['Maximize', 'Source'], 
     ], 
     'language': 'ru', 
     'forcePasteAsPlainText': True, 
    }, 
} 

답변

0

그것은 'forcePasteAsPlainText'가 될 수 그래서 귀하의 설정을 적용하고 비교

+0

그것은 내 애플 리케이션과 함께 잘 작동하지만 내 문제는 ... 내 옆에 문제가있는 것 같습니다 –

+0

브라우저의 JS 콘솔에 오류가 발생합니까? 문제가 반복 될 때까지 조각으로 구성 조각을 데모에 추가하기 시작하십시오. – Riklaunim