mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Syntax highlight code snippets added via TinyMCE
Prism dependencies included.
This commit is contained in:
parent
0ce10ae5a2
commit
f73c2f13d4
7 changed files with 295 additions and 187 deletions
|
@ -62,7 +62,9 @@ export default Component.extend({
|
|||
inline: 'i'
|
||||
}
|
||||
},
|
||||
codesample_content_css: '//' + window.location.host + '/prism.css',
|
||||
codesample_languages: [
|
||||
{ text: 'ASP.NET (C#)', value: 'aspnet' },
|
||||
{ text: 'C', value: 'c' },
|
||||
{ text: 'C#', value: 'csharp' },
|
||||
{ text: 'C++', value: 'cpp' },
|
||||
|
@ -105,10 +107,8 @@ export default Component.extend({
|
|||
],
|
||||
menu: {},
|
||||
menubar: false,
|
||||
toolbar1:
|
||||
'formatselect fontsizeselect | bold italic underline strikethrough superscript subscript | forecolor backcolor link unlink',
|
||||
toolbar2:
|
||||
'outdent indent bullist numlist | alignleft aligncenter alignright alignjustify | table uploadimage image media codesample',
|
||||
toolbar1: 'formatselect fontsizeselect | bold italic underline strikethrough superscript subscript | forecolor backcolor link unlink',
|
||||
toolbar2: 'outdent indent bullist numlist | alignleft aligncenter alignright alignjustify | table uploadimage image media codesample',
|
||||
save_onsavecallback: function () {
|
||||
Mousetrap.trigger('ctrl+s');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue