MDL-14739: some minor modifications to allow per-editor customization, and changing ("dos2unix") the format of some files.
This commit is contained in:
@@ -1,95 +1,95 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @copyright © 2006 The Open University
|
||||
* @author [email protected], [email protected]
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||
* @package portfolio
|
||||
*/
|
||||
|
||||
|
||||
class htmlEditor {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function configure($editor = NULL) {
|
||||
|
||||
global $CFG;
|
||||
static $configured = Array();
|
||||
|
||||
if (!$CFG->htmleditor) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($editor == '') {
|
||||
$editor = (isset($CFG->defaulthtmleditor) ? $CFG->defaulthtmleditor : '');
|
||||
}
|
||||
|
||||
$configuration = '';
|
||||
|
||||
switch ($editor) {
|
||||
|
||||
case 'tinymce':
|
||||
if (!isset($configured['tinymce'])) {
|
||||
$configuration = <<<EOF
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/tinymce.js.php"></script>
|
||||
EOF;
|
||||
$configured['tinymce'] = true;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'fckeditor':
|
||||
$configuration = <<<EOF
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/fckeditor/fckeditor.js"></script>
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/fckeditor.js.php"></script>
|
||||
EOF;
|
||||
break;
|
||||
|
||||
|
||||
case 'xinha':
|
||||
$configuration = <<<EOF
|
||||
<script type="text/javascript">
|
||||
_editor_url = "{$CFG->wwwroot}/lib/editor/xinha/"
|
||||
_editor_lang = "en";
|
||||
_editor_skin = "blue-look";
|
||||
</script>
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/xinha/XinhaCore.js"></script>
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/xinha.js.php"></script>
|
||||
EOF;
|
||||
break;
|
||||
|
||||
case 'yuirte':
|
||||
$configuration = <<<EOF
|
||||
<!-- Skin CSS file -->
|
||||
<link rel="stylesheet" type="text/css" href="{$CFG->wwwroot}/lib/editor/yui/build/assets/skins/sam/skin.css">
|
||||
|
||||
<!-- Utility Dependencies -->
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/yui/build/yahoo-dom-event/yahoo-dom-event.js"></script>
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/yui/build/element/element-beta-min.js"></script>
|
||||
|
||||
<!-- Needed for Menus, Buttons and Overlays used in the Toolbar -->
|
||||
<script src="{$CFG->wwwroot}/lib/editor/yui/build/container/container_core-min.js"></script>
|
||||
<script src="{$CFG->wwwroot}/lib/editor/yui/build/menu/menu-min.js"></script>
|
||||
<script src="{$CFG->wwwroot}/lib/editor/yui/build/button/button-min.js"></script>
|
||||
|
||||
<!-- Source file for Rich Text Editor-->
|
||||
<script src="{$CFG->wwwroot}/lib/editor/yui/build/editor/editor-beta-min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/yuirte.js.php"></script>
|
||||
EOF;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
return $configuration;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @copyright © 2006 The Open University
|
||||
* @author [email protected], [email protected]
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||
* @package portfolio
|
||||
*/
|
||||
|
||||
|
||||
class htmlEditor {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function configure($editor = NULL) {
|
||||
|
||||
global $CFG;
|
||||
static $configured = Array();
|
||||
|
||||
if (!isset($CFG->htmleditor) or (!$CFG->htmleditor)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($editor == '') {
|
||||
$editor = (isset($CFG->defaulthtmleditor) ? $CFG->defaulthtmleditor : '');
|
||||
}
|
||||
|
||||
$configuration = '';
|
||||
|
||||
switch ($editor) {
|
||||
|
||||
case 'tinymce':
|
||||
if (!isset($configured['tinymce'])) {
|
||||
$configuration = <<<EOF
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/tinymce.js.php"></script>
|
||||
EOF;
|
||||
$configured['tinymce'] = true;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'fckeditor':
|
||||
$configuration = <<<EOF
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/fckeditor/fckeditor.js"></script>
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/fckeditor.js.php"></script>
|
||||
EOF;
|
||||
break;
|
||||
|
||||
|
||||
case 'xinha':
|
||||
$configuration = <<<EOF
|
||||
<script type="text/javascript">
|
||||
_editor_url = "{$CFG->wwwroot}/lib/editor/xinha/"
|
||||
_editor_lang = "en";
|
||||
_editor_skin = "blue-look";
|
||||
</script>
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/xinha/XinhaCore.js"></script>
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/xinha.js.php"></script>
|
||||
EOF;
|
||||
break;
|
||||
|
||||
case 'yuirte':
|
||||
$configuration = <<<EOF
|
||||
<!-- Skin CSS file -->
|
||||
<link rel="stylesheet" type="text/css" href="{$CFG->wwwroot}/lib/editor/yui/build/assets/skins/sam/skin.css">
|
||||
|
||||
<!-- Utility Dependencies -->
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/yui/build/yahoo-dom-event/yahoo-dom-event.js"></script>
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/yui/build/element/element-beta-min.js"></script>
|
||||
|
||||
<!-- Needed for Menus, Buttons and Overlays used in the Toolbar -->
|
||||
<script src="{$CFG->wwwroot}/lib/editor/yui/build/container/container_core-min.js"></script>
|
||||
<script src="{$CFG->wwwroot}/lib/editor/yui/build/menu/menu-min.js"></script>
|
||||
<script src="{$CFG->wwwroot}/lib/editor/yui/build/button/button-min.js"></script>
|
||||
|
||||
<!-- Source file for Rich Text Editor-->
|
||||
<script src="{$CFG->wwwroot}/lib/editor/yui/build/editor/editor-beta-min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="{$CFG->wwwroot}/lib/editor/yuirte.js.php"></script>
|
||||
EOF;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
return $configuration;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
+212
-212
@@ -1,212 +1,212 @@
|
||||
<?php
|
||||
|
||||
require_once('../../config.php');
|
||||
|
||||
/*
|
||||
*
|
||||
* ********************************************************************************************************
|
||||
*
|
||||
* This section configures the TinyMCE toolbar buttons on and off
|
||||
* depending on the Moodle settings
|
||||
*
|
||||
* The changes are applied on a global basis,
|
||||
* ..... but there is scope here to modify and restrict the config
|
||||
* on a role basis, course basis, user basis, etc. if so desired.
|
||||
*
|
||||
*/
|
||||
$editorhidebuttons = str_replace(' ', ',', $CFG->editorhidebuttons);
|
||||
|
||||
$editorhidebuttons1 = $editorhidebuttons . ',visualaid,styleselect';
|
||||
|
||||
$editorhidebuttons = 'theme_advanced_disable : "'.$editorhidebuttons1.'",';
|
||||
|
||||
$editorhidebuttons = str_replace('fontsize', 'fontsizeselect', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('subscript', 'sub', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('superscript', 'sup', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('insertorderedlist', 'numlist', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('insertunorderedlist', 'bullist', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('createanchor', 'anchor', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('createlink', 'link', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('htmlmode', 'code', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('insertchar', 'charmap', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('insertimage', 'image', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('inserthorizontalrule', 'hr', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('formatblock', 'formatselect', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('clean', 'cleanup,removeformat', $editorhidebuttons);
|
||||
|
||||
// insertsmile,
|
||||
|
||||
$pieces = explode(",", $editorhidebuttons1);
|
||||
|
||||
$spellcheck = '';
|
||||
if (! in_array("spellcheck", $pieces)) {
|
||||
$spellcheck = 'spellchecker,';
|
||||
}
|
||||
$inserttable = '';
|
||||
if (! in_array("inserttable", $pieces)) {
|
||||
$inserttable = 'tablecontrols,separator,';
|
||||
}
|
||||
$search_replace = '';
|
||||
if (! in_array("search_replace", $pieces)) {
|
||||
$search_replace = 'search,replace,separator,';
|
||||
}
|
||||
$lefttoright = '';
|
||||
if (! in_array("lefttoright", $pieces)) {
|
||||
$lefttoright = 'ltr,separator,';
|
||||
}
|
||||
$righttoleft = '';
|
||||
if (! in_array("righttoleft", $pieces)) {
|
||||
$righttoleft = 'rtl,separator,';
|
||||
}
|
||||
$cleanup = '';
|
||||
if (! in_array("cleanup", $pieces)) {
|
||||
$cleanup = 'cleanup,removeformat,separator,';
|
||||
}
|
||||
$fontselect = '';
|
||||
if (! in_array("fontname", $pieces)) {
|
||||
$fontselect = 'fontselect,';
|
||||
}
|
||||
$fontsize = '';
|
||||
if (! in_array("fontsize", $pieces)) {
|
||||
$fontsize = 'fontsizeselect,';
|
||||
}
|
||||
$forecolor = '';
|
||||
if (! in_array("forecolor", $pieces)) {
|
||||
$forecolor = 'forecolor,';
|
||||
}
|
||||
$hilitecolor = '';
|
||||
if (! in_array("hilitecolor", $pieces)) {
|
||||
$hilitecolor = 'backcolor,';
|
||||
}
|
||||
$popupeditor = '';
|
||||
if (! in_array("popupeditor", $pieces)) {
|
||||
$popupeditor = 'fullscreen,';
|
||||
}
|
||||
|
||||
$editoraddbuttons3 = 'theme_advanced_buttons3_add : "'.$fontselect.$fontsize.$forecolor.$hilitecolor.'",';
|
||||
$editoraddbuttons4 = 'theme_advanced_buttons4 : "'.$spellcheck.$search_replace.$inserttable.$lefttoright.$righttoleft.$popupeditor.$cleanup.'",';
|
||||
|
||||
/*
|
||||
*
|
||||
* ********************************************************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$temp = $_SERVER["REQUEST_URI"];
|
||||
$temp = explode('/', $temp);
|
||||
$root = $temp[1];
|
||||
|
||||
$configuration = <<<EOF
|
||||
|
||||
function createHTMLArea(id) {
|
||||
|
||||
random = Math.ceil(1000*Math.random());
|
||||
editor = 'editor'+random;
|
||||
editorsubmit = 'editorsubmit'+random;
|
||||
|
||||
tinyMCE.init({
|
||||
mode : "exact",
|
||||
elements : id,
|
||||
theme : "advanced",
|
||||
|
||||
plugins : "safari,spellchecker,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,pagebreak,",
|
||||
spellchecker_languages : "+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",
|
||||
|
||||
plugin_insertdate_dateFormat : "%Y-%m-%d",
|
||||
plugin_insertdate_timeFormat : "%H:%M:%S",
|
||||
|
||||
content_css : "/$root/lib/editor/tinymce/examples/css/content.css",
|
||||
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "top",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
|
||||
theme_advanced_resize_horizontal : true,
|
||||
theme_advanced_resizing : true,
|
||||
apply_source_formatting : true,
|
||||
|
||||
$editorhidebuttons
|
||||
$editoraddbuttons3
|
||||
$editoraddbuttons4
|
||||
|
||||
});
|
||||
|
||||
script = "document.getElementById("+id+").form."+editorsubmit+" = document.getElementById("+id+").form.onsubmit;";
|
||||
script = script + "document.getElementById("+id+").form.onsubmit = function() { tinyMCE.triggerSave(); document.getElementById("+id+").form."+editorsubmit+"(); document.getElementById("+id+").form."+editorsubmit+" = null;}";
|
||||
eval(script);
|
||||
|
||||
}
|
||||
|
||||
EOF;
|
||||
|
||||
echo <<<EOF
|
||||
tinyMCE.init({
|
||||
mode: "textareas",
|
||||
relative_urls: false,
|
||||
editor_selector: "form-textarea-simple",
|
||||
document_base_url: "$CFG->httpswwwroot",
|
||||
theme: "simple",
|
||||
skin: "o2k7",
|
||||
apply_source_formatting: true,
|
||||
remove_script_host: false,
|
||||
entity_encoding: "raw",
|
||||
language: "en",
|
||||
plugins: "spellchecker,emoticons,paste,standardmenu,directionality"
|
||||
});
|
||||
tinyMCE.init({
|
||||
mode: "textareas",
|
||||
relative_urls: false,
|
||||
editor_selector: "form-textarea-advanced",
|
||||
document_base_url: "$CFG->httpswwwroot",
|
||||
theme: "advanced",
|
||||
skin: "o2k7",
|
||||
apply_source_formatting: true,
|
||||
remove_script_host: false,
|
||||
entity_encoding: "raw",
|
||||
language: "en",
|
||||
plugins: "safari,spellchecker,table,style,layer,advhr,advimage,advlink,emoticons,inlinepopups,media,searchreplace,paste,standardmenu,directionality,fullscreen,moodleimage,moodlelink,dragmath,nonbreaking",
|
||||
theme_advanced_layout_manager: "SimpleLayout",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_buttons1: "fontselect,fontsizeselect,formatselect,",
|
||||
theme_advanced_buttons1_add: "styleselect,selectall,pastetext,pasteword,cleanup",
|
||||
theme_advanced_buttons2: "bold,italic,underline,strikethrough,sub,sup,|,justifyleft,justifycenter,justifyright,justifyfull,|,undo,redo,removeformat,code",
|
||||
theme_advanced_buttons2_add: "styleprops,ltr,rtl,nonbreaking,charmap",
|
||||
theme_advanced_buttons3: "media,advhr,emoticons,dragmath,spellchecker,search,code,fullscreen,bullist,numlist,outdent,indent,forecolor,backcolor,link,unlink,anchor,image,charmap,insertlayer,table",
|
||||
theme_advanced_buttons3_add: "media,emoticons,charmap,dragmath,search,code,fullscreen",
|
||||
theme_advanced_fonts: "Trebuchet=Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;Wingdings=wingdings",
|
||||
moodleimage_course_id: $COURSE->id,
|
||||
theme_advanced_resize_horizontal: true,
|
||||
theme_advanced_resizing: true,
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
file_browser_callback : "moodlefilemanager",
|
||||
|
||||
EOF;
|
||||
// the xhtml ruleset must be the last one - no comma at the end of the file
|
||||
readfile('tinymce/xhtml_ruleset.txt');
|
||||
echo <<<EOF
|
||||
});
|
||||
function toggleEditor(id) {
|
||||
var elm = document.getElementById(id);
|
||||
if (tinyMCE.getInstanceById(id) == null)
|
||||
tinyMCE.execCommand('mceAddControl', false, id);
|
||||
else
|
||||
tinyMCE.execCommand('mceRemoveControl', false, id);
|
||||
}
|
||||
function moodlefilemanager(field_name, url, type, win) {
|
||||
tinyMCE.activeEditor.windowManager.open({
|
||||
file: "{$CFG->httpswwwroot}/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/link.php?id={$COURSE->id}",
|
||||
width: 480,
|
||||
height: 380,
|
||||
resizable: "yes",
|
||||
inline: "yes",
|
||||
close_previous: "no"
|
||||
}, {
|
||||
window: win,
|
||||
input: field_name
|
||||
});
|
||||
return false;
|
||||
}
|
||||
EOF;
|
||||
?>
|
||||
<?php
|
||||
|
||||
require_once('../../config.php');
|
||||
|
||||
/*
|
||||
*
|
||||
* ********************************************************************************************************
|
||||
*
|
||||
* This section configures the TinyMCE toolbar buttons on and off
|
||||
* depending on the Moodle settings
|
||||
*
|
||||
* The changes are applied on a global basis,
|
||||
* ..... but there is scope here to modify and restrict the config
|
||||
* on a role basis, course basis, user basis, etc. if so desired.
|
||||
*
|
||||
*/
|
||||
$editorhidebuttons = str_replace(' ', ',', $CFG->tinymcehidebuttons);
|
||||
|
||||
$editorhidebuttons1 = $editorhidebuttons . ',visualaid,styleselect';
|
||||
|
||||
$editorhidebuttons = 'theme_advanced_disable : "'.$editorhidebuttons1.'",';
|
||||
|
||||
$editorhidebuttons = str_replace('fontsize', 'fontsizeselect', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('subscript', 'sub', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('superscript', 'sup', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('insertorderedlist', 'numlist', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('insertunorderedlist', 'bullist', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('createanchor', 'anchor', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('createlink', 'link', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('htmlmode', 'code', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('insertchar', 'charmap', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('insertimage', 'image', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('inserthorizontalrule', 'hr', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('formatblock', 'formatselect', $editorhidebuttons);
|
||||
$editorhidebuttons = str_replace('clean', 'cleanup,removeformat', $editorhidebuttons);
|
||||
|
||||
// insertsmile,
|
||||
|
||||
$pieces = explode(",", $editorhidebuttons1);
|
||||
|
||||
$spellcheck = '';
|
||||
if (! in_array("spellcheck", $pieces)) {
|
||||
$spellcheck = 'spellchecker,';
|
||||
}
|
||||
$inserttable = '';
|
||||
if (! in_array("inserttable", $pieces)) {
|
||||
$inserttable = 'tablecontrols,separator,';
|
||||
}
|
||||
$search_replace = '';
|
||||
if (! in_array("search_replace", $pieces)) {
|
||||
$search_replace = 'search,replace,separator,';
|
||||
}
|
||||
$lefttoright = '';
|
||||
if (! in_array("lefttoright", $pieces)) {
|
||||
$lefttoright = 'ltr,separator,';
|
||||
}
|
||||
$righttoleft = '';
|
||||
if (! in_array("righttoleft", $pieces)) {
|
||||
$righttoleft = 'rtl,separator,';
|
||||
}
|
||||
$cleanup = '';
|
||||
if (! in_array("cleanup", $pieces)) {
|
||||
$cleanup = 'cleanup,removeformat,separator,';
|
||||
}
|
||||
$fontselect = '';
|
||||
if (! in_array("fontname", $pieces)) {
|
||||
$fontselect = 'fontselect,';
|
||||
}
|
||||
$fontsize = '';
|
||||
if (! in_array("fontsize", $pieces)) {
|
||||
$fontsize = 'fontsizeselect,';
|
||||
}
|
||||
$forecolor = '';
|
||||
if (! in_array("forecolor", $pieces)) {
|
||||
$forecolor = 'forecolor,';
|
||||
}
|
||||
$hilitecolor = '';
|
||||
if (! in_array("hilitecolor", $pieces)) {
|
||||
$hilitecolor = 'backcolor,';
|
||||
}
|
||||
$popupeditor = '';
|
||||
if (! in_array("popupeditor", $pieces)) {
|
||||
$popupeditor = 'fullscreen,';
|
||||
}
|
||||
|
||||
$editoraddbuttons3 = 'theme_advanced_buttons3_add : "'.$fontselect.$fontsize.$forecolor.$hilitecolor.'",';
|
||||
$editoraddbuttons4 = 'theme_advanced_buttons4 : "'.$spellcheck.$search_replace.$inserttable.$lefttoright.$righttoleft.$popupeditor.$cleanup.'",';
|
||||
|
||||
/*
|
||||
*
|
||||
* ********************************************************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$temp = $_SERVER["REQUEST_URI"];
|
||||
$temp = explode('/', $temp);
|
||||
$root = $temp[1];
|
||||
|
||||
$configuration = <<<EOF
|
||||
|
||||
function createHTMLArea(id) {
|
||||
|
||||
random = Math.ceil(1000*Math.random());
|
||||
editor = 'editor'+random;
|
||||
editorsubmit = 'editorsubmit'+random;
|
||||
|
||||
tinyMCE.init({
|
||||
mode : "exact",
|
||||
elements : id,
|
||||
theme : "advanced",
|
||||
|
||||
plugins : "safari,spellchecker,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,pagebreak,",
|
||||
spellchecker_languages : "+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",
|
||||
|
||||
plugin_insertdate_dateFormat : "%Y-%m-%d",
|
||||
plugin_insertdate_timeFormat : "%H:%M:%S",
|
||||
|
||||
content_css : "/$root/lib/editor/tinymce/examples/css/content.css",
|
||||
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "top",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
|
||||
theme_advanced_resize_horizontal : true,
|
||||
theme_advanced_resizing : true,
|
||||
apply_source_formatting : true,
|
||||
|
||||
$editorhidebuttons
|
||||
$editoraddbuttons3
|
||||
$editoraddbuttons4
|
||||
|
||||
});
|
||||
|
||||
script = "document.getElementById("+id+").form."+editorsubmit+" = document.getElementById("+id+").form.onsubmit;";
|
||||
script = script + "document.getElementById("+id+").form.onsubmit = function() { tinyMCE.triggerSave(); document.getElementById("+id+").form."+editorsubmit+"(); document.getElementById("+id+").form."+editorsubmit+" = null;}";
|
||||
eval(script);
|
||||
|
||||
}
|
||||
|
||||
EOF;
|
||||
|
||||
echo <<<EOF
|
||||
tinyMCE.init({
|
||||
mode: "textareas",
|
||||
relative_urls: false,
|
||||
editor_selector: "form-textarea-simple",
|
||||
document_base_url: "$CFG->httpswwwroot",
|
||||
theme: "simple",
|
||||
skin: "o2k7",
|
||||
apply_source_formatting: true,
|
||||
remove_script_host: false,
|
||||
entity_encoding: "raw",
|
||||
language: "en",
|
||||
plugins: "spellchecker,emoticons,paste,standardmenu,directionality"
|
||||
});
|
||||
tinyMCE.init({
|
||||
mode: "textareas",
|
||||
relative_urls: false,
|
||||
editor_selector: "form-textarea-advanced",
|
||||
document_base_url: "$CFG->httpswwwroot",
|
||||
theme: "advanced",
|
||||
skin: "o2k7",
|
||||
apply_source_formatting: true,
|
||||
remove_script_host: false,
|
||||
entity_encoding: "raw",
|
||||
language: "en",
|
||||
plugins: "safari,spellchecker,table,style,layer,advhr,advimage,advlink,emoticons,inlinepopups,media,searchreplace,paste,standardmenu,directionality,fullscreen,moodleimage,moodlelink,dragmath,nonbreaking",
|
||||
theme_advanced_layout_manager: "SimpleLayout",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_buttons1: "fontselect,fontsizeselect,formatselect,",
|
||||
theme_advanced_buttons1_add: "styleselect,selectall,pastetext,pasteword,cleanup",
|
||||
theme_advanced_buttons2: "bold,italic,underline,strikethrough,sub,sup,|,justifyleft,justifycenter,justifyright,justifyfull,|,undo,redo,removeformat,code",
|
||||
theme_advanced_buttons2_add: "styleprops,ltr,rtl,nonbreaking,charmap",
|
||||
theme_advanced_buttons3: "media,advhr,emoticons,dragmath,spellchecker,search,code,fullscreen,bullist,numlist,outdent,indent,forecolor,backcolor,link,unlink,anchor,image,charmap,insertlayer,table",
|
||||
theme_advanced_buttons3_add: "media,emoticons,charmap,dragmath,search,code,fullscreen",
|
||||
theme_advanced_fonts: "Trebuchet=Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;Wingdings=wingdings",
|
||||
moodleimage_course_id: $COURSE->id,
|
||||
theme_advanced_resize_horizontal: true,
|
||||
theme_advanced_resizing: true,
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
file_browser_callback : "moodlefilemanager",
|
||||
|
||||
EOF;
|
||||
// the xhtml ruleset must be the last one - no comma at the end of the file
|
||||
readfile('tinymce/xhtml_ruleset.txt');
|
||||
echo <<<EOF
|
||||
});
|
||||
function toggleEditor(id) {
|
||||
var elm = document.getElementById(id);
|
||||
if (tinyMCE.getInstanceById(id) == null)
|
||||
tinyMCE.execCommand('mceAddControl', false, id);
|
||||
else
|
||||
tinyMCE.execCommand('mceRemoveControl', false, id);
|
||||
}
|
||||
function moodlefilemanager(field_name, url, type, win) {
|
||||
tinyMCE.activeEditor.windowManager.open({
|
||||
file: "{$CFG->httpswwwroot}/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/link.php?id={$COURSE->id}",
|
||||
width: 480,
|
||||
height: 380,
|
||||
resizable: "yes",
|
||||
inline: "yes",
|
||||
close_previous: "no"
|
||||
}, {
|
||||
window: win,
|
||||
input: field_name
|
||||
});
|
||||
return false;
|
||||
}
|
||||
EOF;
|
||||
?>
|
||||
|
||||
+183
-183
@@ -1,183 +1,183 @@
|
||||
<?php
|
||||
function print_editor_config($editorhidebuttons='', $return=false) {
|
||||
global $CFG;
|
||||
|
||||
$str = "config.pageStyle = \"body {";
|
||||
|
||||
if (!(empty($CFG->editorbackgroundcolor))) {
|
||||
$str .= " background-color: $CFG->editorbackgroundcolor;";
|
||||
}
|
||||
|
||||
if (!(empty($CFG->editorfontfamily))) {
|
||||
$str .= " font-family: $CFG->editorfontfamily;";
|
||||
}
|
||||
|
||||
if (!(empty($CFG->editorfontsize))) {
|
||||
$str .= " font-size: $CFG->editorfontsize;";
|
||||
}
|
||||
|
||||
$str .= " }\";\n";
|
||||
$str .= "config.killWordOnPaste = ";
|
||||
$str .= (empty($CFG->editorkillword)) ? "false":"true";
|
||||
$str .= ';'."\n";
|
||||
$str .= 'config.fontname = {'."\n";
|
||||
|
||||
$fontlist = isset($CFG->editorfontlist) ? explode(';', $CFG->editorfontlist) : array();
|
||||
$i = 1; // Counter is used to get rid of the last comma.
|
||||
|
||||
foreach ($fontlist as $fontline) {
|
||||
if (!empty($fontline)) {
|
||||
if ($i > 1) {
|
||||
$str .= ','."\n";
|
||||
}
|
||||
list($fontkey, $fontvalue) = split(':', $fontline);
|
||||
$str .= '"'. $fontkey ."\":\t'". $fontvalue ."'";
|
||||
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
$str .= '};';
|
||||
|
||||
if (!empty($editorhidebuttons)) {
|
||||
$str .= "\nconfig.hideSomeButtons(\" ". $editorhidebuttons ." \");\n";
|
||||
} else if (!empty($CFG->editorhidebuttons)) {
|
||||
$str .= "\nconfig.hideSomeButtons(\" ". $CFG->editorhidebuttons ." \");\n";
|
||||
}
|
||||
|
||||
if (!empty($CFG->editorspelling) && !empty($CFG->aspellpath)) {
|
||||
$str .= print_speller_code($CFG->htmleditor, true);
|
||||
}
|
||||
|
||||
if ($return) {
|
||||
return $str;
|
||||
}
|
||||
echo $str;
|
||||
}
|
||||
|
||||
function use_html_editor($name='', $editorhidebuttons='', $id='') {
|
||||
}
|
||||
|
||||
function use_admin_editor($name='', $editorhidebuttons='', $id='') {
|
||||
echo '<script type="text/javascript">tsetup();</script>';
|
||||
}
|
||||
|
||||
function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $value='', $courseid=0, $return=false, $id='') {
|
||||
global $CFG, $COURSE, $HTTPSPAGEREQUIRED;
|
||||
$str = '';
|
||||
if ($id === '') {
|
||||
$id = 'edit-'.$name;
|
||||
}
|
||||
if (empty($courseid)) {
|
||||
$courseid = $COURSE->id;
|
||||
}
|
||||
if ($usehtmleditor) {
|
||||
$str .= '<textarea class="form-textarea" id="'. $id .'" name="'. $name .'" rows="'. $rows .'" cols="'. $cols .'">';
|
||||
$str .= htmlspecialchars($value);
|
||||
$str .= '</textarea><br />'."\n";
|
||||
$toggle_ed = '<img width="50" height="17" src="'.$CFG->wwwroot.'/lib/editor/tinymce/images/toggle.gif" '.
|
||||
'alt="'.get_string('toggleeditor','editor').'" title="'.get_string('toggleeditor','editor').'" />';
|
||||
$str .= "<a href=\"javascript:toggleEditor('".$id."');\">".$toggle_ed."</a> ";
|
||||
$str .= '<script type="text/javascript">'."\n".
|
||||
'document.write(\''.addslashes_js(editorshortcutshelpbutton()).'\');'."\n".
|
||||
'</script>';
|
||||
} else {
|
||||
$str .= '<textarea class="alltext" id="'. $id .'" name="'. $name .'" rows="'. $rows .'" cols="'. $cols .'">';
|
||||
$str .= s($value);
|
||||
$str .= '</textarea>'."\n";
|
||||
}
|
||||
if ($return) {
|
||||
return $str;
|
||||
}
|
||||
echo $str;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo $CFG->httpswwwroot ?>/lib/editor/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
||||
<script type="text/javascript">
|
||||
function tsetup() {
|
||||
<?php
|
||||
if (!empty($COURSE->id) and has_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $COURSE->id))) {
|
||||
?>
|
||||
tinyMCE.init({
|
||||
relative_urls : false,
|
||||
remove_script_host : false,
|
||||
document_base_url : "<?php echo $CFG->wwwroot; ?>",
|
||||
editor_selector : "form-textarea",
|
||||
mode : "textareas",
|
||||
theme : "standard",
|
||||
<?php
|
||||
if (!empty($USER->id)) {
|
||||
if ($CFG->usehtmleditor == 'tinymce') {
|
||||
echo 'skin : "o2k7",';
|
||||
} else {
|
||||
echo 'skin : "default",';
|
||||
}
|
||||
}
|
||||
?>
|
||||
entity_encoding : "raw",
|
||||
plugins : "safari,emoticons,searchreplace,fullscreen,advimage,advlink,moodleimage,moodlelink",
|
||||
|
||||
theme_standard_buttons1 : "fontselect,fontsizeselect,formatselect",
|
||||
theme_standard_buttons2 : "bold,italic,underline,forecolor,backcolor,link,unlink,image,emoticons,charmap,code,fullscreen",
|
||||
theme_standard_buttons3 : "",
|
||||
theme_standard_toolbar_location : "top",
|
||||
theme_standard_toolbar_align : "left",
|
||||
theme_standard_statusbar_location : "bottom",
|
||||
moodleimage_course_id: <?php echo $COURSE->id; ?>,
|
||||
theme_standard_resize_horizontal : true,
|
||||
theme_standard_resizing : true,
|
||||
file_browser_callback : "moodlefilemanager",
|
||||
apply_source_formatting : true
|
||||
|
||||
});
|
||||
function moodlefilemanager(field_name, url, type, win) {
|
||||
|
||||
tinyMCE.activeEditor.windowManager.open({
|
||||
file : "<?php echo $CFG->httpswwwroot ?>/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/link.php?id=<?php echo $COURSE->id; ?>",
|
||||
width : 480,
|
||||
height : 380,
|
||||
resizable : "yes",
|
||||
inline : "yes",
|
||||
close_previous : "no"
|
||||
}, {
|
||||
window : win,
|
||||
input : field_name
|
||||
});
|
||||
return false;
|
||||
}
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
tinyMCE.init({
|
||||
relative_urls : false,
|
||||
remove_script_host : false,
|
||||
document_base_url : "<?php echo $CFG->httpswwwroot; ?>",
|
||||
editor_selector : "form-textarea",
|
||||
mode : "textareas",
|
||||
entity_encoding : "raw",
|
||||
theme : "standard",
|
||||
plugins : "safari,emoticons,searchreplace,fullscreen,advimage,advlink",
|
||||
theme_standard_buttons1 : "fontselect,fontsizeselect,formatselect",
|
||||
theme_standard_buttons2 : "bold,italic,underline,forecolor,backcolor,link,unlink,image,emoticons,charmap,code,fullscreen",
|
||||
theme_standard_buttons3 : "",
|
||||
theme_standard_toolbar_location : "top",
|
||||
theme_standard_toolbar_align : "left",
|
||||
theme_standard_statusbar_location : "bottom",
|
||||
moodleimage_course_id: <?php echo $COURSE->id; ?>,
|
||||
theme_standard_resize_horizontal : true,
|
||||
theme_standard_resizing : true,
|
||||
apply_source_formatting : true
|
||||
});
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
} /* end of tsetup() */
|
||||
function toggleEditor(id) {
|
||||
var elm = document.getElementById(id);
|
||||
|
||||
if (tinyMCE.getInstanceById(id) == null)
|
||||
tinyMCE.execCommand('mceAddControl', false, id);
|
||||
else
|
||||
tinyMCE.execCommand('mceRemoveControl', false, id);
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
function print_editor_config($editorhidebuttons='', $return=false) {
|
||||
global $CFG;
|
||||
|
||||
$str = "config.pageStyle = \"body {";
|
||||
|
||||
if (!(empty($CFG->editorbackgroundcolor))) {
|
||||
$str .= " background-color: $CFG->editorbackgroundcolor;";
|
||||
}
|
||||
|
||||
if (!(empty($CFG->editorfontfamily))) {
|
||||
$str .= " font-family: $CFG->editorfontfamily;";
|
||||
}
|
||||
|
||||
if (!(empty($CFG->editorfontsize))) {
|
||||
$str .= " font-size: $CFG->editorfontsize;";
|
||||
}
|
||||
|
||||
$str .= " }\";\n";
|
||||
$str .= "config.killWordOnPaste = ";
|
||||
$str .= (empty($CFG->editorkillword)) ? "false":"true";
|
||||
$str .= ';'."\n";
|
||||
$str .= 'config.fontname = {'."\n";
|
||||
|
||||
$fontlist = isset($CFG->editorfontlist) ? explode(';', $CFG->editorfontlist) : array();
|
||||
$i = 1; // Counter is used to get rid of the last comma.
|
||||
|
||||
foreach ($fontlist as $fontline) {
|
||||
if (!empty($fontline)) {
|
||||
if ($i > 1) {
|
||||
$str .= ','."\n";
|
||||
}
|
||||
list($fontkey, $fontvalue) = split(':', $fontline);
|
||||
$str .= '"'. $fontkey ."\":\t'". $fontvalue ."'";
|
||||
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
$str .= '};';
|
||||
|
||||
if (!empty($editorhidebuttons)) {
|
||||
$str .= "\nconfig.hideSomeButtons(\" ". $editorhidebuttons ." \");\n";
|
||||
} else if (!empty($CFG->editorhidebuttons)) {
|
||||
$str .= "\nconfig.hideSomeButtons(\" ". $CFG->editorhidebuttons ." \");\n";
|
||||
}
|
||||
|
||||
if (!empty($CFG->editorspelling) && !empty($CFG->aspellpath)) {
|
||||
$str .= print_speller_code($CFG->htmleditor, true);
|
||||
}
|
||||
|
||||
if ($return) {
|
||||
return $str;
|
||||
}
|
||||
echo $str;
|
||||
}
|
||||
|
||||
function use_html_editor($name='', $editorhidebuttons='', $id='') {
|
||||
}
|
||||
|
||||
function use_admin_editor($name='', $editorhidebuttons='', $id='') {
|
||||
echo '<script type="text/javascript">tsetup();</script>';
|
||||
}
|
||||
|
||||
function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $value='', $courseid=0, $return=false, $id='') {
|
||||
global $CFG, $COURSE, $HTTPSPAGEREQUIRED;
|
||||
$str = '';
|
||||
if ($id === '') {
|
||||
$id = 'edit-'.$name;
|
||||
}
|
||||
if (empty($courseid)) {
|
||||
$courseid = $COURSE->id;
|
||||
}
|
||||
if ($usehtmleditor) {
|
||||
$str .= '<textarea class="form-textarea" id="'. $id .'" name="'. $name .'" rows="'. $rows .'" cols="'. $cols .'">';
|
||||
$str .= htmlspecialchars($value);
|
||||
$str .= '</textarea><br />'."\n";
|
||||
$toggle_ed = '<img width="50" height="17" src="'.$CFG->wwwroot.'/lib/editor/tinymce/images/toggle.gif" '.
|
||||
'alt="'.get_string('toggleeditor','editor').'" title="'.get_string('toggleeditor','editor').'" />';
|
||||
$str .= "<a href=\"javascript:toggleEditor('".$id."');\">".$toggle_ed."</a> ";
|
||||
$str .= '<script type="text/javascript">'."\n".
|
||||
'document.write(\''.addslashes_js(editorshortcutshelpbutton()).'\');'."\n".
|
||||
'</script>';
|
||||
} else {
|
||||
$str .= '<textarea class="alltext" id="'. $id .'" name="'. $name .'" rows="'. $rows .'" cols="'. $cols .'">';
|
||||
$str .= s($value);
|
||||
$str .= '</textarea>'."\n";
|
||||
}
|
||||
if ($return) {
|
||||
return $str;
|
||||
}
|
||||
echo $str;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo $CFG->httpswwwroot ?>/lib/editor/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
||||
<script type="text/javascript">
|
||||
function tsetup() {
|
||||
<?php
|
||||
if (!empty($COURSE->id) and has_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $COURSE->id))) {
|
||||
?>
|
||||
tinyMCE.init({
|
||||
relative_urls : false,
|
||||
remove_script_host : false,
|
||||
document_base_url : "<?php echo $CFG->wwwroot; ?>",
|
||||
editor_selector : "form-textarea",
|
||||
mode : "textareas",
|
||||
theme : "standard",
|
||||
<?php
|
||||
if (!empty($USER->id)) {
|
||||
if ($CFG->usehtmleditor == 'tinymce') {
|
||||
echo 'skin : "o2k7",';
|
||||
} else {
|
||||
echo 'skin : "default",';
|
||||
}
|
||||
}
|
||||
?>
|
||||
entity_encoding : "raw",
|
||||
plugins : "safari,emoticons,searchreplace,fullscreen,advimage,advlink,moodleimage,moodlelink",
|
||||
|
||||
theme_standard_buttons1 : "fontselect,fontsizeselect,formatselect",
|
||||
theme_standard_buttons2 : "bold,italic,underline,forecolor,backcolor,link,unlink,image,emoticons,charmap,code,fullscreen",
|
||||
theme_standard_buttons3 : "",
|
||||
theme_standard_toolbar_location : "top",
|
||||
theme_standard_toolbar_align : "left",
|
||||
theme_standard_statusbar_location : "bottom",
|
||||
moodleimage_course_id: <?php echo $COURSE->id; ?>,
|
||||
theme_standard_resize_horizontal : true,
|
||||
theme_standard_resizing : true,
|
||||
file_browser_callback : "moodlefilemanager",
|
||||
apply_source_formatting : true
|
||||
|
||||
});
|
||||
function moodlefilemanager(field_name, url, type, win) {
|
||||
|
||||
tinyMCE.activeEditor.windowManager.open({
|
||||
file : "<?php echo $CFG->httpswwwroot ?>/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/link.php?id=<?php echo $COURSE->id; ?>",
|
||||
width : 480,
|
||||
height : 380,
|
||||
resizable : "yes",
|
||||
inline : "yes",
|
||||
close_previous : "no"
|
||||
}, {
|
||||
window : win,
|
||||
input : field_name
|
||||
});
|
||||
return false;
|
||||
}
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
tinyMCE.init({
|
||||
relative_urls : false,
|
||||
remove_script_host : false,
|
||||
document_base_url : "<?php echo $CFG->httpswwwroot; ?>",
|
||||
editor_selector : "form-textarea",
|
||||
mode : "textareas",
|
||||
entity_encoding : "raw",
|
||||
theme : "standard",
|
||||
plugins : "safari,emoticons,searchreplace,fullscreen,advimage,advlink",
|
||||
theme_standard_buttons1 : "fontselect,fontsizeselect,formatselect",
|
||||
theme_standard_buttons2 : "bold,italic,underline,forecolor,backcolor,link,unlink,image,emoticons,charmap,code,fullscreen",
|
||||
theme_standard_buttons3 : "",
|
||||
theme_standard_toolbar_location : "top",
|
||||
theme_standard_toolbar_align : "left",
|
||||
theme_standard_statusbar_location : "bottom",
|
||||
moodleimage_course_id: <?php echo $COURSE->id; ?>,
|
||||
theme_standard_resize_horizontal : true,
|
||||
theme_standard_resizing : true,
|
||||
apply_source_formatting : true
|
||||
});
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
} /* end of tsetup() */
|
||||
function toggleEditor(id) {
|
||||
var elm = document.getElementById(id);
|
||||
|
||||
if (tinyMCE.getInstanceById(id) == null)
|
||||
tinyMCE.execCommand('mceAddControl', false, id);
|
||||
else
|
||||
tinyMCE.execCommand('mceRemoveControl', false, id);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,70 +1,70 @@
|
||||
<script type="text/javascript">
|
||||
tinyMCE.init({
|
||||
relative_urls : false,
|
||||
remove_script_host : false,
|
||||
document_base_url : "<?php echo $CFG->wwwroot; ?>",
|
||||
editor_selector : "form-textarea",
|
||||
mode : "textareas",
|
||||
theme : "standard",
|
||||
<?php
|
||||
if (!empty($USER->id)) {
|
||||
if ($CFG->defaulthtmleditor == 'tinymce') {
|
||||
echo 'skin : "o2k7",';
|
||||
} else {
|
||||
echo 'skin : "default",';
|
||||
}
|
||||
}
|
||||
?>
|
||||
entity_encoding : "raw",
|
||||
theme_standard_statusbar_location : "bottom",
|
||||
language : "<?php echo str_replace("_utf8", "", current_language()) ?>",
|
||||
<?php
|
||||
include_once('langlist.php');
|
||||
echo "\n";
|
||||
include_once('xhtml_ruleset.txt');
|
||||
?>
|
||||
plugins : "safari,spellchecker,table,style,layer,advhr,advimage,advlink,emotions,emoticons,inlinepopups,media,searchreplace,paste,standardmenu,directionality,fullscreen,moodleimage,moodlelink,dragmath,nonbreaking",
|
||||
theme_standard_buttons1_add : "styleselect,selectall,pastetext,pasteword,insertlayer",
|
||||
theme_standard_buttons2_add : "styleprops,ltr,rtl,table,nonbreaking,media,advhr,emotions,emoticons,charmap,dragmath,spellchecker,search,code,fullscreen",
|
||||
<?php
|
||||
$hiddenbuttons = $CFG->editorhidebuttons;
|
||||
if (!empty($hiddenbuttons)) {
|
||||
$hiddenbuttons = str_replace(" ", ",", $hiddenbuttons);
|
||||
echo 'theme_standard_disable : "'. $hiddenbuttons .'",';
|
||||
}
|
||||
$tinyfts = $CFG->editorfontlist;
|
||||
if ($tinyfts) {
|
||||
$tinyfts = str_replace(":", "=", $tinyfts);
|
||||
echo 'theme_standard_fonts : "'. $tinyfts .'",';
|
||||
}
|
||||
?>
|
||||
spellchecker_languages : "+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",
|
||||
moodleimage_course_id: <?php echo $COURSE->id; ?>,
|
||||
theme_standard_resize_horizontal : true,
|
||||
theme_standard_resizing : true,
|
||||
file_browser_callback : "moodlefilemanager",
|
||||
apply_source_formatting : true
|
||||
});
|
||||
function moodlefilemanager(field_name, url, type, win) {
|
||||
|
||||
tinyMCE.activeEditor.windowManager.open({
|
||||
file : "<?php echo $CFG->wwwroot ?>/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/link.php?id=<?php echo $COURSE->id; ?>",
|
||||
width : 480,
|
||||
height : 380,
|
||||
resizable : "yes",
|
||||
inline : "yes",
|
||||
close_previous : "no"
|
||||
}, {
|
||||
window : win,
|
||||
input : field_name
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function toggleEditor(id) {
|
||||
var elm = document.getElementById(id);
|
||||
if (tinyMCE.getInstanceById(id) == null)
|
||||
tinyMCE.execCommand('mceAddControl', false, id);
|
||||
else
|
||||
tinyMCE.execCommand('mceRemoveControl', false, id);
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
tinyMCE.init({
|
||||
relative_urls : false,
|
||||
remove_script_host : false,
|
||||
document_base_url : "<?php echo $CFG->wwwroot; ?>",
|
||||
editor_selector : "form-textarea",
|
||||
mode : "textareas",
|
||||
theme : "standard",
|
||||
<?php
|
||||
if (!empty($USER->id)) {
|
||||
if ($CFG->defaulthtmleditor == 'tinymce') {
|
||||
echo 'skin : "o2k7",';
|
||||
} else {
|
||||
echo 'skin : "default",';
|
||||
}
|
||||
}
|
||||
?>
|
||||
entity_encoding : "raw",
|
||||
theme_standard_statusbar_location : "bottom",
|
||||
language : "<?php echo str_replace("_utf8", "", current_language()) ?>",
|
||||
<?php
|
||||
include_once('langlist.php');
|
||||
echo "\n";
|
||||
include_once('xhtml_ruleset.txt');
|
||||
?>
|
||||
plugins : "safari,spellchecker,table,style,layer,advhr,advimage,advlink,emotions,emoticons,inlinepopups,media,searchreplace,paste,standardmenu,directionality,fullscreen,moodleimage,moodlelink,dragmath,nonbreaking",
|
||||
theme_standard_buttons1_add : "styleselect,selectall,pastetext,pasteword,insertlayer",
|
||||
theme_standard_buttons2_add : "styleprops,ltr,rtl,table,nonbreaking,media,advhr,emotions,emoticons,charmap,dragmath,spellchecker,search,code,fullscreen",
|
||||
<?php
|
||||
$hiddenbuttons = $CFG->editorhidebuttons;
|
||||
if (!empty($hiddenbuttons)) {
|
||||
$hiddenbuttons = str_replace(" ", ",", $hiddenbuttons);
|
||||
echo 'theme_standard_disable : "'. $hiddenbuttons .'",';
|
||||
}
|
||||
$tinyfts = $CFG->editorfontlist;
|
||||
if ($tinyfts) {
|
||||
$tinyfts = str_replace(":", "=", $tinyfts);
|
||||
echo 'theme_standard_fonts : "'. $tinyfts .'",';
|
||||
}
|
||||
?>
|
||||
spellchecker_languages : "+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",
|
||||
moodleimage_course_id: <?php echo $COURSE->id; ?>,
|
||||
theme_standard_resize_horizontal : true,
|
||||
theme_standard_resizing : true,
|
||||
file_browser_callback : "moodlefilemanager",
|
||||
apply_source_formatting : true
|
||||
});
|
||||
function moodlefilemanager(field_name, url, type, win) {
|
||||
|
||||
tinyMCE.activeEditor.windowManager.open({
|
||||
file : "<?php echo $CFG->wwwroot ?>/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodlelink/link.php?id=<?php echo $COURSE->id; ?>",
|
||||
width : 480,
|
||||
height : 380,
|
||||
resizable : "yes",
|
||||
inline : "yes",
|
||||
close_previous : "no"
|
||||
}, {
|
||||
window : win,
|
||||
input : field_name
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function toggleEditor(id) {
|
||||
var elm = document.getElementById(id);
|
||||
if (tinyMCE.getInstanceById(id) == null)
|
||||
tinyMCE.execCommand('mceAddControl', false, id);
|
||||
else
|
||||
tinyMCE.execCommand('mceRemoveControl', false, id);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,53 +1,53 @@
|
||||
<script type="text/javascript">
|
||||
tinyMCE.init({
|
||||
relative_urls : false,
|
||||
remove_script_host : false,
|
||||
document_base_url : "<?php echo $CFG->httpswwwroot; ?>",
|
||||
editor_selector : "form-textarea",
|
||||
mode : "textareas",
|
||||
theme : "standard",
|
||||
<?php
|
||||
if (!empty($USER->id)) {
|
||||
if ($CFG->defaulthtmleditor == 'tinymce') {
|
||||
echo 'skin : "o2k7",';
|
||||
} else {
|
||||
echo 'skin : "default",';
|
||||
}
|
||||
}
|
||||
?>
|
||||
entity_encoding : "raw",
|
||||
theme_standard_statusbar_location : "bottom",
|
||||
language : "<?php echo str_replace("_utf8", "", current_language()) ?>",
|
||||
<?php
|
||||
include_once('langlist.php');
|
||||
echo "\n";
|
||||
include_once('xhtml_ruleset.txt');
|
||||
?>
|
||||
plugins : "safari,spellchecker,table,style,advhr,advimage,advlink,emotions,emoticons,inlinepopups,searchreplace,standardmenu,paste,directionality,fullscreen,dragmath,nonbreaking",
|
||||
theme_standard_buttons1_add : "styleselect,pastetext,pasteword,selectall",
|
||||
theme_standard_buttons2_add : "ltr,rtl,table,nonbreaking,advhr,emotions,emoticons,charmap,dragmath,search,code,fullscreen",
|
||||
<?php
|
||||
$hidbut = $CFG->editorhidebuttons;
|
||||
if ($hidbut) {
|
||||
$hidbut = str_replace(" ",",",$hidbut);
|
||||
echo 'theme_standard_disable : "'.$hidbut.'",';
|
||||
}
|
||||
$tinyfts = $CFG->editorfontlist;
|
||||
if ($tinyfts) {
|
||||
$tinyfts = str_replace(":","=",$tinyfts);
|
||||
echo 'theme_standard_fonts : "'.$tinyfts.'",';
|
||||
}
|
||||
?>
|
||||
moodleimage_course_id: <?php echo $COURSE->id; ?>,
|
||||
theme_standard_resize_horizontal : true,
|
||||
theme_standard_resizing : true,
|
||||
apply_source_formatting : true
|
||||
});
|
||||
function toggleEditor(id) {
|
||||
var elm = document.getElementById(id);
|
||||
if (tinyMCE.getInstanceById(id) == null)
|
||||
tinyMCE.execCommand('mceAddControl', false, id);
|
||||
else
|
||||
tinyMCE.execCommand('mceRemoveControl', false, id);
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
tinyMCE.init({
|
||||
relative_urls : false,
|
||||
remove_script_host : false,
|
||||
document_base_url : "<?php echo $CFG->httpswwwroot; ?>",
|
||||
editor_selector : "form-textarea",
|
||||
mode : "textareas",
|
||||
theme : "standard",
|
||||
<?php
|
||||
if (!empty($USER->id)) {
|
||||
if ($CFG->defaulthtmleditor == 'tinymce') {
|
||||
echo 'skin : "o2k7",';
|
||||
} else {
|
||||
echo 'skin : "default",';
|
||||
}
|
||||
}
|
||||
?>
|
||||
entity_encoding : "raw",
|
||||
theme_standard_statusbar_location : "bottom",
|
||||
language : "<?php echo str_replace("_utf8", "", current_language()) ?>",
|
||||
<?php
|
||||
include_once('langlist.php');
|
||||
echo "\n";
|
||||
include_once('xhtml_ruleset.txt');
|
||||
?>
|
||||
plugins : "safari,spellchecker,table,style,advhr,advimage,advlink,emotions,emoticons,inlinepopups,searchreplace,standardmenu,paste,directionality,fullscreen,dragmath,nonbreaking",
|
||||
theme_standard_buttons1_add : "styleselect,pastetext,pasteword,selectall",
|
||||
theme_standard_buttons2_add : "ltr,rtl,table,nonbreaking,advhr,emotions,emoticons,charmap,dragmath,search,code,fullscreen",
|
||||
<?php
|
||||
$hidbut = $CFG->editorhidebuttons;
|
||||
if ($hidbut) {
|
||||
$hidbut = str_replace(" ",",",$hidbut);
|
||||
echo 'theme_standard_disable : "'.$hidbut.'",';
|
||||
}
|
||||
$tinyfts = $CFG->editorfontlist;
|
||||
if ($tinyfts) {
|
||||
$tinyfts = str_replace(":","=",$tinyfts);
|
||||
echo 'theme_standard_fonts : "'.$tinyfts.'",';
|
||||
}
|
||||
?>
|
||||
moodleimage_course_id: <?php echo $COURSE->id; ?>,
|
||||
theme_standard_resize_horizontal : true,
|
||||
theme_standard_resizing : true,
|
||||
apply_source_formatting : true
|
||||
});
|
||||
function toggleEditor(id) {
|
||||
var elm = document.getElementById(id);
|
||||
if (tinyMCE.getInstanceById(id) == null)
|
||||
tinyMCE.execCommand('mceAddControl', false, id);
|
||||
else
|
||||
tinyMCE.execCommand('mceRemoveControl', false, id);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,90 +1,90 @@
|
||||
valid_elements : ""
|
||||
+"a[accesskey|charset|class|coords|dir<ltr?rtl|href|hreflang|id|lang|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev|shape<circle?default?poly?rect|style|tabindex|title|target|type],"
|
||||
+"abbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"acronym[class|dir<ltr?rtl|id|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"address[class|align|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"applet[align<bottom?left?middle?right?top|alt|archive|class|code|codebase|height|hspace|id|name|object|style|title|vspace|width],"
|
||||
+"area[accesskey|alt|class|coords|dir<ltr?rtl|href|id|lang|nohref<nohref|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|shape<circle?default?poly?rect|style|tabindex|title|target],"
|
||||
+"base[href|target],"
|
||||
+"basefont[color|face|id|size],"
|
||||
+"bdo[class|dir<ltr?rtl|id|lang|style|title],"
|
||||
+"big[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"blockquote[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"body[alink|background|bgcolor|class|dir<ltr?rtl|id|lang|link|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onunload|style|title|text|vlink],"
|
||||
+"br[class|clear<all?left?none?right|id|style|title],"
|
||||
+"button[accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|tabindex|title|type|value],"
|
||||
+"caption[align<bottom?left?right?top|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"center[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"cite[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"code[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"col[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title|valign<baseline?bottom?middle?top|width],"
|
||||
+"colgroup[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title|valign<baseline?bottom?middle?top|width],"
|
||||
+"dd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"del[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"dfn[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"dir[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"div[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"dl[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"dt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"em/i[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"fieldset[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"font[class|color|dir<ltr?rtl|face|id|lang|size|style|title],"
|
||||
+"form[accept|accept-charset|action|class|dir<ltr?rtl|enctype|id|lang|method<get?post|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onreset|onsubmit|style|title|target],"
|
||||
+"frame[class|frameborder|id|longdesc|marginheight|marginwidth|name|noresize<noresize|scrolling<auto?no?yes|src|style|title],"
|
||||
+"frameset[class|cols|id|onload|onunload|rows|style|title],"
|
||||
+"h1[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"h2[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"h3[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"h4[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"h5[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"h6[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"head[dir<ltr?rtl|lang|profile],"
|
||||
+"hr[align<center?left?right|class|dir<ltr?rtl|id|lang|noshade<noshade|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style|title|width],"
|
||||
+"html[dir<ltr?rtl|lang|version],"
|
||||
+"iframe[align<bottom?left?middle?right?top|class|frameborder|height|id|longdesc|marginheight|marginwidth|name|scrolling<auto?no?yes|src|style|title|width],"
|
||||
+"img[align<bottom?left?middle?right?top|alt|border|class|dir<ltr?rtl|height|hspace|id|ismap<ismap|lang|longdesc|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|src|style|title|usemap|vspace|width],"
|
||||
+"input[accept|accesskey|align<bottom?left?middle?right?top|alt|checked<checked|class|dir<ltr?rtl|disabled<disabled|id|ismap<ismap|lang|maxlength|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect|readonly<readonly|size|src|style|tabindex|title|type<button?checkbox?file?hidden?image?password?radio?reset?submit?text|usemap|value],"
|
||||
+"ins[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"isindex[class|dir<ltr?rtl|id|lang|prompt|style|title],"
|
||||
+"kbd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"label[accesskey|class|dir<ltr?rtl|for|id|lang|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"legend[align<bottom?left?right?top|accesskey|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"li[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type|value],"
|
||||
+"link[charset|class|dir<ltr?rtl|href|hreflang|id|lang|media|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev|style|title|target|type],"
|
||||
+"map[class|dir<ltr?rtl|id|lang|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"menu[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"meta[content|dir<ltr?rtl|http-equiv|lang|name|scheme],"
|
||||
+"noframes[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"noscript[class|dir<ltr?rtl|id|lang|style|title],"
|
||||
+"object[align<bottom?left?middle?right?top|archive|border|class|classid|codebase|codetype|data|declare|dir<ltr?rtl|height|hspace|id|lang|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|standby|style|tabindex|title|type|usemap|vspace|width],"
|
||||
+"ol[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|start|style|title|type],"
|
||||
+"optgroup[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"option[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|selected<selected|style|title|value],"
|
||||
+"p[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"param[id|name|type|value|valuetype<DATA?OBJECT?REF],"
|
||||
+"pre/listing/plaintext/xmp[align|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|width],"
|
||||
+"q[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"s[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"samp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"script[charset|defer|language|src|type],"
|
||||
+"select[class|dir<ltr?rtl|disabled<disabled|id|lang|multiple<multiple|name|onblur|onchange|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style|tabindex|title],"
|
||||
+"small[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"span[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"strike[class|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"strong/b[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"style[dir<ltr?rtl|lang|media|title|type],"
|
||||
+"sub[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"sup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"table[align<center?left?right|bgcolor|border|cellpadding|cellspacing|class|dir<ltr?rtl|frame|height|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rules|style|summary|title|width],"
|
||||
+"tbody[align<center?char?justify?left?right|char|class|charoff|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],"
|
||||
+"td[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup|style|title|valign<baseline?bottom?middle?top|width],"
|
||||
+"textarea[accesskey|class|cols|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect|readonly<readonly|rows|style|tabindex|title],"
|
||||
+"tfoot[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],"
|
||||
+"th[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup|style|title|valign<baseline?bottom?middle?top|width],"
|
||||
+"thead[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],"
|
||||
+"title[dir<ltr?rtl|lang],"
|
||||
+"tr[abbr|align<center?char?justify?left?right|bgcolor|char|charoff|class|rowspan|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],"
|
||||
+"tt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"u[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"ul[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type],"
|
||||
+"var[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title]"
|
||||
valid_elements : ""
|
||||
+"a[accesskey|charset|class|coords|dir<ltr?rtl|href|hreflang|id|lang|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev|shape<circle?default?poly?rect|style|tabindex|title|target|type],"
|
||||
+"abbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"acronym[class|dir<ltr?rtl|id|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"address[class|align|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"applet[align<bottom?left?middle?right?top|alt|archive|class|code|codebase|height|hspace|id|name|object|style|title|vspace|width],"
|
||||
+"area[accesskey|alt|class|coords|dir<ltr?rtl|href|id|lang|nohref<nohref|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|shape<circle?default?poly?rect|style|tabindex|title|target],"
|
||||
+"base[href|target],"
|
||||
+"basefont[color|face|id|size],"
|
||||
+"bdo[class|dir<ltr?rtl|id|lang|style|title],"
|
||||
+"big[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"blockquote[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"body[alink|background|bgcolor|class|dir<ltr?rtl|id|lang|link|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onunload|style|title|text|vlink],"
|
||||
+"br[class|clear<all?left?none?right|id|style|title],"
|
||||
+"button[accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|tabindex|title|type|value],"
|
||||
+"caption[align<bottom?left?right?top|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"center[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"cite[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"code[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"col[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title|valign<baseline?bottom?middle?top|width],"
|
||||
+"colgroup[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title|valign<baseline?bottom?middle?top|width],"
|
||||
+"dd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"del[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"dfn[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"dir[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"div[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"dl[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"dt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"em/i[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"fieldset[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"font[class|color|dir<ltr?rtl|face|id|lang|size|style|title],"
|
||||
+"form[accept|accept-charset|action|class|dir<ltr?rtl|enctype|id|lang|method<get?post|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onreset|onsubmit|style|title|target],"
|
||||
+"frame[class|frameborder|id|longdesc|marginheight|marginwidth|name|noresize<noresize|scrolling<auto?no?yes|src|style|title],"
|
||||
+"frameset[class|cols|id|onload|onunload|rows|style|title],"
|
||||
+"h1[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"h2[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"h3[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"h4[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"h5[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"h6[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"head[dir<ltr?rtl|lang|profile],"
|
||||
+"hr[align<center?left?right|class|dir<ltr?rtl|id|lang|noshade<noshade|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style|title|width],"
|
||||
+"html[dir<ltr?rtl|lang|version],"
|
||||
+"iframe[align<bottom?left?middle?right?top|class|frameborder|height|id|longdesc|marginheight|marginwidth|name|scrolling<auto?no?yes|src|style|title|width],"
|
||||
+"img[align<bottom?left?middle?right?top|alt|border|class|dir<ltr?rtl|height|hspace|id|ismap<ismap|lang|longdesc|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|src|style|title|usemap|vspace|width],"
|
||||
+"input[accept|accesskey|align<bottom?left?middle?right?top|alt|checked<checked|class|dir<ltr?rtl|disabled<disabled|id|ismap<ismap|lang|maxlength|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect|readonly<readonly|size|src|style|tabindex|title|type<button?checkbox?file?hidden?image?password?radio?reset?submit?text|usemap|value],"
|
||||
+"ins[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"isindex[class|dir<ltr?rtl|id|lang|prompt|style|title],"
|
||||
+"kbd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"label[accesskey|class|dir<ltr?rtl|for|id|lang|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"legend[align<bottom?left?right?top|accesskey|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"li[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type|value],"
|
||||
+"link[charset|class|dir<ltr?rtl|href|hreflang|id|lang|media|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev|style|title|target|type],"
|
||||
+"map[class|dir<ltr?rtl|id|lang|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"menu[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"meta[content|dir<ltr?rtl|http-equiv|lang|name|scheme],"
|
||||
+"noframes[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"noscript[class|dir<ltr?rtl|id|lang|style|title],"
|
||||
+"object[align<bottom?left?middle?right?top|archive|border|class|classid|codebase|codetype|data|declare|dir<ltr?rtl|height|hspace|id|lang|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|standby|style|tabindex|title|type|usemap|vspace|width],"
|
||||
+"ol[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|start|style|title|type],"
|
||||
+"optgroup[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"option[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|selected<selected|style|title|value],"
|
||||
+"p[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"param[id|name|type|value|valuetype<DATA?OBJECT?REF],"
|
||||
+"pre/listing/plaintext/xmp[align|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|width],"
|
||||
+"q[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"s[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"samp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"script[charset|defer|language|src|type],"
|
||||
+"select[class|dir<ltr?rtl|disabled<disabled|id|lang|multiple<multiple|name|onblur|onchange|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style|tabindex|title],"
|
||||
+"small[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"span[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"strike[class|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"strong/b[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"style[dir<ltr?rtl|lang|media|title|type],"
|
||||
+"sub[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"sup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"table[align<center?left?right|bgcolor|border|cellpadding|cellspacing|class|dir<ltr?rtl|frame|height|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rules|style|summary|title|width],"
|
||||
+"tbody[align<center?char?justify?left?right|char|class|charoff|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],"
|
||||
+"td[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup|style|title|valign<baseline?bottom?middle?top|width],"
|
||||
+"textarea[accesskey|class|cols|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect|readonly<readonly|rows|style|tabindex|title],"
|
||||
+"tfoot[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],"
|
||||
+"th[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup|style|title|valign<baseline?bottom?middle?top|width],"
|
||||
+"thead[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],"
|
||||
+"title[dir<ltr?rtl|lang],"
|
||||
+"tr[abbr|align<center?char?justify?left?right|bgcolor|char|charoff|class|rowspan|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|valign<baseline?bottom?middle?top],"
|
||||
+"tt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"u[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
|
||||
+"ul[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type],"
|
||||
+"var[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title]"
|
||||
|
||||
Reference in New Issue
Block a user