2013-01-22, 08:16 AM
Very nice. I got one problem with the quick reply though.
By default the following code appears in it, and if you remove it and write something else, this appears in the post anyway.
In other words: Quick Reply = broken.
Thanks in advance!
By default the following code appears in it, and if you remove it and write something else, this appears in the post anyway.
In other words: Quick Reply = broken.
<script src="http://mywebsite.com/ckeditor/ckeditor.js"></script>
<script src="http://mywebsite.com/samples/sample.js"></script>
<script>
CKEDITOR.replace( 'message', {
extraPlugins: 'bbcode,code',
language: 'en',
uiColor: '#CCCCCC',
magicline_color: '#FF0000',
// Remove unused plugins.
removePlugins: 'bidi,dialogadvtab,div,filebrowser,flash,format,forms,iframe,liststyle,pagebreak,showborders,stylescombo,table,tabletools,templates',
// Width and height are not supported in the BBCode format, so object resizing is disabled.
disableObjectResizing: true,
resize_maxHeight: '450',
// Define font sizes in percent values.
fontSize_sizes: "XX Small/xx-small;X Small/x-small;Small/small;Medium/medium;Large/large;X Large/x-large;XX Large/xx-large",
font_names: "Tahoma/Tahoma;Arial/Arial;Comic Sans MS/Comic Sans MS/Courier New;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode;Times New Roman/Times New Roman;Trebuchet MS/Trebuchet MS;Verdana/Verdana;",
toolbar: [
[ 'Source', '-', 'Save', 'NewPage', 'Print', '-', 'Undo', 'Redo' ],
[ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord' ],
[ 'Find', 'Replace', '-', 'SelectAll' ],
'/',
[ 'Link', 'Unlink', 'Image', 'Smiley', 'SpecialChar', '-', 'HorizontalRule' ],
[ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ],
[ 'Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript', '-', 'RemoveFormat' ],
'/',
[ 'FontSize', 'Font' ],
[ 'TextColor' ],
[ 'NumberedList', 'BulletedList', '-', 'Blockquote', 'Code' ],
[ 'Maximize', '-', 'About' ]
],
smiley_columns: '4',
skin: 'moono',
// Strip CKEditor smileys to those commonly used in BBCode.
smiley_images: [
'images/smilies/mad.png', 'images/smilies/redface.png', 'images/smilies/confused.png', 'images/smilies/heart.png', 'images/smilies/idea.png', 'images/smilies/sleeping.png', 'images/smilies/unsure.png', 'images/smilies/smile.png', 'images/smilies/wink.png', 'images/smilies/cool.png', 'images/smilies/biggrin.png', 'images/smilies/tongue.png', 'images/smilies/rolleyes.png', 'images/smilies/frown.png', 'images/smilies/smug.png', 'images/smilies/roflmao.png', 'images/smilies/mrpg-smilie.png',
],
smiley_descriptions: [
':@', ':blush:', ':s', ':heart:', ':idea:', ':sleepy:', ':-/', '', '', ':cool:', '', '', ':rolleyes:', '', ':smug:', ':rofl:', ':mrpg:',
]
});
</script>
Thanks in advance!