Classic editor with default styles:
Code:
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex, nofollow">
<title>Classic editor with default styles</title>
<script src="https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js"></script>
</head>
<body>
<textarea cols="80" id="editor1" name="editor1" rows="10" data-sample-short><p>This is some <strong>sample text</strong>. You are using <a href="https://ckeditor.com/">CKEditor</a>.</p></textarea>
<script>
CKEDITOR.replace('editor1', {
height: 260,
width: 700,
});
</script>
</body>
</html>
Classic editor with custom styles:
Code:
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex, nofollow">
<title>Classic editor with custom styles</title>
<script src="https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js"></script>
</head>
<body>
<textarea cols="80" id="editor2" name="editor2" rows="10" data-sample-short><p>This is some <strong>sample text</strong>. You are using <a href="https://ckeditor.com/">CKEditor</a>.</p></textarea>
<script>
CKEDITOR.replace('editor2', {
height: 260,
/* Default CKEditor styles are included as well to avoid copying default styles. */
contentsCss: [
'http://cdn.ckeditor.com/4.12.1/full-all/contents.css',
'https://ckeditor.com/docs/vendors/4.12.1/ckeditor/assets/css/classic.css'
]
});
</script>
</body>
</html>
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )