diff --git a/lib/editor/tinymce/tinymce.class.php b/lib/editor/tinymce/tinymce.class.php index cdbec765daa..1f91b6bc415 100644 --- a/lib/editor/tinymce/tinymce.class.php +++ b/lib/editor/tinymce/tinymce.class.php @@ -256,6 +256,10 @@ class tinymce extends editorObject { continue; } + if ( $cnt > 1 ) { + echo ',' ."\n"; + } + echo "\t" . $key .' : '; if ( is_bool($value) ) { @@ -264,10 +268,6 @@ class tinymce extends editorObject { echo '"'. $value .'"'; } - if ( $cnt < $max ) { - echo ','; - } - echo "\n"; $cnt++; } }