1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

TinyMce code-highlighting class preference

This commit is contained in:
Cameron
2017-11-09 10:18:13 -08:00
parent 93ab7996c7
commit c0c1e43a57
4 changed files with 10 additions and 5 deletions

View File

@@ -503,6 +503,8 @@ class wysiwyg
//@see http://www.tinymce.com/wiki.php/Configuration:formats
$codeHighlightClass = varset($tPref['code_highlight_class'], 'prettyprint linenums');
$formats = "[
{title: 'Headers', items: [
{title: 'Heading 1', block: 'h1'},
@@ -530,7 +532,7 @@ class wysiwyg
{title: 'Blockquote alt.', block: 'blockquote', classes: 'blockquote-alt blockquote__alternative'},
{title: 'Div', block: 'div'},
{title: 'Pre', block: 'pre'},
{title: 'Code Highlighted', block: 'pre', classes: 'prettyprint linenums' }
{title: 'Code Highlighted', block: 'pre', classes: '".$codeHighlightClass."' }
]},
{title: 'Lists', items: [