Prevent CKEditor from formatting code in source mode

前端 未结 5 768
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 07:31

How can you prevent any automatic formatting when in CKEditor when viewing in source mode?

I like to edit HTML source code directly instead of using the WYSIWYG

5条回答
  •  不要未来只要你来
    2021-02-05 07:39

    config.allowedContent=true; will do the trick

    Here is the full HTML code

    
    
        
            
            CKEditor
            
        
        
            
            
        
    
    

提交回复
热议问题