diff --git a/copy_this/modules/hdi/hdi-tinymce/Jakefile.js b/copy_this/modules/hdi/hdi-tinymce/Jakefile.js
new file mode 100644
index 0000000..c04ebce
--- /dev/null
+++ b/copy_this/modules/hdi/hdi-tinymce/Jakefile.js
@@ -0,0 +1,226 @@
+var r = require('request');
+var c = require('cheerio');
+var fs = require('fs');
+var AdmZip = require('adm-zip')
+
+
+
+desc("full update process (default task)");
+task("default", [], function() {
+
+ var error = function(err) {
+ console.log("something went wrong!");
+ console.log("--------------------------------------------------------------------------------");
+ console.log(err);
+ console.log("--------------------------------------------------------------------------------");
+ fail('task aborted');
+ };
+
+
+ var deleteFolderRecursive = function(path) {
+ if (fs.existsSync(path)) {
+ fs.readdirSync(path).forEach(function(file, index) {
+ var curPath = path + "/" + file;
+ if (fs.lstatSync(curPath).isDirectory()) { // recurse
+ deleteFolderRecursive(curPath);
+ } else { // delete file
+ fs.unlinkSync(curPath);
+ }
+ });
+ fs.rmdirSync(path);
+ }
+ };
+
+ console.log("fetching newest tinymce version...");
+ r("http://www.tinymce.com/download/download.php", function(err, res, body) {
+
+ if (err || res.statusCode != 200) error(err);
+
+ // (re)moving old tinymce files
+ if (fs.existsSync("tinymce")) {
+ fs.renameSync("tinymce", "old_tinymce");
+ deleteFolderRecursive("old_tinymce");
+ }
+
+ var tinymceurl = c.load(body)('#twocolumns a.track-tinymce').eq(0).attr('href');
+ console.log("downloading tinymce from: " + tinymceurl);
+
+ r(tinymceurl).pipe(
+ fs.createWriteStream('tmp_tinymce.zip')
+ .on('close', function() {
+ //console.log("tinymce download finished");
+ console.log("extracting tinymce");
+ var tinymce = new AdmZip('tmp_tinymce.zip');
+ tinymce.getEntries().forEach(function(e) {
+ if (e.entryName.indexOf("tinymce/js/tinymce/") === 0) {
+ tinymce.extractEntryTo(e.entryName, e.entryName.replace("tinymce/js/tinymce", "tinymce").replace(e.name, ""), false, true);
+ }
+ });
+ fs.unlink('tmp_tinymce.zip');
+ })
+ );
+
+
+ console.log("downloading latest language files: CS, DA, DE, FR, IT, NL, RU")
+ r("http://www.tinymce.com/i18n/download.php?download[]=cs&download[]=da&download[]=de&download[]=fr_FR&download[]=it&download[]=nl&download[]=ru").pipe(
+ fs.createWriteStream('tmp_languages.zip')
+ .on('close', function() {
+ //console.log("language files download finished");
+ console.log("extracting lamguage files");
+ var languages = new AdmZip('tmp_languages.zip');
+ languages.extractAllTo("tinymce/", true);
+ fs.unlink('tmp_languages.zip');
+ })
+ );
+
+
+ // update version.jpg
+ var runner = require('child_process');
+ runner.exec('php -r \'include("metadata.php"); print $aModule["version"];\'',
+ function(err, stdout, stderr) {
+ //console.log(stdout);
+ var version = stdout.split(" ")[0];
+ /*
+ var aVersion = oldVersion.split(".");
+ var patch = aVersion.pop();
+ var newVersion = aVersion.join(".") + "." + (Math.abs(patch) + 1);
+ */
+ var url = "http://dev.marat.ws/v/?raw=1&v=" + version;
+ r(url).pipe(fs.createWriteStream('version.jpg', true));
+ }
+ );
+
+ });
+
+
+});
+//task("default", ['tinymce', 'languages', 'extract', 'cleanup', 'version'], function() {});
+
+
+desc("get latest tinymce version from website");
+task("tinymce", [], function() {
+ r("http://www.tinymce.com/download/download.php", function(err, res, body) {
+ console.log("fetching newest tinymce version...");
+
+ if (err || res.statusCode != 200) {
+ console.log("something went wrong!");
+ console.log("--------------------------------------------------------------------------------");
+ console.log(err);
+ console.log("--------------------------------------------------------------------------------");
+ }
+
+ var url = require('cheerio').load(body)('#twocolumns a.track-tinymce').eq(0).attr('href');
+ console.log("downloading from: " + url);
+ r(url).pipe(fs.createWriteStream('tmp_tinymce.zip'));
+ console.log("download finished");
+ console.log("------------------------------");
+ complete();
+ });
+});
+
+desc("download latest language files for tinymce");
+task("languages", [], function() {
+ console.log("downloading latest language files: CS, DA, DE, FR, IT, NL, RU")
+ var url = "http://www.tinymce.com/i18n/download.php?download[]=cs&download[]=da&download[]=de&download[]=fr_FR&download[]=it&download[]=nl&download[]=ru";
+ r(url).pipe(fs.createWriteStream('tmp_languages.zip'));
+ console.log("download finished");
+ console.log("------------------------------");
+ complete();
+});
+
+desc("extracting archives and updating files");
+task("extract", [], function() {
+ // lets (re)move old files first
+ if (fs.existsSync("tinymce")) {
+ fs.renameSync("tinymce", "old_tinymce");
+ }
+
+ console.log("extracting tinymce");
+ var tinymce = new AdmZip('tmp_tinymce.zip');
+ tinymce.getEntries().forEach(function(e) {
+ if (e.entryName.indexOf("tinymce/js/tinymce/") === 0) {
+ tinymce.extractEntryTo(e.entryName, "tinymce", false, true);
+ }
+ });
+
+
+ console.log("extracting extra lamguages");
+ var languages = new AdmZip('tmp_languages.zip');
+ languages.extractAllTo("tinymce/", true);
+
+ console.log("extracting finished");
+ console.log("------------------------------");
+ complete();
+});
+
+
+desc('removing temp files');
+task("cleanup", [], function() {
+
+ console.log("removing temporary files");
+
+ fs.unlink('tmp_tinymce.zip');
+ fs.unlink('tmp_languages.zip');
+
+ var deleteFolderRecursive = function(path) {
+ if (fs.existsSync(path)) {
+ fs.readdirSync(path).forEach(function(file, index) {
+ var curPath = path + "/" + file;
+ if (fs.lstatSync(curPath).isDirectory()) { // recurse
+ deleteFolderRecursive(curPath);
+ } else { // delete file
+ fs.unlinkSync(curPath);
+ }
+ });
+ fs.rmdirSync(path);
+ }
+ };
+ deleteFolderRecursive("old_tinymce");
+
+ console.log("cleanup finished");
+ console.log("------------------------------");
+ complete();
+});
+
+
+desc("updating module version");
+task("version", [], function() {
+ // update version.jpg
+ var runner = require('child_process');
+ runner.exec('php -r \'include("metadata.php"); print $aModule["version"];\'',
+ function(err, stdout, stderr) {
+ //console.log(stdout);
+ var version = stdout.split(" ")[0];
+ /*
+ var aVersion = oldVersion.split(".");
+ var patch = aVersion.pop();
+ var newVersion = aVersion.join(".") + "." + (Math.abs(patch) + 1);
+ */
+ var url = "http://dev.marat.ws/v/?raw=1&v=" + version;
+ r(url).pipe(fs.createWriteStream('version.jpg', true));
+ }
+ );
+
+});
+
+
+desc("test function");
+task("test", [], function() {
+
+ r("http://www.tinymce.com/download/download.php", function(err, res, body) {
+
+ if (err || res.statusCode != 200) error(err);
+
+
+ var url = c.load(body)('#twocolumns a.track-tinymce').eq(0).attr('href');
+ console.log("downloading tinymce from: " + url);
+
+ r(url).pipe(fs.createWriteStream('doodle.zip').on('close', function() {
+ console.log('file done');
+ }));
+ console.log("345");
+ });
+ console.log("123");
+
+
+});
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/extend/oxviewconfig_hditinymce.php b/copy_this/modules/hdi/hdi-tinymce/extend/oxviewconfig_hditinymce.php
new file mode 100644
index 0000000..db0fb6c
--- /dev/null
+++ b/copy_this/modules/hdi/hdi-tinymce/extend/oxviewconfig_hditinymce.php
@@ -0,0 +1,62 @@
+
+ */
+
+class oxviewconfig_hditinymce extends oxviewconfig_hditinymce_parent
+{
+ public function getTinyPlugins()
+ {
+ $cfg = oxRegistry::getConfig();
+
+ $aAvailablePlugins = array("advlist","anchor","autolink",/*"autoresize", // bad for oxid frameset*/
+ "autosave","bbcode","charmap","code", /* "compat3x", // we dont use old v3.x modules */
+ "contextmenu","directionality","emoticons",/*"example","example_dependency","fullpage",*/
+ "fullscreen","hr","image","insertdatetime",/*"layer", // nobody knows what exactly it does, will be removed soon */
+ "link","lists",/*"importcss",*/"media","nonbreaking","noneditable","pagebreak",
+ "paste","preview","print",/*"save", // will add custom save button. will not work in oxid*/
+ "searchreplace","spellchecker","tabfocus",
+ "table","template","textcolor","visualblocks","visualchars","wordcount");
+ if($this->getActiveClassName() == "newsletter_main") $aPlugins[] = "legacyoutput";
+
+ $aPlugins = array();
+
+ foreach($aAvailablePlugins as $plugin)
+ {
+ if($cfg->getConfigParam("bTinyMCE_".$plugin)) $aPlugins[] = $plugin;
+ }
+
+ return (count($aPlugins)) ? $aPlugins : false;
+ }
+ public function getTinyExtPlugins()
+ {
+ $aPlugins = oxRegistry::getConfig()->getConfigParam("aTinyMCE_external_plugins");
+ if(function_exists("getExtPlugins")) $aPlugins = array_merge(parent::getExtPlugins(), $aPlugins);
+ return $aPlugins;
+ }
+
+ public function getTinyExtControls()
+ {
+ $sExtControls = oxRegistry::getConfig()->getConfigParam("sTinyMCE_external_controls");
+ if(function_exists("getExtPlugins")) $sExtControls = parent::getExtControls()." ". $sExtControls;
+ return $sExtControls;
+ }
+
+ public function getTinyExtConfig()
+ {
+ $aExtConfig = oxRegistry::getConfig()->getConfigParam("aTinyMCE_external_config");
+ if(function_exists("getExtConfig")) $aExtConfig = array_merge(parent::getExtConfig(), $aExtConfig);
+ return $aExtConfig;
+ }
+}
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/extend/tinymce.php b/copy_this/modules/hdi/hdi-tinymce/extend/tinymce.php
new file mode 100644
index 0000000..321a14b
--- /dev/null
+++ b/copy_this/modules/hdi/hdi-tinymce/extend/tinymce.php
@@ -0,0 +1,69 @@
+
+ */
+class tinyMCE extends tinyMCE_parent
+{
+
+ protected function _generateTextEditor($iWidth, $iHeight, $oObject, $sField, $sStylesheet = null)
+ {
+ $myConfig = oxRegistry::getConfig();
+ $aClasses = $myConfig->getConfigParam("aTinyMCE_classes");
+ $aPlainCms = $myConfig->getConfigParam("aTinyMCE_plaincms");
+
+ if (in_array($this->getClassName(), $aClasses) && $oObject && !in_array($oObject->oxcontents__oxloadid->value, $aPlainCms))
+ {
+ $smarty = oxRegistry::get("oxUtilsView")->getSmarty();
+ $sInitialValue = '';
+ if ($oObject->$sField instanceof oxField)
+ {
+ $sInitialValue = $oObject->$sField->getRawValue();
+ }
+ else
+ {
+ $sInitialValue = $oObject->$sField->value;
+ }
+ $sLang = oxRegistry::getLang()->getLanguageAbbr(oxRegistry::getLang()->getTplLanguage());
+ // array to assign shops lang abbreviations to lang file names of tinymce: shopLangAbbreviation => fileName (without .js )
+ $aLang = array("cs" => "cs", "da" => "da", "de" => "de", "fr" => "fr_FR", "it" => "it", "nl" => "nl", "ru" => "ru");
+ $smarty->assign("sEditorLang", (in_array($sLang, $aLang) ? $aLang[$sLang] : "en"));
+
+ //$oObject->$sField = new oxField(str_replace('[{$shop->currenthomedir}]', $myConfig->getCurrentShopURL(), $sInitialValue), oxField::T_RAW);
+ $smarty->assign("sField", $sField);
+ $smarty->assign("iWidth", (strpos($iWidth, '%') === false) ? $iWidth . 'px' : $iWidth);
+ //$smarty->assign("iHeight", "80%");
+ $smarty->assign("iHeight", (strpos($iHeight, '%') === false) ? $iHeight . 'px' : $iHeight);
+ $smarty->assign("sContent", $this->_getEditValue($oObject, $sField));
+
+ //var_dump($myConfig->getModulesDir()."hdi/hdi-tinymce/test.tpl");
+ $smarty->assign("cfg", $myConfig);
+ $smarty->assign("oViewConf", $this->getViewConfig() );
+
+ return $smarty->fetch("tinymce.tpl");
+ }
+ else
+ {
+ //returning default textarea or whatever
+ $sEditor = parent::_generateTextEditor($iWidth, $iHeight, $oObject, $sField, $sStylesheet);
+ if (in_array($oObject->oxcontents__oxloadid->value, $aPlainCms))
+ {
+ $sEditor .= oxRegistry::getLang()->translateString("hdi_tinymce_plaincms");
+ }
+
+ return $sEditor;
+ }
+ }
+
+
+}
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/metadata.php b/copy_this/modules/hdi/hdi-tinymce/metadata.php
index 7a4bcfd..b86b674 100644
--- a/copy_this/modules/hdi/hdi-tinymce/metadata.php
+++ b/copy_this/modules/hdi/hdi-tinymce/metadata.php
@@ -14,24 +14,34 @@
* You should have received a copy of the GNU General Public License along with this program; if not, see
*/
+
+ $v = "https://raw.githubusercontent.com/vanilla-thunder/hdi-tinymce/master/copy_this/modules/hdi/hdi-tinymce/version.jpg";
+ $vm = "https://raw.githubusercontent.com/vanilla-thunder/hdi-tinymce/module/version.jpg";
+
$sMetadataVersion = '1.1';
$aModule = array(
'id' => 'hdi-tinymce',
- 'title' => 'HDI TinyMCE 4.0.20 ',
- 'description' => 'backend implementation of TinyMCE Editor visit http://www.tinymce.com/ for demo and more details',
+ 'title' => 'HDI TinyMCE 4.0.25 ',
+ 'description' => 'backend implementation of TinyMCE Editor visit http://www.tinymce.com/ for demo and more details'.
+ ( md5_file($v) != md5_file(dirname(__FILE__).DIRECTORY_SEPARATOR."version.jpg") ?
+ '
New Version available:
+
+ info
+ download ' : '')
+ ,
+
'thumbnail' => 'hdi.png',
- 'version' => '1.1.8 (2014-03-26) / newest version:
- info
- download ',
+ 'version' => '1.2.0 (2014-05-02)', //' ',
'author' => 'Marat Bedoev, HEINER DIRECT GmbH & Co. KG',
'email' => 'oxid@heiner-direct.com',
'url' => 'http://www.heiner-direct.com',
'extend' => array(
- 'article_main' => 'hdi/hdi-tinymce/tinymce',
- 'category_text' => 'hdi/hdi-tinymce/tinymce',
- 'content_main' => 'hdi/hdi-tinymce/tinymce',
- 'newsletter_main' => 'hdi/hdi-tinymce/tinymce',
- 'news_text' => 'hdi/hdi-tinymce/tinymce'
+ 'article_main' => 'hdi/hdi-tinymce/extend/tinymce',
+ 'category_text' => 'hdi/hdi-tinymce/extend/tinymce',
+ 'content_main' => 'hdi/hdi-tinymce/extend/tinymce',
+ 'newsletter_main' => 'hdi/hdi-tinymce/extend/tinymce',
+ 'news_text' => 'hdi/hdi-tinymce/extend/tinymce',
+ 'oxviewconfig' => 'hdi/hdi-tinymce/extend/oxviewconfig_hditinymce'
//'your_class' => 'hdi/hdi-tinymce/tinymce' // <= insert here your own class
),
'templates' => array(
@@ -61,7 +71,7 @@
/* TinyMCE Settings */
- array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_relative_urls', 'type' => 'bool', 'value' => true, 'position' => 0),
+ array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_relative_urls', 'type' => 'bool', 'value' => false, 'position' => 0),
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_browser_spellcheck', 'type' => 'bool', 'value' => true, 'position' => 1),
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_autolink', 'type' => 'bool', 'value' => true, 'position' => 1),
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_advlist', 'type' => 'bool', 'value' => true, 'position' => 2),
@@ -74,7 +84,7 @@
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_code', 'type' => 'bool', 'value' => true, 'position' => 9),
//array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_compat3x', 'type' => 'bool', 'value' => true, 'position' => 10), //bug
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_contextmenu', 'type' => 'bool', 'value' => true, 'position' => 11),
- //array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_directionality', 'type' => 'bool', 'value' => true, 'position' => 12), // rtl support
+ array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_directionality', 'type' => 'bool', 'value' => true, 'position' => 12), // rtl support
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_emoticons', 'type' => 'bool', 'value' => false, 'position' => 13),
//array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_example', 'type' => 'bool', 'value' => true, 'position' => 14), // example plugin
//array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_example_dependency', 'type' => 'bool', 'value' => true, 'position' => 15), // example plugin
@@ -82,7 +92,9 @@
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_fullscreen', 'type' => 'bool', 'value' => true, 'position' => 17),
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_hr', 'type' => 'bool', 'value' => true, 'position' => 18),
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_image', 'type' => 'bool', 'value' => true, 'position' => 19),
+
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_insertdatetime', 'type' => 'bool', 'value' => true, 'position' => 20),
+ //array('group' => 'tinyMceSettings', 'name' => 'sTinyMCE_datetimeformat', 'type' => 'select', 'value' => '0', 'constrains' => '0|1|2|3', 'position' => 3 ) // weiß noch nicht, wie ich das parsen soll...
//array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_layer', 'type' => 'bool', 'value' => true, 'position' => 21), // doenst really works, gonna be removed in the future
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_link', 'type' => 'bool', 'value' => true, 'position' => 23),
array('group' => 'tinyMceSettings', 'name' => 'bTinyMCE_lists', 'type' => 'bool', 'value' => true, 'position' => 24),
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce.php b/copy_this/modules/hdi/hdi-tinymce/tinymce.php
deleted file mode 100644
index f38c391..0000000
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce.php
+++ /dev/null
@@ -1,81 +0,0 @@
-
- */
-
- class tinyMCE extends tinyMCE_parent
- {
-
- protected function _generateTextEditor($iWidth, $iHeight, $oObject, $sField, $sStylesheet = NULL)
- {
- $myConfig = oxRegistry::getConfig();
- $aClasses = $myConfig->getConfigParam("aTinyMCE_classes");
- $aPlainCms = $myConfig->getConfigParam("aTinyMCE_plaincms");
-
- if (in_array($this->getClassName(),$aClasses) && !in_array($oObject->oxcontents__oxloadid->value,$aPlainCms))
- {
- $oViewConf = $this->_aViewData["oViewConf"];
- $smarty = oxRegistry::get("oxUtilsView")->getSmarty();
-
- //$sEditor = $smarty->fetch($myConfig->getModulesDir()."hdi/hdi-tinymce/test.tpl");
-
- if ($oObject)
- {
- $sInitialValue = '';
- if ($oObject->$sField instanceof oxField)
- {
- $sInitialValue = $oObject->$sField->getRawValue();
- } else
- {
- $sInitialValue = $oObject->$sField->value;
- }
- $sLang = oxRegistry::getLang()->getLanguageAbbr(oxRegistry::getLang()->getTplLanguage ());
- // array to assign shops lang abbreviations to lang file names of tinymce: shopLangAbbreviation => fileName (without .js )
- $aLang = array("cs" => "cs","da" => "da","de" => "de","fr" => "fr_FR","it" => "it","nl" => "nl","ru" => "ru");
- $smarty->assign("sEditorLang",(in_array($sLang,$aLang) ? $aLang[$sLang] : "en"));
-
- //$oObject->$sField = new oxField(str_replace('[{$shop->currenthomedir}]', $myConfig->getCurrentShopURL(), $sInitialValue), oxField::T_RAW);
- $smarty->assign("sField", $sField);
- $smarty->assign("iWidth", (strpos($iWidth, '%') === false) ? $iWidth . 'px' : $iWidth);
- //$smarty->assign("iHeight", "80%");
- $smarty->assign( "iHeight", (strpos($iHeight, '%') === false) ? $iHeight . 'px' : $iHeight);
- $smarty->assign("sContent", $this->_getEditValue($oObject, $sField));
-
- //external plugins & controls
- $smarty->assign("extPlugins", $myConfig->getConfigParam("aTinyMCE_external_plugins"));
- $smarty->assign("extControls", $myConfig->getConfigParam("sTinyMCE_external_controls"));
- $smarty->assign("extConfig", implode($myConfig->getConfigParam("aTinyMCE_external_config"),"\n"));
-
-
- //var_dump($myConfig->getModulesDir()."hdi/hdi-tinymce/test.tpl");
- $smarty->assign("cfg", $myConfig);
- $smarty->assign("oViewConf", $this->_aViewData["oViewConf"]);
- $sEditor = $smarty->fetch("tinymce.tpl");
- }
-
- return $sEditor;
- }
- else
- {
- //returning default textarea or whatever
- $sEditor = parent::_generateTextEditor($iWidth, $iHeight, $oObject, $sField, $sStylesheet);
- if(in_array($oObject->oxcontents__oxloadid->value,$aPlainCms))
- {
- $sEditor .= oxRegistry::getLang()->translateString("hdi_tinymce_plaincms");
- }
- return $sEditor;
- }
- }
-
- }
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/cs.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/cs.js
index 81ee172..a13ed19 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/cs.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/cs.js
@@ -148,15 +148,20 @@ tinymce.addI18n('cs',{
"Paste row before": "Vlo\u017eit \u0159\u00e1dek nad",
"Scope": "Rozsah",
"Delete table": "Smazat tabulku",
+"H Align": "Horizont\u00e1ln\u00ed zarovn\u00e1n\u00ed",
+"Top": "Nahoru",
"Header cell": "Hlavi\u010dkov\u00e1 bu\u0148ka",
"Column": "Sloupec",
+"Row group": "Skupina \u0159\u00e1dk\u016f",
"Cell": "Bu\u0148ka",
-"Header": "Hlavi\u010dka",
+"Middle": "Uprost\u0159ed",
"Cell type": "Typ bu\u0148ky",
"Copy row": "Kop\u00edrovat \u0159\u00e1dek",
"Row properties": "Vlastnosti \u0159\u00e1dku",
"Table properties": "Vlastnosti tabulky",
-"Row group": "Skupina \u0159\u00e1dk\u016f",
+"Bottom": "Dol\u016f",
+"V Align": "Vertik\u00e1ln\u00ed zarovn\u00e1n\u00ed",
+"Header": "Hlavi\u010dka",
"Right": "Vpravo",
"Insert column after": "Vlo\u017eit sloupec vpravo",
"Cols": "Sloupc\u016f",
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/de.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/de.js
index c90d02a..2bc94d7 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/de.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/de.js
@@ -148,15 +148,20 @@ tinymce.addI18n('de',{
"Paste row before": "Zeile davor einf\u00fcgen",
"Scope": "G\u00fcltigkeitsbereich",
"Delete table": "Tabelle l\u00f6schen",
+"H Align": "Horizontale Ausrichtung",
+"Top": "Oben",
"Header cell": "Kopfzelle",
"Column": "Spalte",
+"Row group": "Zeilengruppe",
"Cell": "Zelle",
-"Header": "Kopfzeile",
+"Middle": "Mitte",
"Cell type": "Zellentyp",
"Copy row": "Zeile kopieren",
"Row properties": "Zeileneigenschaften",
"Table properties": "Tabelleneigenschaften",
-"Row group": "Zeilengruppe",
+"Bottom": "Unten",
+"V Align": "Vertikale Ausrichtung",
+"Header": "Kopfzeile",
"Right": "Rechtsb\u00fcndig",
"Insert column after": "Neue Spalte danach einf\u00fcgen",
"Cols": "Spalten",
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/fr_FR.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/fr_FR.js
index d04b844..5e0e17d 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/fr_FR.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/fr_FR.js
@@ -141,15 +141,20 @@ tinymce.addI18n('fr_FR',{
"Paste row before": "Coller la ligne avant",
"Scope": "Etendue",
"Delete table": "Supprimer le tableau",
+"H Align": "Alignement H",
+"Top": "Haut",
"Header cell": "Cellule d'en-t\u00eate",
"Column": "Colonne",
+"Row group": "Groupe de lignes",
"Cell": "Cellule",
-"Header": "En-t\u00eate",
+"Middle": "Milieu",
"Cell type": "Type de cellule",
"Copy row": "Copier la ligne",
"Row properties": "Propri\u00e9t\u00e9s de la ligne",
"Table properties": "Propri\u00e9t\u00e9s du tableau",
-"Row group": "Groupe de lignes",
+"Bottom": "Bas",
+"V Align": "Alignement V",
+"Header": "En-t\u00eate",
"Right": "Droite",
"Insert column after": "Ins\u00e9rer une colonne apr\u00e8s",
"Cols": "Colonnes",
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/nl.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/nl.js
index a95979a..a70fd3a 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/nl.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/nl.js
@@ -1,8 +1,11 @@
tinymce.addI18n('nl',{
"Cut": "Knippen",
+"Heading 5": "Kop 5",
"Header 2": "Kop 2",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Uw browser ondersteunt geen toegang tot het clipboard. Gelieve ctrl+X\/C\/V sneltoetsen te gebruiken.",
+"Heading 4": "Kop 4",
"Div": "Div",
+"Heading 2": "Kop 2",
"Paste": "Plakken",
"Close": "Sluiten",
"Font Family": "Lettertype",
@@ -11,6 +14,8 @@ tinymce.addI18n('nl',{
"New document": "Nieuw document",
"Blockquote": "Quote",
"Numbered list": "Nummering",
+"Heading 1": "Kop 1",
+"Headings": "Koppen",
"Increase indent": "Inspringen vergroten",
"Formats": "Opmaak",
"Headers": "Kopteksten",
@@ -34,6 +39,8 @@ tinymce.addI18n('nl',{
"Italic": "Schuin",
"Align center": "Centreren",
"Header 5": "Kop 5",
+"Heading 6": "Kop 6",
+"Heading 3": "Kop 3",
"Decrease indent": "Inspringen verkleinen",
"Header 4": "Kop 4",
"Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "Plakken gebeurt nu als platte tekst. Tekst wordt nu ingevoegd zonder opmaak tot deze optie uitgeschakeld wordt.",
@@ -91,9 +98,9 @@ tinymce.addI18n('nl',{
"Insert link": "Hyperlink invoegen",
"New window": "Nieuw venster",
"None": "Geen",
-"The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?",
+"The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "De ingegeven URL verwijst naar een extern adres. Wil je er de \"http:\/\/\" aan toevoegen?",
"Target": "Doel",
-"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",
+"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "De ingegeven URL is een email adres. Wil je er de \"mailto\" aan toevoegen?",
"Insert\/edit link": "Hyperlink invoegen\/bewerken",
"Insert\/edit video": "Video invoegen\/bewerken",
"Poster": "Poster",
@@ -141,15 +148,20 @@ tinymce.addI18n('nl',{
"Paste row before": "Plak rij boven",
"Scope": "Bereik",
"Delete table": "Verwijder tabel",
+"H Align": "Links uitlijnen",
+"Top": "Bovenaan",
"Header cell": "Kopcel",
"Column": "Kolom",
+"Row group": "Rijgroep",
"Cell": "Cel",
-"Header": "Koptekst",
+"Middle": "Centreren",
"Cell type": "Celtype",
"Copy row": "Kopieer rij",
"Row properties": "Rij eigenschappen",
"Table properties": "Tabel eigenschappen",
-"Row group": "Rijgroep",
+"Bottom": "Onderaan",
+"V Align": "Boven uitlijnen",
+"Header": "Koptekst",
"Right": "Rechts",
"Insert column after": "Voeg kolom in na",
"Cols": "Kolommen",
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/ru.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/ru.js
index 0ef0f1d..30de752 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/ru.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/langs/ru.js
@@ -148,15 +148,20 @@ tinymce.addI18n('ru',{
"Paste row before": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u0432\u0435\u0440\u0445\u0443",
"Scope": "Scope",
"Delete table": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443",
+"H Align": "\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435",
+"Top": "\u041f\u043e \u0432\u0435\u0440\u0445\u0443",
"Header cell": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a",
"Column": "\u0421\u0442\u043e\u043b\u0431\u0435\u0446",
+"Row group": "\u0413\u0440\u0443\u043f\u043f\u0430 \u0441\u0442\u0440\u043e\u043a",
"Cell": "\u042f\u0447\u0435\u0439\u043a\u0430",
-"Header": "\u0428\u0430\u043f\u043a\u0430",
+"Middle": "\u041f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435",
"Cell type": "\u0422\u0438\u043f \u044f\u0447\u0435\u0439\u043a\u0438",
"Copy row": "\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443",
"Row properties": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0442\u0440\u043e\u043a\u0438",
"Table properties": "\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b",
-"Row group": "\u0413\u0440\u0443\u043f\u043f\u0430 \u0441\u0442\u0440\u043e\u043a",
+"Bottom": "\u041f\u043e \u043d\u0438\u0437\u0443",
+"V Align": "\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435",
+"Header": "\u0428\u0430\u043f\u043a\u0430",
"Right": "\u041f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e",
"Insert column after": "\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043f\u0440\u0430\u0432\u0430",
"Cols": "\u0421\u0442\u043e\u043b\u0431\u0446\u044b",
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/advlist/plugin.min.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/advlist/plugin.min.js
index a4db7cc..fb605c0 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/advlist/plugin.min.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/advlist/plugin.min.js
@@ -1 +1 @@
-tinymce.PluginManager.add("advlist",function(t){function e(t,e){var n=[];return tinymce.each(e.split(/[ ,]/),function(t){n.push({text:t.replace(/\-/g," ").replace(/\b\w/g,function(t){return t.toUpperCase()}),data:"default"==t?"":t})}),n}function n(e,n){var o,l=t.dom,a=t.selection;o=l.getParent(a.getNode(),"ol,ul"),o&&o.nodeName==e&&n!==!1||t.execCommand("UL"==e?"InsertUnorderedList":"InsertOrderedList"),n=n===!1?i[e]:n,i[e]=n,o=l.getParent(a.getNode(),"ol,ul"),o&&(l.setStyle(o,"listStyleType",n),o.removeAttribute("data-mce-style")),t.focus()}function o(e){var n=t.dom.getStyle(t.dom.getParent(t.selection.getNode(),"ol,ul"),"listStyleType")||"";e.control.items().each(function(t){t.active(t.settings.data===n)})}var l,a,i={};l=e("OL",t.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman")),a=e("UL",t.getParam("advlist_bullet_styles","default,circle,disc,square")),t.addButton("numlist",{type:"splitbutton",tooltip:"Numbered list",menu:l,onshow:o,onselect:function(t){n("OL",t.control.settings.data)},onclick:function(){n("OL",!1)}}),t.addButton("bullist",{type:"splitbutton",tooltip:"Bullet list",menu:a,onshow:o,onselect:function(t){n("UL",t.control.settings.data)},onclick:function(){n("UL",!1)}})});
\ No newline at end of file
+tinymce.PluginManager.add("advlist",function(e){function t(e,t){var n=[];return tinymce.each(t.split(/[ ,]/),function(e){n.push({text:e.replace(/\-/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()}),data:"default"==e?"":e})}),n}function n(t,n){var r,i=e.dom,o=e.selection;r=i.getParent(o.getNode(),"ol,ul"),r&&r.nodeName==t&&n!==!1||e.execCommand("UL"==t?"InsertUnorderedList":"InsertOrderedList"),n=n===!1?a[t]:n,a[t]=n,r=i.getParent(o.getNode(),"ol,ul"),r&&(i.setStyle(r,"listStyleType",n),r.removeAttribute("data-mce-style")),e.focus()}function r(t){var n=e.dom.getStyle(e.dom.getParent(e.selection.getNode(),"ol,ul"),"listStyleType")||"";t.control.items().each(function(e){e.active(e.settings.data===n)})}var i,o,a={};i=t("OL",e.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman")),o=t("UL",e.getParam("advlist_bullet_styles","default,circle,disc,square")),e.addButton("numlist",{type:"splitbutton",tooltip:"Numbered list",menu:i,onshow:r,onselect:function(e){n("OL",e.control.settings.data)},onclick:function(){n("OL",!1)}}),e.addButton("bullist",{type:"splitbutton",tooltip:"Bullet list",menu:o,onshow:r,onselect:function(e){n("UL",e.control.settings.data)},onclick:function(){n("UL",!1)}})});
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/anchor/plugin.min.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/anchor/plugin.min.js
index 058e686..6a3fd79 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/anchor/plugin.min.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/anchor/plugin.min.js
@@ -1 +1 @@
-tinymce.PluginManager.add("anchor",function(n){function e(){var e=n.selection.getNode();n.windowManager.open({title:"Anchor",body:{type:"textbox",name:"name",size:40,label:"Name",value:e.name||e.id},onsubmit:function(e){n.execCommand("mceInsertContent",!1,n.dom.createHTML("a",{id:e.data.name}))}})}n.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:e,stateSelector:"a:not([href])"}),n.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:e})});
\ No newline at end of file
+tinymce.PluginManager.add("anchor",function(e){function t(){var t=e.selection.getNode();e.windowManager.open({title:"Anchor",body:{type:"textbox",name:"name",size:40,label:"Name",value:t.name||t.id},onsubmit:function(t){e.execCommand("mceInsertContent",!1,e.dom.createHTML("a",{id:t.data.name}))}})}e.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:t,stateSelector:"a:not([href])"}),e.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:t})});
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/autolink/plugin.min.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/autolink/plugin.min.js
index fe0596e..c49c679 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/autolink/plugin.min.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/autolink/plugin.min.js
@@ -1 +1 @@
-tinymce.PluginManager.add("autolink",function(t){function e(t){o(t,-1,"(",!0)}function n(t){o(t,0,"",!0)}function i(t){o(t,-1,"",!1)}function o(t,e,n){var i,o,r,s,d,a,f,l,c;if(i=t.selection.getRng(!0).cloneRange(),i.startOffset<5){if(l=i.endContainer.previousSibling,!l){if(!i.endContainer.firstChild||!i.endContainer.firstChild.nextSibling)return;l=i.endContainer.firstChild.nextSibling}if(c=l.length,i.setStart(l,c),i.setEnd(l,c),i.endOffset<5)return;o=i.endOffset,s=l}else{if(s=i.endContainer,3!=s.nodeType&&s.firstChild){for(;3!=s.nodeType&&s.firstChild;)s=s.firstChild;3==s.nodeType&&(i.setStart(s,0),i.setEnd(s,s.nodeValue.length))}o=1==i.endOffset?2:i.endOffset-1-e}r=o;do i.setStart(s,o>=2?o-2:0),i.setEnd(s,o>=1?o-1:0),o-=1;while(" "!=i.toString()&&""!==i.toString()&&160!=i.toString().charCodeAt(0)&&o-2>=0&&i.toString()!=n);if(i.toString()==n||160==i.toString().charCodeAt(0)?(i.setStart(s,o),i.setEnd(s,r),o+=1):0===i.startOffset?(i.setStart(s,0),i.setEnd(s,r)):(i.setStart(s,o),i.setEnd(s,r)),a=i.toString(),"."==a.charAt(a.length-1)&&i.setEnd(s,r-1),a=i.toString(),f=a.match(/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i),f&&("www."==f[1]?f[1]="http://www.":/@$/.test(f[1])&&!/^mailto:/.test(f[1])&&(f[1]="mailto:"+f[1]),d=t.selection.getBookmark(),t.selection.setRng(i),t.execCommand("createlink",!1,f[1]+f[2]),t.selection.moveToBookmark(d),t.nodeChanged(),tinymce.Env.webkit)){t.selection.collapse(!1);var g=Math.min(s.length,r+1);i.setStart(s,g),i.setEnd(s,g),t.selection.setRng(i)}}var r;return t.on("keydown",function(e){return 13==e.keyCode?i(t):void 0}),tinymce.Env.ie?void t.on("focus",function(){if(!r){r=!0;try{t.execCommand("AutoUrlDetect",!1,!0)}catch(e){}}}):(t.on("keypress",function(n){return 41==n.which?e(t):void 0}),void t.on("keyup",function(e){return 32==e.keyCode?n(t):void 0}))});
\ No newline at end of file
+tinymce.PluginManager.add("autolink",function(t){function n(t){o(t,-1,"(",!0)}function e(t){o(t,0,"",!0)}function i(t){o(t,-1,"",!1)}function o(t,n,e){function i(t,n){if(0>n&&(n=0),3==t.nodeType){var e=t.data.length;n>e&&(n=e)}return n}function o(t,n){f.setStart(t,i(t,n))}function r(t,n){f.setEnd(t,i(t,n))}var f,d,a,s,c,l,u,g,h;if(f=t.selection.getRng(!0).cloneRange(),f.startOffset<5){if(g=f.endContainer.previousSibling,!g){if(!f.endContainer.firstChild||!f.endContainer.firstChild.nextSibling)return;g=f.endContainer.firstChild.nextSibling}if(h=g.length,o(g,h),r(g,h),f.endOffset<5)return;d=f.endOffset,s=g}else{if(s=f.endContainer,3!=s.nodeType&&s.firstChild){for(;3!=s.nodeType&&s.firstChild;)s=s.firstChild;3==s.nodeType&&(o(s,0),r(s,s.nodeValue.length))}d=1==f.endOffset?2:f.endOffset-1-n}a=d;do o(s,d>=2?d-2:0),r(s,d>=1?d-1:0),d-=1;while(" "!=f.toString()&&""!==f.toString()&&160!=f.toString().charCodeAt(0)&&d-2>=0&&f.toString()!=e);f.toString()==e||160==f.toString().charCodeAt(0)?(o(s,d),r(s,a),d+=1):0===f.startOffset?(o(s,0),r(s,a)):(o(s,d),r(s,a)),l=f.toString(),"."==l.charAt(l.length-1)&&r(s,a-1),l=f.toString(),u=l.match(/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i),u&&("www."==u[1]?u[1]="http://www.":/@$/.test(u[1])&&!/^mailto:/.test(u[1])&&(u[1]="mailto:"+u[1]),c=t.selection.getBookmark(),t.selection.setRng(f),t.execCommand("createlink",!1,u[1]+u[2]),t.selection.moveToBookmark(c),t.nodeChanged())}var r;return t.on("keydown",function(n){return 13==n.keyCode?i(t):void 0}),tinymce.Env.ie?void t.on("focus",function(){if(!r){r=!0;try{t.execCommand("AutoUrlDetect",!1,!0)}catch(n){}}}):(t.on("keypress",function(e){return 41==e.keyCode?n(t):void 0}),void t.on("keyup",function(n){return 32==n.keyCode?e(t):void 0}))});
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/autoresize/plugin.min.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/autoresize/plugin.min.js
index 4397484..fed1d4f 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/autoresize/plugin.min.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/autoresize/plugin.min.js
@@ -1 +1 @@
-tinymce.PluginManager.add("autoresize",function(e){function t(i){var a,s,g,r,m,u,l,h,_=tinymce.DOM;s=e.getDoc(),s&&(g=s.body,r=s.documentElement,m=n.autoresize_min_height,!g||i&&"setcontent"===i.type&&i.initial||e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()||(l=e.dom.getStyle(g,"margin-top",!0),h=e.dom.getStyle(g,"margin-bottom",!0),u=g.offsetHeight+parseInt(l,10)+parseInt(h,10),(isNaN(u)||0>=u)&&(u=tinymce.Env.ie?g.scrollHeight:tinymce.Env.webkit&&0===g.clientHeight?0:g.offsetHeight),u>n.autoresize_min_height&&(m=u),n.autoresize_max_height&&u>n.autoresize_max_height?(m=n.autoresize_max_height,g.style.overflowY="auto",r.style.overflowY="auto"):(g.style.overflowY="hidden",r.style.overflowY="hidden",g.scrollTop=0),m!==o&&(a=m-o,_.setStyle(_.get(e.id+"_ifr"),"height",m+"px"),o=m,tinymce.isWebKit&&0>a&&t(i))))}function i(e,n,o){setTimeout(function(){t({}),e--?i(e,n,o):o&&o()},n)}var n=e.settings,o=0;e.settings.inline||(n.autoresize_min_height=parseInt(e.getParam("autoresize_min_height",e.getElement().offsetHeight),10),n.autoresize_max_height=parseInt(e.getParam("autoresize_max_height",0),10),e.on("init",function(){var t=e.getParam("autoresize_overflow_padding",1);e.dom.setStyles(e.getBody(),{paddingBottom:e.getParam("autoresize_bottom_margin",50),paddingLeft:t,paddingRight:t})}),e.on("change setcontent paste keyup",t),e.getParam("autoresize_on_init",!0)&&e.on("init",function(){i(20,100,function(){i(5,1e3)})}),e.addCommand("mceAutoResize",t))});
\ No newline at end of file
+tinymce.PluginManager.add("autoresize",function(e){function t(){return e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()}function i(n){var s,r,g,u,l,m,h,d,f=tinymce.DOM;if(r=e.getDoc()){if(g=r.body,u=r.documentElement,l=o.autoresize_min_height,!g||n&&"setcontent"===n.type&&n.initial||t())return void(g&&u&&(g.style.overflowY="auto",u.style.overflowY="auto"));h=e.dom.getStyle(g,"margin-top",!0),d=e.dom.getStyle(g,"margin-bottom",!0),m=g.offsetHeight+parseInt(h,10)+parseInt(d,10),(isNaN(m)||0>=m)&&(m=tinymce.Env.ie?g.scrollHeight:tinymce.Env.webkit&&0===g.clientHeight?0:g.offsetHeight),m>o.autoresize_min_height&&(l=m),o.autoresize_max_height&&m>o.autoresize_max_height?(l=o.autoresize_max_height,g.style.overflowY="auto",u.style.overflowY="auto"):(g.style.overflowY="hidden",u.style.overflowY="hidden",g.scrollTop=0),l!==a&&(s=l-a,f.setStyle(f.get(e.id+"_ifr"),"height",l+"px"),a=l,tinymce.isWebKit&&0>s&&i(n))}}function n(e,t,o){setTimeout(function(){i({}),e--?n(e,t,o):o&&o()},t)}var o=e.settings,a=0;e.settings.inline||(o.autoresize_min_height=parseInt(e.getParam("autoresize_min_height",e.getElement().offsetHeight),10),o.autoresize_max_height=parseInt(e.getParam("autoresize_max_height",0),10),e.on("init",function(){var t=e.getParam("autoresize_overflow_padding",1);e.dom.setStyles(e.getBody(),{paddingBottom:e.getParam("autoresize_bottom_margin",50),paddingLeft:t,paddingRight:t})}),e.on("nodechange setcontent keyup FullscreenStateChanged",i),e.getParam("autoresize_on_init",!0)&&e.on("init",function(){n(20,100,function(){n(5,1e3)})}),e.addCommand("mceAutoResize",i))});
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/charmap/plugin.min.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/charmap/plugin.min.js
index eee3bb1..46fce44 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/charmap/plugin.min.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/charmap/plugin.min.js
@@ -1 +1 @@
-tinymce.PluginManager.add("charmap",function(e){function a(){function a(e){for(;e;){if("TD"==e.nodeName)return e;e=e.parentNode}}var i,r,o,n;i='';var l=25;for(o=0;10>o;o++){for(i+="",r=0;l>r;r++){var s=t[o*l+r];i+=''+(s?String.fromCharCode(parseInt(s[0],10)):" ")+"
"}i+=" "}i+="
";var c={type:"container",html:i,onclick:function(a){var t=a.target;/^(TD|DIV)$/.test(t.nodeName)&&(e.execCommand("mceInsertContent",!1,tinymce.trim(t.innerText||t.textContent)),a.ctrlKey||n.close())},onmouseover:function(e){var t=a(e.target);t&&n.find("#preview").text(t.firstChild.firstChild.data)}};n=e.windowManager.open({title:"Special character",spacing:10,padding:10,items:[c,{type:"label",name:"preview",text:" ",style:"font-size: 40px; text-align: center",border:1,minWidth:100,minHeight:80}],buttons:[{text:"Close",onclick:function(){n.close()}}]})}var t=[["160","no-break space"],["38","ampersand"],["34","quotation mark"],["162","cent sign"],["8364","euro sign"],["163","pound sign"],["165","yen sign"],["169","copyright sign"],["174","registered sign"],["8482","trade mark sign"],["8240","per mille sign"],["181","micro sign"],["183","middle dot"],["8226","bullet"],["8230","three dot leader"],["8242","minutes / feet"],["8243","seconds / inches"],["167","section sign"],["182","paragraph sign"],["223","sharp s / ess-zed"],["8249","single left-pointing angle quotation mark"],["8250","single right-pointing angle quotation mark"],["171","left pointing guillemet"],["187","right pointing guillemet"],["8216","left single quotation mark"],["8217","right single quotation mark"],["8220","left double quotation mark"],["8221","right double quotation mark"],["8218","single low-9 quotation mark"],["8222","double low-9 quotation mark"],["60","less-than sign"],["62","greater-than sign"],["8804","less-than or equal to"],["8805","greater-than or equal to"],["8211","en dash"],["8212","em dash"],["175","macron"],["8254","overline"],["164","currency sign"],["166","broken bar"],["168","diaeresis"],["161","inverted exclamation mark"],["191","turned question mark"],["710","circumflex accent"],["732","small tilde"],["176","degree sign"],["8722","minus sign"],["177","plus-minus sign"],["247","division sign"],["8260","fraction slash"],["215","multiplication sign"],["185","superscript one"],["178","superscript two"],["179","superscript three"],["188","fraction one quarter"],["189","fraction one half"],["190","fraction three quarters"],["402","function / florin"],["8747","integral"],["8721","n-ary sumation"],["8734","infinity"],["8730","square root"],["8764","similar to"],["8773","approximately equal to"],["8776","almost equal to"],["8800","not equal to"],["8801","identical to"],["8712","element of"],["8713","not an element of"],["8715","contains as member"],["8719","n-ary product"],["8743","logical and"],["8744","logical or"],["172","not sign"],["8745","intersection"],["8746","union"],["8706","partial differential"],["8704","for all"],["8707","there exists"],["8709","diameter"],["8711","backward difference"],["8727","asterisk operator"],["8733","proportional to"],["8736","angle"],["180","acute accent"],["184","cedilla"],["170","feminine ordinal indicator"],["186","masculine ordinal indicator"],["8224","dagger"],["8225","double dagger"],["192","A - grave"],["193","A - acute"],["194","A - circumflex"],["195","A - tilde"],["196","A - diaeresis"],["197","A - ring above"],["198","ligature AE"],["199","C - cedilla"],["200","E - grave"],["201","E - acute"],["202","E - circumflex"],["203","E - diaeresis"],["204","I - grave"],["205","I - acute"],["206","I - circumflex"],["207","I - diaeresis"],["208","ETH"],["209","N - tilde"],["210","O - grave"],["211","O - acute"],["212","O - circumflex"],["213","O - tilde"],["214","O - diaeresis"],["216","O - slash"],["338","ligature OE"],["352","S - caron"],["217","U - grave"],["218","U - acute"],["219","U - circumflex"],["220","U - diaeresis"],["221","Y - acute"],["376","Y - diaeresis"],["222","THORN"],["224","a - grave"],["225","a - acute"],["226","a - circumflex"],["227","a - tilde"],["228","a - diaeresis"],["229","a - ring above"],["230","ligature ae"],["231","c - cedilla"],["232","e - grave"],["233","e - acute"],["234","e - circumflex"],["235","e - diaeresis"],["236","i - grave"],["237","i - acute"],["238","i - circumflex"],["239","i - diaeresis"],["240","eth"],["241","n - tilde"],["242","o - grave"],["243","o - acute"],["244","o - circumflex"],["245","o - tilde"],["246","o - diaeresis"],["248","o slash"],["339","ligature oe"],["353","s - caron"],["249","u - grave"],["250","u - acute"],["251","u - circumflex"],["252","u - diaeresis"],["253","y - acute"],["254","thorn"],["255","y - diaeresis"],["913","Alpha"],["914","Beta"],["915","Gamma"],["916","Delta"],["917","Epsilon"],["918","Zeta"],["919","Eta"],["920","Theta"],["921","Iota"],["922","Kappa"],["923","Lambda"],["924","Mu"],["925","Nu"],["926","Xi"],["927","Omicron"],["928","Pi"],["929","Rho"],["931","Sigma"],["932","Tau"],["933","Upsilon"],["934","Phi"],["935","Chi"],["936","Psi"],["937","Omega"],["945","alpha"],["946","beta"],["947","gamma"],["948","delta"],["949","epsilon"],["950","zeta"],["951","eta"],["952","theta"],["953","iota"],["954","kappa"],["955","lambda"],["956","mu"],["957","nu"],["958","xi"],["959","omicron"],["960","pi"],["961","rho"],["962","final sigma"],["963","sigma"],["964","tau"],["965","upsilon"],["966","phi"],["967","chi"],["968","psi"],["969","omega"],["8501","alef symbol"],["982","pi symbol"],["8476","real part symbol"],["978","upsilon - hook symbol"],["8472","Weierstrass p"],["8465","imaginary part"],["8592","leftwards arrow"],["8593","upwards arrow"],["8594","rightwards arrow"],["8595","downwards arrow"],["8596","left right arrow"],["8629","carriage return"],["8656","leftwards double arrow"],["8657","upwards double arrow"],["8658","rightwards double arrow"],["8659","downwards double arrow"],["8660","left right double arrow"],["8756","therefore"],["8834","subset of"],["8835","superset of"],["8836","not a subset of"],["8838","subset of or equal to"],["8839","superset of or equal to"],["8853","circled plus"],["8855","circled times"],["8869","perpendicular"],["8901","dot operator"],["8968","left ceiling"],["8969","right ceiling"],["8970","left floor"],["8971","right floor"],["9001","left-pointing angle bracket"],["9002","right-pointing angle bracket"],["9674","lozenge"],["9824","black spade suit"],["9827","black club suit"],["9829","black heart suit"],["9830","black diamond suit"],["8194","en space"],["8195","em space"],["8201","thin space"],["8204","zero width non-joiner"],["8205","zero width joiner"],["8206","left-to-right mark"],["8207","right-to-left mark"],["173","soft hyphen"]];e.addButton("charmap",{icon:"charmap",tooltip:"Special character",onclick:a}),e.addMenuItem("charmap",{icon:"charmap",text:"Special character",onclick:a,context:"insert"})});
\ No newline at end of file
+tinymce.PluginManager.add("charmap",function(e){function a(){function a(e){for(;e;){if("TD"==e.nodeName)return e;e=e.parentNode}}var t,r,o,n;t='';var l=25;for(o=0;10>o;o++){for(t+="",r=0;l>r;r++){var s=i[o*l+r];t+=''+(s?String.fromCharCode(parseInt(s[0],10)):" ")+"
"}t+=" "}t+="
";var c={type:"container",html:t,onclick:function(a){var i=a.target;"TD"==i.tagName&&(i=i.firstChild),"DIV"==i.tagName&&(e.execCommand("mceInsertContent",!1,i.firstChild.data),a.ctrlKey||n.close())},onmouseover:function(e){var i=a(e.target);i&&n.find("#preview").text(i.firstChild.firstChild.data)}};n=e.windowManager.open({title:"Special character",spacing:10,padding:10,items:[c,{type:"label",name:"preview",text:" ",style:"font-size: 40px; text-align: center",border:1,minWidth:100,minHeight:80}],buttons:[{text:"Close",onclick:function(){n.close()}}]})}var i=[["160","no-break space"],["38","ampersand"],["34","quotation mark"],["162","cent sign"],["8364","euro sign"],["163","pound sign"],["165","yen sign"],["169","copyright sign"],["174","registered sign"],["8482","trade mark sign"],["8240","per mille sign"],["181","micro sign"],["183","middle dot"],["8226","bullet"],["8230","three dot leader"],["8242","minutes / feet"],["8243","seconds / inches"],["167","section sign"],["182","paragraph sign"],["223","sharp s / ess-zed"],["8249","single left-pointing angle quotation mark"],["8250","single right-pointing angle quotation mark"],["171","left pointing guillemet"],["187","right pointing guillemet"],["8216","left single quotation mark"],["8217","right single quotation mark"],["8220","left double quotation mark"],["8221","right double quotation mark"],["8218","single low-9 quotation mark"],["8222","double low-9 quotation mark"],["60","less-than sign"],["62","greater-than sign"],["8804","less-than or equal to"],["8805","greater-than or equal to"],["8211","en dash"],["8212","em dash"],["175","macron"],["8254","overline"],["164","currency sign"],["166","broken bar"],["168","diaeresis"],["161","inverted exclamation mark"],["191","turned question mark"],["710","circumflex accent"],["732","small tilde"],["176","degree sign"],["8722","minus sign"],["177","plus-minus sign"],["247","division sign"],["8260","fraction slash"],["215","multiplication sign"],["185","superscript one"],["178","superscript two"],["179","superscript three"],["188","fraction one quarter"],["189","fraction one half"],["190","fraction three quarters"],["402","function / florin"],["8747","integral"],["8721","n-ary sumation"],["8734","infinity"],["8730","square root"],["8764","similar to"],["8773","approximately equal to"],["8776","almost equal to"],["8800","not equal to"],["8801","identical to"],["8712","element of"],["8713","not an element of"],["8715","contains as member"],["8719","n-ary product"],["8743","logical and"],["8744","logical or"],["172","not sign"],["8745","intersection"],["8746","union"],["8706","partial differential"],["8704","for all"],["8707","there exists"],["8709","diameter"],["8711","backward difference"],["8727","asterisk operator"],["8733","proportional to"],["8736","angle"],["180","acute accent"],["184","cedilla"],["170","feminine ordinal indicator"],["186","masculine ordinal indicator"],["8224","dagger"],["8225","double dagger"],["192","A - grave"],["193","A - acute"],["194","A - circumflex"],["195","A - tilde"],["196","A - diaeresis"],["197","A - ring above"],["198","ligature AE"],["199","C - cedilla"],["200","E - grave"],["201","E - acute"],["202","E - circumflex"],["203","E - diaeresis"],["204","I - grave"],["205","I - acute"],["206","I - circumflex"],["207","I - diaeresis"],["208","ETH"],["209","N - tilde"],["210","O - grave"],["211","O - acute"],["212","O - circumflex"],["213","O - tilde"],["214","O - diaeresis"],["216","O - slash"],["338","ligature OE"],["352","S - caron"],["217","U - grave"],["218","U - acute"],["219","U - circumflex"],["220","U - diaeresis"],["221","Y - acute"],["376","Y - diaeresis"],["222","THORN"],["224","a - grave"],["225","a - acute"],["226","a - circumflex"],["227","a - tilde"],["228","a - diaeresis"],["229","a - ring above"],["230","ligature ae"],["231","c - cedilla"],["232","e - grave"],["233","e - acute"],["234","e - circumflex"],["235","e - diaeresis"],["236","i - grave"],["237","i - acute"],["238","i - circumflex"],["239","i - diaeresis"],["240","eth"],["241","n - tilde"],["242","o - grave"],["243","o - acute"],["244","o - circumflex"],["245","o - tilde"],["246","o - diaeresis"],["248","o slash"],["339","ligature oe"],["353","s - caron"],["249","u - grave"],["250","u - acute"],["251","u - circumflex"],["252","u - diaeresis"],["253","y - acute"],["254","thorn"],["255","y - diaeresis"],["913","Alpha"],["914","Beta"],["915","Gamma"],["916","Delta"],["917","Epsilon"],["918","Zeta"],["919","Eta"],["920","Theta"],["921","Iota"],["922","Kappa"],["923","Lambda"],["924","Mu"],["925","Nu"],["926","Xi"],["927","Omicron"],["928","Pi"],["929","Rho"],["931","Sigma"],["932","Tau"],["933","Upsilon"],["934","Phi"],["935","Chi"],["936","Psi"],["937","Omega"],["945","alpha"],["946","beta"],["947","gamma"],["948","delta"],["949","epsilon"],["950","zeta"],["951","eta"],["952","theta"],["953","iota"],["954","kappa"],["955","lambda"],["956","mu"],["957","nu"],["958","xi"],["959","omicron"],["960","pi"],["961","rho"],["962","final sigma"],["963","sigma"],["964","tau"],["965","upsilon"],["966","phi"],["967","chi"],["968","psi"],["969","omega"],["8501","alef symbol"],["982","pi symbol"],["8476","real part symbol"],["978","upsilon - hook symbol"],["8472","Weierstrass p"],["8465","imaginary part"],["8592","leftwards arrow"],["8593","upwards arrow"],["8594","rightwards arrow"],["8595","downwards arrow"],["8596","left right arrow"],["8629","carriage return"],["8656","leftwards double arrow"],["8657","upwards double arrow"],["8658","rightwards double arrow"],["8659","downwards double arrow"],["8660","left right double arrow"],["8756","therefore"],["8834","subset of"],["8835","superset of"],["8836","not a subset of"],["8838","subset of or equal to"],["8839","superset of or equal to"],["8853","circled plus"],["8855","circled times"],["8869","perpendicular"],["8901","dot operator"],["8968","left ceiling"],["8969","right ceiling"],["8970","left floor"],["8971","right floor"],["9001","left-pointing angle bracket"],["9002","right-pointing angle bracket"],["9674","lozenge"],["9824","black spade suit"],["9827","black club suit"],["9829","black heart suit"],["9830","black diamond suit"],["8194","en space"],["8195","em space"],["8201","thin space"],["8204","zero width non-joiner"],["8205","zero width joiner"],["8206","left-to-right mark"],["8207","right-to-left mark"],["173","soft hyphen"]];e.addButton("charmap",{icon:"charmap",tooltip:"Special character",onclick:a}),e.addMenuItem("charmap",{icon:"charmap",text:"Special character",onclick:a,context:"insert"})});
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/directionality/plugin.min.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/directionality/plugin.min.js
index 2994eb6..c472a90 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/directionality/plugin.min.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/directionality/plugin.min.js
@@ -1 +1 @@
-tinymce.PluginManager.add("directionality",function(t){function e(e){var i,n=t.dom,r=t.selection.getSelectedBlocks();r.length&&(i=n.getAttrib(r[0],"dir"),tinymce.each(r,function(t){n.getParent(t.parentNode,"*[dir='"+e+"']",n.getRoot())||(i!=e?n.setAttrib(t,"dir",e):n.setAttrib(t,"dir",null))}),t.nodeChanged())}function i(t){var e=[];return tinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(i){e.push(i+"[dir="+t+"]")}),e.join(",")}t.addCommand("mceDirectionLTR",function(){e("ltr")}),t.addCommand("mceDirectionRTL",function(){e("rtl")}),t.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:i("ltr")}),t.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:i("rtl")})});
\ No newline at end of file
+tinymce.PluginManager.add("directionality",function(e){function t(t){var n,r=e.dom,i=e.selection.getSelectedBlocks();i.length&&(n=r.getAttrib(i[0],"dir"),tinymce.each(i,function(e){r.getParent(e.parentNode,"*[dir='"+t+"']",r.getRoot())||(n!=t?r.setAttrib(e,"dir",t):r.setAttrib(e,"dir",null))}),e.nodeChanged())}function n(e){var t=[];return tinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(n){t.push(n+"[dir="+e+"]")}),t.join(",")}e.addCommand("mceDirectionLTR",function(){t("ltr")}),e.addCommand("mceDirectionRTL",function(){t("rtl")}),e.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:n("ltr")}),e.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:n("rtl")})});
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/emoticons/plugin.min.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/emoticons/plugin.min.js
index d013643..737083f 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/emoticons/plugin.min.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/emoticons/plugin.min.js
@@ -1 +1 @@
-tinymce.PluginManager.add("emoticons",function(t,e){function a(){var t;return t='',tinymce.each(i,function(a){t+="",tinymce.each(a,function(a){var i=e+"/img/smiley-"+a+".gif";t+=' '}),t+=" "}),t+="
"}var i=[["cool","cry","embarassed","foot-in-mouth"],["frown","innocent","kiss","laughing"],["money-mouth","sealed","smile","surprised"],["tongue-out","undecided","wink","yell"]];t.addButton("emoticons",{type:"panelbutton",panel:{role:"application",autohide:!0,html:a,onclick:function(e){var a=t.dom.getParent(e.target,"a");a&&(t.insertContent(' '),this.hide())}},tooltip:"Emoticons"})});
\ No newline at end of file
+tinymce.PluginManager.add("emoticons",function(t,e){function a(){var t;return t='',tinymce.each(i,function(a){t+="",tinymce.each(a,function(a){var i=e+"/img/smiley-"+a+".gif";t+=' '}),t+=" "}),t+="
"}var i=[["cool","cry","embarassed","foot-in-mouth"],["frown","innocent","kiss","laughing"],["money-mouth","sealed","smile","surprised"],["tongue-out","undecided","wink","yell"]];t.addButton("emoticons",{type:"panelbutton",panel:{role:"application",autohide:!0,html:a,onclick:function(e){var a=t.dom.getParent(e.target,"a");a&&(t.insertContent(' '),this.hide())}},tooltip:"Emoticons"})});
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/example/dialog.html b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/example/dialog.html
new file mode 100644
index 0000000..565f06f
--- /dev/null
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/example/dialog.html
@@ -0,0 +1,8 @@
+
+
+
+ Custom dialog
+ Input some text:
+ Close window
+
+
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/example/plugin.min.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/example/plugin.min.js
index 1ff20b4..00a262e 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/example/plugin.min.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/example/plugin.min.js
@@ -1 +1 @@
-tinymce.PluginManager.add("example",function(t){t.addButton("example",{text:"My button",icon:!1,onclick:function(){t.windowManager.open({title:"Example plugin",body:[{type:"textbox",name:"title",label:"Title"}],onsubmit:function(e){t.insertContent("Title: "+e.data.title)}})}}),t.addMenuItem("example",{text:"Example plugin",context:"tools",onclick:function(){t.windowManager.open({title:"TinyMCE site",url:"http://www.tinymce.com",width:800,height:600,buttons:[{text:"Close",onclick:"close"}]})}})});
\ No newline at end of file
+tinymce.PluginManager.add("example",function(t,e){t.addButton("example",{text:"My button",icon:!1,onclick:function(){t.windowManager.open({title:"Example plugin",body:[{type:"textbox",name:"title",label:"Title"}],onsubmit:function(e){t.insertContent("Title: "+e.data.title)}})}}),t.addMenuItem("example",{text:"Example plugin",context:"tools",onclick:function(){t.windowManager.open({title:"TinyMCE site",url:e+"/dialog.html",width:600,height:400,buttons:[{text:"Insert",onclick:function(){var e=t.windowManager.getWindows()[0];t.insertContent(e.getContentWindow().document.getElementById("content").value),e.close()}},{text:"Close",onclick:"close"}]})}})});
\ No newline at end of file
diff --git a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/fullpage/plugin.min.js b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/fullpage/plugin.min.js
index 1da17c9..1c03c8c 100644
--- a/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/fullpage/plugin.min.js
+++ b/copy_this/modules/hdi/hdi-tinymce/tinymce/plugins/fullpage/plugin.min.js
@@ -1 +1 @@
-tinymce.PluginManager.add("fullpage",function(e){function t(){var t=n();e.windowManager.open({title:"Document properties",data:t,defaults:{type:"textbox",size:40},body:[{name:"title",label:"Title"},{name:"keywords",label:"Keywords"},{name:"description",label:"Description"},{name:"robots",label:"Robots"},{name:"author",label:"Author"},{name:"docencoding",label:"Encoding"}],onSubmit:function(e){l(tinymce.extend(t,e.data))}})}function n(){function t(e,t){var n=e.attr(t);return n||""}var n,l,a=i(),r={};return r.fontface=e.getParam("fullpage_default_fontface",""),r.fontsize=e.getParam("fullpage_default_fontsize",""),n=a.firstChild,7==n.type&&(r.xml_pi=!0,l=/encoding="([^"]+)"/.exec(n.value),l&&(r.docencoding=l[1])),n=a.getAll("#doctype")[0],n&&(r.doctype=""),n=a.getAll("title")[0],n&&n.firstChild&&(r.title=n.firstChild.value),s(a.getAll("meta"),function(e){var t,n=e.attr("name"),l=e.attr("http-equiv");n?r[n.toLowerCase()]=e.attr("content"):"Content-Type"==l&&(t=/charset\s*=\s*(.*)\s*/gi.exec(e.attr("content")),t&&(r.docencoding=t[1]))}),n=a.getAll("html")[0],n&&(r.langcode=t(n,"lang")||t(n,"xml:lang")),r.stylesheets=[],tinymce.each(a.getAll("link"),function(e){"stylesheet"==e.attr("rel")&&r.stylesheets.push(e.attr("href"))}),n=a.getAll("body")[0],n&&(r.langdir=t(n,"dir"),r.style=t(n,"style"),r.visited_color=t(n,"vlink"),r.link_color=t(n,"link"),r.active_color=t(n,"alink")),r}function l(t){function n(e,t,n){e.attr(t,n?n:void 0)}function l(e){r.firstChild?r.insert(e,r.firstChild):r.append(e)}var a,r,o,c,u,f=e.dom;a=i(),r=a.getAll("head")[0],r||(c=a.getAll("html")[0],r=new m("head",1),c.firstChild?c.insert(r,c.firstChild,!0):c.append(r)),c=a.firstChild,t.xml_pi?(u='version="1.0"',t.docencoding&&(u+=' encoding="'+t.docencoding+'"'),7!=c.type&&(c=new m("xml",7),a.insert(c,a.firstChild,!0)),c.value=u):c&&7==c.type&&c.remove(),c=a.getAll("#doctype")[0],t.doctype?(c||(c=new m("#doctype",10),t.xml_pi?a.insert(c,a.firstChild):l(c)),c.value=t.doctype.substring(9,t.doctype.length-1)):c&&c.remove(),c=null,s(a.getAll("meta"),function(e){"Content-Type"==e.attr("http-equiv")&&(c=e)}),t.docencoding?(c||(c=new m("meta",1),c.attr("http-equiv","Content-Type"),c.shortEnded=!0,l(c)),c.attr("content","text/html; charset="+t.docencoding)):c.remove(),c=a.getAll("title")[0],t.title?(c?c.empty():(c=new m("title",1),l(c)),c.append(new m("#text",3)).value=t.title):c&&c.remove(),s("keywords,description,author,copyright,robots".split(","),function(e){var n,i,r=a.getAll("meta"),o=t[e];for(n=0;n"))}function i(){return new tinymce.html.DomParser({validate:!1,root_name:"#document"}).parse(d)}function a(t){function n(e){return e.replace(/<\/?[A-Z]+/g,function(e){return e.toLowerCase()})}var l,a,o,m,u=t.content,f="",g=e.dom;if(!t.selection&&!("raw"==t.format&&d||t.source_view&&e.getParam("fullpage_hide_in_source_view"))){u=u.replace(/<(\/?)BODY/gi,"<$1body"),l=u.indexOf("",l),d=n(u.substring(0,l+1)),a=u.indexOf("\n