Skip to content

Instantly share code, notes, and snippets.

@RouL
Created January 13, 2012 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RouL/1608719 to your computer and use it in GitHub Desktop.
Save RouL/1608719 to your computer and use it in GitHub Desktop.
<script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/3rdParty/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/3rdParty/ckeditor/adapters/jquery.js"></script>
{event name='additionalIncludes'}
<script type="text/javascript">
//<![CDATA[
$(function() {
var config = {
extraPlugins: 'bbcode',
language: '{@$__wcf->language->getFixedLanguageCode()}',
toolbar:
[
['Source', '-', 'Undo', 'Redo'],
['Bold', 'Italic', 'Underline', 'Strike'],
['NumberedList', 'BulletedList', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'Blockquote'],
'/',
['Font', 'FontSize'],
['Link', 'Unlink', 'Image'],
['TextColor', '-', 'SpecialChar', '-', 'Maximize']
]
};
{event name='additionalJS'}
$('#text').ckeditor(config);
});
//]]>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment