Skip to content

Instantly share code, notes, and snippets.

@igotit-anything
Last active September 3, 2016 12:26
Show Gist options
  • Save igotit-anything/e78a9f2d2fa5456cb0ca476714614968 to your computer and use it in GitHub Desktop.
Save igotit-anything/e78a9f2d2fa5456cb0ca476714614968 to your computer and use it in GitHub Desktop.
CKEditor. apply my own css file not default contents.css.
<script>
CKEDITOR.replace('editor1',{
contentsCss: '../CSS/ckeditor_specific.css', // apply my own css. not default contents.css
width: 660, // contents width final web page(600) + editor margin(20)*2 + vertical scroll bar(20)
height: 500
});
</script>
// detail about contentsCss -> http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-contentsCss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment