Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript" src="http://www.html.am/html-editors/ckeditor/ckeditor.js"></script>
- <script src="http://www.html.am/html-editors/ckeditor/_samples/sample.js" type="text/javascript"></script>
- <link href="http://www.html.am/html-editors/ckeditor/_samples/sample.css" rel="stylesheet" type="text/css" />
- <div id="alerts">
- <noscript>
- <p>
- <strong>This online HTML editor requires JavaScript to run</strong>. Your browser either doesn't support JavaScript, or JavaScript is currently disabled (via preferences or options). Because of this, you will see the raw HTML code instead of the rich text / WYSIWYG editor.
- </p>
- <p>To view the rich text / WYSIWYG editor, please enable JavaScript (or use a browser that supports JavaScript).</p>
- </noscript>
- </div>
- <div style="width:600px;">
- <textarea class="ckeditor" cols="80" id="EditorBold" name="EditorBold" rows="10">
- <p>Instructions:</p>
- <ol>
- <li>Replace this text with your own text.</li>
- <li>Use the above toolbar format the text.</li>
- <li>Use the <b>Source</b> button to view the HTML code. You can then copy/paste the code into your own website or blog.</li>
- </ol>
- <p>There, that's all it takes to generate HTML text code for your website!</p>
- <hr />
- <p>If you found this HTML text generator useful, you may also be interested in this:</p>
- <p style="font-size:10px;"><a href="http://www.html.am/html-codes/">Free HTML Codes</a></p>
- </textarea>
- </div>
- <script type="text/javascript">
- //<![CDATA[
- CKEDITOR.replace( 'EditorBold',
- {
- toolbar :
- [
- ['Bold'],
- ['Italic'],
- ['Underline'],
- ['Strike'],
- ['Subscript'],
- ['Superscript'],
- ['NumberedList'],
- ['BulletedList'],
- ['Outdent'],
- ['Indent'],
- ['Blockquote'],
- ['CreateDiv'],
- ['JustifyLeft'],
- ['JustifyCenter'],
- ['JustifyRight'],
- ['JustifyBlock'],
- ['Styles'],
- ['Format'],
- ['Font'],
- ['FontSize'],
- ['TextColor'],
- ['BGColor'],
- ['Source']
- ]
- });
- CKEDITOR.on( 'instanceReady', function( ev )
- {
- ev.editor.dataProcessor.writer.setRules( 'p',
- {
- indent : false,
- breakBeforeOpen : false,
- breakAfterOpen : false,
- breakBeforeClose : false,
- breakAfterClose : true
- });
- ev.editor.dataProcessor.writer.setRules( 'li',
- {
- indent : false,
- breakBeforeOpen : false,
- breakAfterOpen : false,
- breakBeforeClose : false,
- breakAfterClose : true
- });
- ev.editor.dataProcessor.writer.setRules( 'ul',
- {
- indent : false,
- breakBeforeOpen : false,
- breakAfterOpen : true,
- breakBeforeClose : false,
- breakAfterClose : true
- });
- ev.editor.dataProcessor.writer.setRules( 'ol',
- {
- indent : false,
- breakBeforeOpen : false,
- breakAfterOpen : true,
- breakBeforeClose : false,
- breakAfterClose : true
- });
- });
- //]]>
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement