kogakure (owner)

Revisions

gist: 218977 Download_button fork
public
Description:
Typolight: TinyMCE config
Public Clone URL: git://gist.github.com/218977.git
Embed All Files: show embed
tinyMCE.php #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
 
/**
* TYPOlight webCMS
* Copyright (C) 2005-2009 Leo Feyer
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, please visit the Free
* Software Foundation website at http://www.gnu.org/licenses/.
*
* PHP version 5
* @copyright Leo Feyer 2005-2009
* @author Leo Feyer <leo@typolight.org>
* @package Config
* @license LGPL
* @filesource
*/
 
 
/**
* This is the tinyMCE (rich text editor) configuration file. Please visit
* http://tinymce.moxiecode.com for more information.
*/
?>
<script type="text/javascript" src="<?php echo $this->base; ?>plugins/tinyMCE/tiny_mce_gzip.js"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
tinyMCE_GZ.init({
plugins : "advimage,autosave,contextmenu,directionality,emotions,inlinepopups,paste,safari,save,searchreplace,spellchecker,style,table,template,typolinks,xhtmlxtras",
themes : "advanced",
languages : "<?php echo $this->language; ?>",
disk_cache : false,
debug : false
});
//--><!]]>
</script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
tinyMCE.init({
mode : "exact",
height : "300",
language : "<?php echo $this->language; ?>",
elements : "<?php echo $this->rteFields; ?>",
<?php if ($this->brNewLine): ?>
forced_root_block : false,
force_p_newlines : false,
force_br_newlines : true,
<?php endif; ?>
remove_linebreaks : false,
force_hex_style_colors : true,
fix_list_elements : true,
fix_table_elements : true,
theme_advanced_font_sizes : "9px,10px,11px,12px,13px,14px,15px,16px,17px,18px,19px,20px,21px,22px,23px,24px",
doctype : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
document_base_url : "<?php echo $this->base; ?>",
entities : "160,nbsp,60,lt,62,gt",
cleanup_on_startup : true,
save_enablewhendirty : true,
save_on_tinymce_forms : true,
save_callback : "TinyCallback.cleanXHTML",
advimage_update_dimensions_onchange : false,
external_image_list_url : "<?php echo TL_PATH; ?>/plugins/tinyMCE/plugins/typolinks/typoimages.php",
template_external_list_url : "<?php echo TL_PATH; ?>/plugins/tinyMCE/plugins/typolinks/typotemplates.php",
plugins : "advimage,autosave,contextmenu,directionality,emotions,inlinepopups,paste,safari,save,searchreplace,spellchecker,style,table,template,typolinks,xhtmlxtras",
spellchecker_languages : "+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",
content_css : "<?php echo TL_PATH; ?>/system/themes/tinymce.css,<?php echo TL_PATH; ?>/tl_files/css/tinymce.css",
event_elements : "a,div,h1,h2,h3,h4,h5,h6,img,p,span",
extended_valid_elements : "q[cite|class|title]",
tab_focus : ":prev,:next",
theme : "advanced",
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_source_editor_width : "700",
theme_advanced_blockformats : "p,h2,h3,h4",
theme_advanced_buttons1 : "bold,italic,bullist,numlist,blockquote,abbr,indent,outdent,typolinks,unlink,sub,sup,formatselect,styleselect,search,replace,pasteword,removeformat,cleanup,charmap,undo,redo,help,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : ""
});
//--><!]]>
</script>