diff --git a/e107_plugins/tinymce/admin_config.php b/e107_plugins/tinymce/admin_config.php
deleted file mode 100644
index 2790e3709..000000000
--- a/e107_plugins/tinymce/admin_config.php
+++ /dev/null
@@ -1,668 +0,0 @@
-submitPage($id);
-}
-
-if(varset($_POST['delete']))
-{
- $id = key($_POST['delete']);
- $ef->deleteRecord($id);
- $_GET['mode'] = "list";
-}
-
-if(isset($_POST['edit']) || $id) // define after db changes and before header loads.
-{
- $id = (isset($_POST['edit'])) ? key($_POST['edit']) : $id;
- define("TINYMCE_CONFIG",$id);
-}
-else
-{
- define("TINYMCE_CONFIG",FALSE);
-}
-
-
-require_once(e_ADMIN."auth.php");
-
-if(varset($_GET['mode'])=='create')
-{
- $id = varset($_POST['edit']) ? key($_POST['edit']) : "";
- if($_POST['record_id'])
- {
- $id = $_POST['record_id'];
- }
- $ef->createRecord($id);
-}
-else
-{
- $ef->listRecords();
-}
-
-if(isset($_POST['etrigger_ecolumns']))
-{
- $user_pref['admin_release_columns'] = $_POST['e-columns'];
- save_prefs('user');
-}
-
-
-require_once(e_ADMIN."footer.php");
-
-
-
-class tinymce
-{
- var $fields;
- var $fieldpref;
- var $listQry;
- var $table;
- var $primary;
-
-
- function __construct()
- {
-
- $this->fields = array(
- 'tinymce_id' => array('title'=> ID, 'width'=>'5%', 'forced'=> TRUE, 'primary'=>TRUE),
- 'tinymce_name' => array('title'=> 'name', 'width'=>'auto','type'=>'text'),
- 'tinymce_userclass' => array('title'=> 'class', 'type' => 'array', 'method'=>'tinymce_class', 'width' => 'auto'),
- 'tinymce_plugins' => array('title'=> 'plugins', 'type' => 'array', 'method'=>'tinymce_plugins', 'width' => 'auto'),
- 'tinymce_buttons1' => array('title'=> 'buttons1', 'type' => 'text', 'method'=>'tinymce_buttons', 'methodparms'=>1, 'width' => 'auto'),
- 'tinymce_buttons2' => array('title'=> 'buttons2', 'type' => 'text', 'method'=>'tinymce_buttons', 'methodparms'=>2, 'width' => 'auto'),
- 'tinymce_buttons3' => array('title'=> 'buttons3', 'type' => 'text', 'method'=>'tinymce_buttons', 'methodparms'=>3, 'width' => 'auto', 'thclass' => 'left first'),
- 'tinymce_buttons4' => array('title'=> 'buttons4', 'type' => 'text', 'method'=>'tinymce_buttons', 'methodparms'=>4, 'width' => 'auto', 'thclass' => 'left first'),
- 'tinymce_custom' => array('title'=> 'custom', 'type' => 'text', 'width' => 'auto'),
- 'tinymce_prefs' => array('title'=> 'prefs', 'type' => 'text', 'width' => '10%', 'thclass' => 'center' ),
- 'options' => array('title'=> LAN_OPTIONS, 'forced'=>TRUE, 'width' => '10%', 'thclass' => 'center last')
- );
-
- $this->fieldpref = (varset($user_pref['admin_tinymce_columns'])) ? $user_pref['admin_tinymce_columns'] : array_keys($this->fields);
- $this->table = "tinymce";
- $this->listQry = "SELECT * FROM #tinymce ORDER BY tinymce_id";
- $this->editQry = "SELECT * FROM #tinymce WHERE tinymce_id = {ID}";
- $this->primary = "tinymce_id";
- $this->pluginTitle = "Tinymce";
-
- $this->listCaption = "Tinymce Configs";
- $this->createCaption = LAN_CREATE."/".LAN_EDIT;
-
- }
-
-
-// --------------------------------------------------------------------------
- /**
- * Generic DB Record Listing Function.
- *
- * @param object $mode [optional] - reserved
- * @return void
- */
- function listRecords($mode = FALSE)
- {
- $ns = e107::getRender();
- $sql = e107::getDb();
- $frm = e107::getForm();
-
-
- global $pref;
-
- $emessage = eMessage::getInstance();
-
- $text = "
- ";
-
- $ns->tablerender($this->pluginTitle." :: ".$this->listCaption, $emessage->render().$text);
- }
-
- /**
- * Render Field value (listing page)
- *
- * @param array $key
- * @param array $row
- * @return string
- */
- function renderValue($key, $row)
- {
- $att = $this->fields[$key];
- $frm = e107::getForm();
-
- if($key == "options")
- {
- $id = $this->primary;
- $text = "";
- $text .= "";
- return $text;
- }
-
- if($key == "tinymce_userclass")
- {
- return $frm->uc_label($row[$key]);
- }
-
- if($key == "tinymce_plugins")
- {
- return str_replace(",","
",$row[$key]);
- }
-
- switch($att['type'])
- {
- case 'url':
- return "".$row[$key]."";
- break;
-
- default:
- return $row[$key];
- break;
- }
- return $row[$key] .$att['type'];
- }
-
- /**
- * Render Form Element (edit page)
- *
- * @param array $key
- * @param array $row
- * @return string method's value or HTML input
- */
- function renderElement($key, $row)
- {
- $frm = e107::getForm();
- $att = $this->fields[$key];
- $value = $row[$key];
-
- if($att['method'])
- {
- $meth = $att['method'];
- if(isset($att['methodparms']))
- {
- return $this->$meth($value, $att['methodparms']);
- }
- return $this->$meth($value);
- }
-
-
- return $frm->text($key, $row[$key], 50);
-
- }
-
-
-
- function createRecord($id=FALSE)
- {
- global $frm, $e_userclass, $e_event;
-
- $tp = e107::getParser();
- $ns = e107::getRender();
- $sql = e107::getDb();
- $mes = eMessage::getInstance();
-
- if($id)
- {
- $query = str_replace("{ID}",$id,$this->editQry);
- $sql->db_Select_gen($query);
- $row = $sql->db_Fetch(MYSQL_ASSOC);
- }
- else
- {
- $row = array();
- }
-
- $text = "
- ";
-
- $ns->tablerender($this->pluginTitle." :: ".$this->createCaption,$mes->render(). $text);
- }
-
-
- function tinymce_buttons($curVal,$id)
- {
- return "\n";
- }
-
-
- function tinymce_preview()
- {
- return "";
-
- }
-
- function tinymce_plugins($curVal)
- {
- $fl = e107::getFile();
-
- $curArray = explode(",",$curVal);
-
- if($plug_array = $fl->get_dirs(e_PLUGIN."tinymce/plugins/"))
- {
- sort($plug_array);
- }
-
- $text = "";
-
- foreach($plug_array as $mce_plg)
- {
- $checked = (in_array($mce_plg,$curArray)) ? "checked='checked'" : "";
- $text .= "
$mce_plg
";
- }
-
- $text .= "
";
- return $text;
- }
-
-
- function tinymce_class($curVal)
- {
- $frm = e107::getForm();
- // $cur = explode(",",$curVal);
- $uc_options = "guest,member,admin,main,classes";
- return $frm->uc_checkbox('tinymce_userclass', $curVal, $uc_options);
- }
-
-
-
- /**
- * Generic Save DB Record Function.
- * Insert or Update a table row.
- *
- * @param mixed $id [optional] if set, $id correspond to the primary key of the table
- * @return void
- */
- function submitPage($id = FALSE)
- {
- global $sql, $tp, $e107cache, $admin_log, $e_event;
- $emessage = eMessage::getInstance();
-
- $insert_array = array();
-
- foreach($this->fields as $key=>$att)
- {
- if($att['forced']!=TRUE)
- {
- $insert_array[$key] = $_POST[$key];
- }
-
- if($att['type']=='array')
- {
- $insert_array[$key] = implode(",",$_POST[$key]);
- }
- }
-
- $xml = new SimpleXMLElement('');
- $insertXml = array_flip($insert_array);
- array_walk_recursive($insertXml, array ($xml, 'addChild'));
- $save = $xml->asXML();
-
- file_put_contents(e_SYSTEM."admin.xml",$save);
-
- // echo htmlentities($save);
-
-
- if($id)
- {
- $insert_array['WHERE'] = $this->primary." = ".$id;
- $status = $sql->db_Update($this->table,$insert_array) ? E_MESSAGE_SUCCESS : E_MESSAGE_FAILED;
- $message = LAN_UPDATED;
-
-
-
-
- }
- else
- {
- $status = $sql->db_Insert($this->table,$insert_array) ? E_MESSAGE_SUCCESS : E_MESSAGE_FAILED;
- $message = LAN_CREATED;
- }
-
-
- $emessage->add($message, $status);
- }
-
- function deleteRecord($id)
- {
- if(!$id || !$this->primary || !$this->table)
- {
- return;
- }
-
- $emessage = eMessage::getInstance();
- $sql = e107::getDb();
-
- $query = $this->primary." = ".$id;
- $status = $sql->db_Delete($this->table,$query) ? E_MESSAGE_SUCCESS : E_MESSAGE_FAILED;
- $message = LAN_DELETED;
- $emessage->add($message, $status);
- }
-
- function optionsPage()
- {
- global $e107, $pref, $frm, $emessage;
-
- if(!isset($pref['pageCookieExpire'])) $pref['pageCookieExpire'] = 84600;
-
- //XXX Lan - Options
- $text = "
-
- ";
-
- $e107->ns->tablerender(LAN_OPTIONS, $emessage->render().$text);
- }
-
-
- function saveSettings()
- {
- global $pref, $admin_log, $emessage;
- $temp['listPages'] = $_POST['listPages'];
- $temp['pageCookieExpire'] = $_POST['pageCookieExpire'];
- if ($admin_log->logArrayDiffs($temp, $pref, 'CPAGE_04'))
- {
- save_prefs(); // Only save if changes
- $emessage->add(CUSLAN_45, E_MESSAGE_SUCCESS);
- }
- else
- {
- $emessage->add(CUSLAN_46);
- }
- }
-
-
- function show_options($action)
- {
- $action = varset($_GET['mode'],'list');
-
- $var['list']['text'] = $this->listCaption;
- $var['list']['link'] = e_SELF."?mode=list";
- $var['list']['perm'] = "0";
-
- $var['create']['text'] = $this->createCaption;
- $var['create']['link'] = e_SELF."?mode=create";
- $var['create']['perm'] = 0;
-
-/*
- $var['options']['text'] = LAN_OPTIONS;
- $var['options']['link'] = e_SELF."?options";
- $var['options']['perm'] = "0";*/
-
- e107::getNav()->admin($this->pluginTitle, $action, $var);
- }
-}
-
-function admin_config_adminmenu()
-{
- global $ef;
- global $action;
- $ef->show_options($action);
-}
-
-
-if($_POST['save_settings']) // Needs to be saved before e_meta.php is loaded by auth.php.
-{
- $tpref['customjs'] = $_POST['customjs'];
- $tpref['theme_advanced_buttons1'] = $_POST['theme_advanced_buttons1'];
- $tpref['theme_advanced_buttons2'] = $_POST['theme_advanced_buttons2'];
- $tpref['theme_advanced_buttons3'] = $_POST['theme_advanced_buttons3'];
- $tpref['theme_advanced_buttons4'] = $_POST['theme_advanced_buttons4'];
- $tpref['plugins'] = $_POST['mce_plugins'];
-
- e107::getPlugConfig('tinymce')->setPref($tpref);
- e107::getPlugConfig('tinymce')->save();
-}
-
- $tpref = e107::getPlugConfig('tinymce')->getPref();
-
-
-
-if($_POST['save_settings']) // is there an if $emessage? $emessage->hasMessage doesn't return TRUE.
-{
- $emessage->add(LAN_UPDATED, E_MESSAGE_SUCCESS);
- $e107->ns->tablerender(LAN_UPDATED, $emessage->render());
-}
-
-
- if(!$tpref['theme_advanced_buttons1'])
- {
- $tpref['theme_advanced_buttons1'] = "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect";
- }
-
- if(!$tpref['theme_advanced_buttons2'])
- {
- $tpref['theme_advanced_buttons2'] = "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor";
- }
-
- if(!$tpref['theme_advanced_buttons3'])
- {
- $tpref['theme_advanced_buttons3'] = "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen,emoticons,ibrowser";
- }
-
- if(!$tpref['theme_advanced_buttons4'])
- {
- $tpref['theme_advanced_buttons4'] = "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage";
- }
-
-
-function edit_theme()
-{
- $ns = e107::getRender();
-
-
-
- $text = "";
-
- $ns -> tablerender("TinyMCE Configuration", $text);
-}
-
-
-
-
-
-require_once(e_ADMIN."footer.php");
-
-
-?>
\ No newline at end of file
diff --git a/e107_plugins/tinymce/blank.htm b/e107_plugins/tinymce/blank.htm
deleted file mode 100644
index c1ff8352b..000000000
--- a/e107_plugins/tinymce/blank.htm
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- blank_page
-
-
-
-
-
-
diff --git a/e107_plugins/tinymce/e_meta.php b/e107_plugins/tinymce/e_meta.php
deleted file mode 100644
index 7da9e549b..000000000
--- a/e107_plugins/tinymce/e_meta.php
+++ /dev/null
@@ -1,165 +0,0 @@
-";
- $insert .= "Switch to bbcode<\/a>";
-
- if(e_PAGE == 'mailout.php')
- {
- $insert .= " ".LAN_MAILOUT_16."<\/a>";
- $insert .= "".LAN_MAILOUT_14."<\/a>";
- $insert .= "".LAN_MAILOUT_17."<\/a>";
- $insert .= "".LAN_MAILOUT_18."<\/a>";
- }
-
- $insert .= "');";
-
- define("SWITCH_TO_BB",$insert);
-
- }
- else
- {
- define("SWITCH_TO_BB","");
- }
-
-// print_a($_POST);
-
- //
- e107::js('inline',"
-
- $(function() {
-
-
-
-
-
- $('.e-wysiwyg').each(function() {
-
- var id = $(this).attr('id'); // 'e-wysiwyg';
- ".SWITCH_TO_BB."
- // alert(id);
- $('#bbcode-panel-'+id+'--preview').hide();
-
- });
-
- $('.tinyInsert').click(function() {
-
- var val = $(this).attr('data-value');
- tinyMCE.selectedInstance.execCommand('mceInsertContent',0,val);
- return false;
- });
-
- /*
- $('img.tinyInsertEmote').live('click',function() {
-
- var src = $(this).attr('src');
- alert(src);
- // var html = '
';
- tinyMCE.execCommand('mceInsertRawHTML',false, 'hi there');
- ;
- $('.mceContentBody', window.top.document).tinymce().execCommand('mceInsertContent',false,src);
-
- // tinyMCE.selectedInstance.execCommand('mceInsertContent',0,src);
-
- $('#uiModal').modal('hide');
- return true;
- });*/
-
-
-
-
- // When new tab is added - convert textarea to TinyMce.
- $('.e-tabs-add').on('click',function(){
-
- alert('New Page Added'); // added for delay - quick and dirty work-around. XXX fixme
-
- var idt = $(this).attr('data-target'); // eg. news-body
- var ct = parseInt($('#e-tab-count').val());
- var id = idt + '-' + ct;
- $('#bbcode-panel-'+id+'--preview').hide();
- ".SWITCH_TO_BB."
- tinyMCE.execCommand('mceAddControl', false, id);
- });
-
-
- $('a.e-wysiwyg-toggle').toggle(function(){
- var id = $(this).attr('id'); // eg. news-body
- $('#bbcode-panel-'+id+'--preview').show();
- $(this).text('Switch to wysiwyg');
- tinyMCE.execCommand('mceRemoveControl', false, id);
- }, function () {
- var id = $(this).attr('id');
- $('#bbcode-panel-'+id+'--preview').hide();
- $(this).text('Switch to bbcode');
- tinyMCE.execCommand('mceAddControl', false, id);
- });
-
- $('.e-dialog-save').click(function(){
-
- var html = $('#html_holder').val();
-
- if(html === undefined)
- {
- return;
- }
-
- // tinyMCE.execCommand('mceInsertContent',false,html);
- tinyMCE.execCommand('mceInsertRawHTML',false,html);
- tinyMCEPopup.close();
- });
-
- $('.e-dialog-close').click(function(){
-
- tinyMCEPopup.close();
- });
-
-
-
-
-
-
- });
-
-
-
-
- ","jquery");
-
-
-}
-
-
-?>
\ No newline at end of file
diff --git a/e107_plugins/tinymce/filelist.php b/e107_plugins/tinymce/filelist.php
deleted file mode 100644
index f7672f8c7..000000000
--- a/e107_plugins/tinymce/filelist.php
+++ /dev/null
@@ -1,33 +0,0 @@
-get_files(e_IMAGE."newspost_images/","",$rejecthumb);
-
-$sql->db_Select("download");
- $c = 0;
- while ($row = $sql->db_Fetch()) {
- extract($row);
- $filelist['id'][$c] = $download_id;
- $filelist['url'][$c] = $download_url;
- $filelist['name'][$c] = $download_name;
- $c++;
- }
-
-echo "var tinyMCELinkList = new Array(";
-for ($i=0; $i
\ No newline at end of file
diff --git a/e107_plugins/tinymce/images/icon_16.png b/e107_plugins/tinymce/images/icon_16.png
deleted file mode 100644
index ea6fb21e9..000000000
Binary files a/e107_plugins/tinymce/images/icon_16.png and /dev/null differ
diff --git a/e107_plugins/tinymce/images/icon_32.png b/e107_plugins/tinymce/images/icon_32.png
deleted file mode 100644
index dc81e96ac..000000000
Binary files a/e107_plugins/tinymce/images/icon_32.png and /dev/null differ
diff --git a/e107_plugins/tinymce/index.html b/e107_plugins/tinymce/index.html
deleted file mode 100644
index e69de29bb..000000000
diff --git a/e107_plugins/tinymce/jquery.tinymce.js b/e107_plugins/tinymce/jquery.tinymce.js
deleted file mode 100644
index b4d0c3977..000000000
--- a/e107_plugins/tinymce/jquery.tinymce.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(c){var b,e,a=[],d=window;c.fn.tinymce=function(j){var p=this,g,k,h,m,i,l="",n="";if(!p.length){return p}if(!j){return tinyMCE.get(p[0].id)}p.css("visibility","hidden");function o(){var r=[],q=0;if(f){f();f=null}p.each(function(t,u){var s,w=u.id,v=j.oninit;if(!w){u.id=w=tinymce.DOM.uniqueId()}s=new tinymce.Editor(w,j);r.push(s);s.onInit.add(function(){var x,y=v;p.css("visibility","");if(v){if(++q==r.length){if(tinymce.is(y,"string")){x=(y.indexOf(".")===-1)?null:tinymce.resolve(y.replace(/\.\w+$/,""));y=tinymce.resolve(y)}y.apply(x||tinymce,r)}}})});c.each(r,function(t,s){s.render()})}if(!d.tinymce&&!e&&(g=j.script_url)){e=1;h=g.substring(0,g.lastIndexOf("/"));if(/_(src|dev)\.js/g.test(g)){n="_src"}m=g.lastIndexOf("?");if(m!=-1){l=g.substring(m+1)}d.tinyMCEPreInit=d.tinyMCEPreInit||{base:h,suffix:n,query:l};if(g.indexOf("gzip")!=-1){i=j.language||"en";g=g+(/\?/.test(g)?"&":"?")+"js=true&core=true&suffix="+escape(n)+"&themes="+escape(j.theme)+"&plugins="+escape(j.plugins)+"&languages="+i;if(!d.tinyMCE_GZ){tinyMCE_GZ={start:function(){tinymce.suffix=n;function q(r){tinymce.ScriptLoader.markDone(tinyMCE.baseURI.toAbsolute(r))}q("langs/"+i+".js");q("themes/"+j.theme+"/editor_template"+n+".js");q("themes/"+j.theme+"/langs/"+i+".js");c.each(j.plugins.split(","),function(s,r){if(r){q("plugins/"+r+"/editor_plugin"+n+".js");q("plugins/"+r+"/langs/"+i+".js")}})},end:function(){}}}}c.ajax({type:"GET",url:g,dataType:"script",cache:true,success:function(){tinymce.dom.Event.domLoaded=1;e=2;if(j.script_loaded){j.script_loaded()}o();c.each(a,function(q,r){r()})}})}else{if(e===1){a.push(o)}else{o()}}return p};c.extend(c.expr[":"],{tinymce:function(g){return !!(g.id&&"tinyMCE" in window&&tinyMCE.get(g.id))}});function f(){function i(l){if(l==="remove"){this.each(function(n,o){var m=h(o);if(m){m.remove()}})}this.find("span.mceEditor,div.mceEditor").each(function(n,o){var m=tinyMCE.get(o.id.replace(/_parent$/,""));if(m){m.remove()}})}function k(n){var m=this,l;if(n!==b){i.call(m);m.each(function(p,q){var o;if(o=tinyMCE.get(q.id)){o.setContent(n)}})}else{if(m.length>0){if(l=tinyMCE.get(m[0].id)){return l.getContent()}}}}function h(m){var l=null;(m)&&(m.id)&&(d.tinymce)&&(l=tinyMCE.get(m.id));return l}function g(l){return !!((l)&&(l.length)&&(d.tinymce)&&(l.is(":tinymce")))}var j={};c.each(["text","html","val"],function(n,l){var o=j[l]=c.fn[l],m=(l==="text");c.fn[l]=function(s){var p=this;if(!g(p)){return o.apply(p,arguments)}if(s!==b){k.call(p.filter(":tinymce"),s);o.apply(p.not(":tinymce"),arguments);return p}else{var r="";var q=arguments;(m?p:p.eq(0)).each(function(u,v){var t=h(v);r+=t?(m?t.getContent().replace(/<(?:"[^"]*"|'[^']*'|[^'">])*>/g,""):t.getContent({save:true})):o.apply(c(v),q)});return r}}});c.each(["append","prepend"],function(n,m){var o=j[m]=c.fn[m],l=(m==="prepend");c.fn[m]=function(q){var p=this;if(!g(p)){return o.apply(p,arguments)}if(q!==b){p.filter(":tinymce").each(function(s,t){var r=h(t);r&&r.setContent(l?q+r.getContent():r.getContent()+q)});o.apply(p.not(":tinymce"),arguments);return p}}});c.each(["remove","replaceWith","replaceAll","empty"],function(m,l){var n=j[l]=c.fn[l];c.fn[l]=function(){i.call(this,l);return n.apply(this,arguments)}});j.attr=c.fn.attr;c.fn.attr=function(o,q){var m=this,n=arguments;if((!o)||(o!=="value")||(!g(m))){if(q!==b){return j.attr.apply(m,n)}else{return j.attr.apply(m,n)}}if(q!==b){k.call(m.filter(":tinymce"),q);j.attr.apply(m.not(":tinymce"),n);return m}else{var p=m[0],l=h(p);return l?l.getContent({save:true}):j.attr.apply(c(p),n)}}}})(jQuery);
\ No newline at end of file
diff --git a/e107_plugins/tinymce/langs/en.js b/e107_plugins/tinymce/langs/en.js
deleted file mode 100644
index 19324f74c..000000000
--- a/e107_plugins/tinymce/langs/en.js
+++ /dev/null
@@ -1 +0,0 @@
-tinyMCE.addI18n({en:{common:{"more_colors":"More Colors...","invalid_data":"Error: Invalid values entered, these are marked in red.","popup_blocked":"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.","clipboard_no_support":"Currently not supported by your browser, use keyboard shortcuts instead.","clipboard_msg":"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?","not_set":"-- Not Set --","class_name":"Class",browse:"Browse",close:"Close",cancel:"Cancel",update:"Update",insert:"Insert",apply:"Apply","edit_confirm":"Do you want to use the WYSIWYG mode for this textarea?","invalid_data_number":"{#field} must be a number","invalid_data_min":"{#field} must be a number greater than {#min}","invalid_data_size":"{#field} must be a number or percentage",value:"(value)"},contextmenu:{full:"Full",right:"Right",center:"Center",left:"Left",align:"Alignment"},insertdatetime:{"day_short":"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun","day_long":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday","months_short":"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec","months_long":"January,February,March,April,May,June,July,August,September,October,November,December","inserttime_desc":"Insert Time","insertdate_desc":"Insert Date","time_fmt":"%H:%M:%S","date_fmt":"%Y-%m-%d"},print:{"print_desc":"Print"},preview:{"preview_desc":"Preview"},directionality:{"rtl_desc":"Direction Right to Left","ltr_desc":"Direction Left to Right"},layer:{content:"New layer...","absolute_desc":"Toggle Absolute Positioning","backward_desc":"Move Backward","forward_desc":"Move Forward","insertlayer_desc":"Insert New Layer"},save:{"save_desc":"Save","cancel_desc":"Cancel All Changes"},nonbreaking:{"nonbreaking_desc":"Insert Non-Breaking Space Character"},iespell:{download:"ieSpell not detected. Do you want to install it now?","iespell_desc":"Check Spelling"},advhr:{"delta_height":"","delta_width":"","advhr_desc":"Insert Horizontal Line"},emotions:{"delta_height":"","delta_width":"","emotions_desc":"Emotions"},searchreplace:{"replace_desc":"Find/Replace","delta_width":"","delta_height":"","search_desc":"Find"},advimage:{"delta_width":"","image_desc":"Insert/Edit Image","delta_height":""},advlink:{"delta_height":"","delta_width":"","link_desc":"Insert/Edit Link"},xhtmlxtras:{"attribs_delta_height":"","attribs_delta_width":"","ins_delta_height":"","ins_delta_width":"","del_delta_height":"","del_delta_width":"","acronym_delta_height":"","acronym_delta_width":"","abbr_delta_height":"","abbr_delta_width":"","cite_delta_height":"","cite_delta_width":"","attribs_desc":"Insert/Edit Attributes","ins_desc":"Insertion","del_desc":"Deletion","acronym_desc":"Acronym","abbr_desc":"Abbreviation","cite_desc":"Citation"},style:{"delta_height":"","delta_width":"",desc:"Edit CSS Style"},paste:{"plaintext_mode_stick":"Paste is now in plain text mode. Click again to toggle back to regular paste mode.","plaintext_mode":"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.","selectall_desc":"Select All","paste_word_desc":"Paste from Word","paste_text_desc":"Paste as Plain Text"},"paste_dlg":{"word_title":"Use Ctrl+V on your keyboard to paste the text into the window.","text_linebreaks":"Keep Linebreaks","text_title":"Use Ctrl+V on your keyboard to paste the text into the window."},table:{"merge_cells_delta_height":"","merge_cells_delta_width":"","table_delta_height":"","table_delta_width":"","cellprops_delta_height":"","cellprops_delta_width":"","rowprops_delta_height":"","rowprops_delta_width":"",cell:"Cell",col:"Column",row:"Row",del:"Delete Table","copy_row_desc":"Copy Table Row","cut_row_desc":"Cut Table Row","paste_row_after_desc":"Paste Table Row After","paste_row_before_desc":"Paste Table Row Before","props_desc":"Table Properties","cell_desc":"Table Cell Properties","row_desc":"Table Row Properties","merge_cells_desc":"Merge Table Cells","split_cells_desc":"Split Merged Table Cells","delete_col_desc":"Delete Column","col_after_desc":"Insert Column After","col_before_desc":"Insert Column Before","delete_row_desc":"Delete Row","row_after_desc":"Insert Row After","row_before_desc":"Insert Row Before",desc:"Insert/Edit Table"},autosave:{"warning_message":"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?","restore_content":"Restore auto-saved content.","unload_msg":"The changes you made will be lost if you navigate away from this page."},fullscreen:{desc:"Toggle Full Screen Mode"},media:{"delta_height":"","delta_width":"",edit:"Edit Embedded Media",desc:"Insert/Edit Embedded Media"},fullpage:{desc:"Document Properties","delta_width":"","delta_height":""},template:{desc:"Insert Predefined Template Content"},visualchars:{desc:"Show/Hide Visual Control Characters"},spellchecker:{desc:"Toggle Spell Checker",menu:"Spell Checker Settings","ignore_word":"Ignore Word","ignore_words":"Ignore All",langs:"Languages",wait:"Please wait...",sug:"Suggestions","no_sug":"No Suggestions","no_mpell":"No misspellings found.","learn_word":"Learn word"},pagebreak:{desc:"Insert Page Break for Printing"},advlist:{types:"Types",def:"Default","lower_alpha":"Lower Alpha","lower_greek":"Lower Greek","lower_roman":"Lower Roman","upper_alpha":"Upper Alpha","upper_roman":"Upper Roman",circle:"Circle",disc:"Disc",square:"Square"},colors:{"333300":"Dark olive","993300":"Burnt orange","000000":"Black","003300":"Dark green","003366":"Dark azure","000080":"Navy Blue","333399":"Indigo","333333":"Very dark gray","800000":"Maroon",FF6600:"Orange","808000":"Olive","008000":"Green","008080":"Teal","0000FF":"Blue","666699":"Grayish blue","808080":"Gray",FF0000:"Red",FF9900:"Amber","99CC00":"Yellow green","339966":"Sea green","33CCCC":"Turquoise","3366FF":"Royal blue","800080":"Purple","999999":"Medium gray",FF00FF:"Magenta",FFCC00:"Gold",FFFF00:"Yellow","00FF00":"Lime","00FFFF":"Aqua","00CCFF":"Sky blue","993366":"Brown",C0C0C0:"Silver",FF99CC:"Pink",FFCC99:"Peach",FFFF99:"Light yellow",CCFFCC:"Pale green",CCFFFF:"Pale cyan","99CCFF":"Light sky blue",CC99FF:"Plum",FFFFFF:"White"},aria:{"rich_text_area":"Rich Text Area"},wordcount:{words:"Words:"},visualblocks:{desc:'Show/hide block elements'}}});
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugin.xml b/e107_plugins/tinymce/plugin.xml
deleted file mode 100644
index 4a5d7d48a..000000000
--- a/e107_plugins/tinymce/plugin.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
- Wysiwyg Text-Area Replacement
- misc
-
-
-
-
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/advhr/css/advhr.css b/e107_plugins/tinymce/plugins/advhr/css/advhr.css
deleted file mode 100644
index 0e2283498..000000000
--- a/e107_plugins/tinymce/plugins/advhr/css/advhr.css
+++ /dev/null
@@ -1,5 +0,0 @@
-input.radio {border:1px none #000; background:transparent; vertical-align:middle;}
-.panel_wrapper div.current {height:80px;}
-#width {width:50px; vertical-align:middle;}
-#width2 {width:50px; vertical-align:middle;}
-#size {width:100px;}
diff --git a/e107_plugins/tinymce/plugins/advhr/editor_plugin.js b/e107_plugins/tinymce/plugins/advhr/editor_plugin.js
deleted file mode 100644
index 4d3b062de..000000000
--- a/e107_plugins/tinymce/plugins/advhr/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/advhr/editor_plugin_src.js b/e107_plugins/tinymce/plugins/advhr/editor_plugin_src.js
deleted file mode 100644
index 0c652d330..000000000
--- a/e107_plugins/tinymce/plugins/advhr/editor_plugin_src.js
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- tinymce.create('tinymce.plugins.AdvancedHRPlugin', {
- init : function(ed, url) {
- // Register commands
- ed.addCommand('mceAdvancedHr', function() {
- ed.windowManager.open({
- file : url + '/rule.htm',
- width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)),
- height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)),
- inline : 1
- }, {
- plugin_url : url
- });
- });
-
- // Register buttons
- ed.addButton('advhr', {
- title : 'advhr.advhr_desc',
- cmd : 'mceAdvancedHr'
- });
-
- ed.onNodeChange.add(function(ed, cm, n) {
- cm.setActive('advhr', n.nodeName == 'HR');
- });
-
- ed.onClick.add(function(ed, e) {
- e = e.target;
-
- if (e.nodeName === 'HR')
- ed.selection.select(e);
- });
- },
-
- getInfo : function() {
- return {
- longname : 'Advanced HR',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin);
-})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/advhr/js/rule.js b/e107_plugins/tinymce/plugins/advhr/js/rule.js
deleted file mode 100644
index b6cbd66c7..000000000
--- a/e107_plugins/tinymce/plugins/advhr/js/rule.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var AdvHRDialog = {
- init : function(ed) {
- var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w;
-
- w = dom.getAttrib(n, 'width');
- f.width.value = w ? parseInt(w) : (dom.getStyle('width') || '');
- f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || '';
- f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width');
- selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px');
- },
-
- update : function() {
- var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = '';
-
- h = '
';
-
- ed.execCommand("mceInsertContent", false, h);
- tinyMCEPopup.close();
- }
-};
-
-tinyMCEPopup.requireLangPack();
-tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog);
diff --git a/e107_plugins/tinymce/plugins/advhr/langs/en_dlg.js b/e107_plugins/tinymce/plugins/advhr/langs/en_dlg.js
deleted file mode 100644
index 0c3bf15e6..000000000
--- a/e107_plugins/tinymce/plugins/advhr/langs/en_dlg.js
+++ /dev/null
@@ -1 +0,0 @@
-tinyMCE.addI18n('en.advhr_dlg',{size:"Height",noshade:"No Shadow",width:"Width",normal:"Normal",widthunits:"Units"});
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/advhr/rule.htm b/e107_plugins/tinymce/plugins/advhr/rule.htm
deleted file mode 100644
index 843e1f8f0..000000000
--- a/e107_plugins/tinymce/plugins/advhr/rule.htm
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
- {#advhr.advhr_desc}
-
-
-
-
-
-
-
-
-
-
diff --git a/e107_plugins/tinymce/plugins/advimage/css/advimage.css b/e107_plugins/tinymce/plugins/advimage/css/advimage.css
deleted file mode 100644
index 0a6251a69..000000000
--- a/e107_plugins/tinymce/plugins/advimage/css/advimage.css
+++ /dev/null
@@ -1,13 +0,0 @@
-#src_list, #over_list, #out_list {width:280px;}
-.mceActionPanel {margin-top:7px;}
-.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;}
-.checkbox {border:0;}
-.panel_wrapper div.current {height:305px;}
-#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;}
-#align, #classlist {width:150px;}
-#width, #height {vertical-align:middle; width:50px; text-align:center;}
-#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;}
-#class_list {width:180px;}
-input {width: 280px;}
-#constrain, #onmousemovecheck {width:auto;}
-#id, #dir, #lang, #usemap, #longdesc {width:200px;}
diff --git a/e107_plugins/tinymce/plugins/advimage/editor_plugin.js b/e107_plugins/tinymce/plugins/advimage/editor_plugin.js
deleted file mode 100644
index d613a6139..000000000
--- a/e107_plugins/tinymce/plugins/advimage/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class","").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/advimage/editor_plugin_src.js b/e107_plugins/tinymce/plugins/advimage/editor_plugin_src.js
deleted file mode 100644
index d2678cbcf..000000000
--- a/e107_plugins/tinymce/plugins/advimage/editor_plugin_src.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- tinymce.create('tinymce.plugins.AdvancedImagePlugin', {
- init : function(ed, url) {
- // Register commands
- ed.addCommand('mceAdvImage', function() {
- // Internal image object like a flash placeholder
- if (ed.dom.getAttrib(ed.selection.getNode(), 'class', '').indexOf('mceItem') != -1)
- return;
-
- ed.windowManager.open({
- file : url + '/image.htm',
- width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)),
- height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)),
- inline : 1
- }, {
- plugin_url : url
- });
- });
-
- // Register buttons
- ed.addButton('image', {
- title : 'advimage.image_desc',
- cmd : 'mceAdvImage'
- });
- },
-
- getInfo : function() {
- return {
- longname : 'Advanced image',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin);
-})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/advimage/image.htm b/e107_plugins/tinymce/plugins/advimage/image.htm
deleted file mode 100644
index ed16b3d4a..000000000
--- a/e107_plugins/tinymce/plugins/advimage/image.htm
+++ /dev/null
@@ -1,235 +0,0 @@
-
-
-
- {#advimage_dlg.dialog_title}
-
-
-
-
-
-
-
-
-
- {#advimage_dlg.dialog_title}
-
-
-
diff --git a/e107_plugins/tinymce/plugins/advimage/img/sample.gif b/e107_plugins/tinymce/plugins/advimage/img/sample.gif
deleted file mode 100644
index 53bf6890b..000000000
Binary files a/e107_plugins/tinymce/plugins/advimage/img/sample.gif and /dev/null differ
diff --git a/e107_plugins/tinymce/plugins/advimage/js/image.js b/e107_plugins/tinymce/plugins/advimage/js/image.js
deleted file mode 100644
index f0b7c6eef..000000000
--- a/e107_plugins/tinymce/plugins/advimage/js/image.js
+++ /dev/null
@@ -1,464 +0,0 @@
-var ImageDialog = {
- preInit : function() {
- var url;
-
- tinyMCEPopup.requireLangPack();
-
- if (url = tinyMCEPopup.getParam("external_image_list_url"))
- document.write('');
- },
-
- init : function(ed) {
- var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(), fl = tinyMCEPopup.getParam('external_image_list', 'tinyMCEImageList');
-
- tinyMCEPopup.resizeToInnerSize();
- this.fillClassList('class_list');
- this.fillFileList('src_list', fl);
- this.fillFileList('over_list', fl);
- this.fillFileList('out_list', fl);
- TinyMCE_EditableSelects.init();
-
- if (n.nodeName == 'IMG') {
- nl.src.value = dom.getAttrib(n, 'src');
- nl.width.value = dom.getAttrib(n, 'width');
- nl.height.value = dom.getAttrib(n, 'height');
- nl.alt.value = dom.getAttrib(n, 'alt');
- nl.title.value = dom.getAttrib(n, 'title');
- nl.vspace.value = this.getAttrib(n, 'vspace');
- nl.hspace.value = this.getAttrib(n, 'hspace');
- nl.border.value = this.getAttrib(n, 'border');
- selectByValue(f, 'align', this.getAttrib(n, 'align'));
- selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true);
- nl.style.value = dom.getAttrib(n, 'style');
- nl.id.value = dom.getAttrib(n, 'id');
- nl.dir.value = dom.getAttrib(n, 'dir');
- nl.lang.value = dom.getAttrib(n, 'lang');
- nl.usemap.value = dom.getAttrib(n, 'usemap');
- nl.longdesc.value = dom.getAttrib(n, 'longdesc');
- nl.insert.value = ed.getLang('update');
-
- if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover')))
- nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
-
- if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout')))
- nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
-
- if (ed.settings.inline_styles) {
- // Move attribs to styles
- if (dom.getAttrib(n, 'align'))
- this.updateStyle('align');
-
- if (dom.getAttrib(n, 'hspace'))
- this.updateStyle('hspace');
-
- if (dom.getAttrib(n, 'border'))
- this.updateStyle('border');
-
- if (dom.getAttrib(n, 'vspace'))
- this.updateStyle('vspace');
- }
- }
-
- // Setup browse button
- document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image');
- if (isVisible('srcbrowser'))
- document.getElementById('src').style.width = '260px';
-
- // Setup browse button
- document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image');
- if (isVisible('overbrowser'))
- document.getElementById('onmouseoversrc').style.width = '260px';
-
- // Setup browse button
- document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image');
- if (isVisible('outbrowser'))
- document.getElementById('onmouseoutsrc').style.width = '260px';
-
- // If option enabled default contrain proportions to checked
- if (ed.getParam("advimage_constrain_proportions", true))
- f.constrain.checked = true;
-
- // Check swap image if valid data
- if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value)
- this.setSwapImage(true);
- else
- this.setSwapImage(false);
-
- this.changeAppearance();
- this.showPreviewImage(nl.src.value, 1);
- },
-
- insert : function(file, title) {
- var ed = tinyMCEPopup.editor, t = this, f = document.forms[0];
-
- if (f.src.value === '') {
- if (ed.selection.getNode().nodeName == 'IMG') {
- ed.dom.remove(ed.selection.getNode());
- ed.execCommand('mceRepaint');
- }
-
- tinyMCEPopup.close();
- return;
- }
-
- if (tinyMCEPopup.getParam("accessibility_warnings", 1)) {
- if (!f.alt.value) {
- tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) {
- if (s)
- t.insertAndClose();
- });
-
- return;
- }
- }
-
- t.insertAndClose();
- },
-
- insertAndClose : function() {
- var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el;
-
- tinyMCEPopup.restoreSelection();
-
- // Fixes crash in Safari
- if (tinymce.isWebKit)
- ed.getWin().focus();
-
- if (!ed.settings.inline_styles) {
- args = {
- vspace : nl.vspace.value,
- hspace : nl.hspace.value,
- border : nl.border.value,
- align : getSelectValue(f, 'align')
- };
- } else {
- // Remove deprecated values
- args = {
- vspace : '',
- hspace : '',
- border : '',
- align : ''
- };
- }
-
- tinymce.extend(args, {
- src : nl.src.value.replace(/ /g, '%20'),
- width : nl.width.value,
- height : nl.height.value,
- alt : nl.alt.value,
- title : nl.title.value,
- 'class' : getSelectValue(f, 'class_list'),
- style : nl.style.value,
- id : nl.id.value,
- dir : nl.dir.value,
- lang : nl.lang.value,
- usemap : nl.usemap.value,
- longdesc : nl.longdesc.value
- });
-
- args.onmouseover = args.onmouseout = '';
-
- if (f.onmousemovecheck.checked) {
- if (nl.onmouseoversrc.value)
- args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';";
-
- if (nl.onmouseoutsrc.value)
- args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';";
- }
-
- el = ed.selection.getNode();
-
- if (el && el.nodeName == 'IMG') {
- ed.dom.setAttribs(el, args);
- } else {
- tinymce.each(args, function(value, name) {
- if (value === "") {
- delete args[name];
- }
- });
-
- ed.execCommand('mceInsertContent', false, tinyMCEPopup.editor.dom.createHTML('img', args), {skip_undo : 1});
- ed.undoManager.add();
- }
-
- tinyMCEPopup.editor.execCommand('mceRepaint');
- tinyMCEPopup.editor.focus();
- tinyMCEPopup.close();
- },
-
- getAttrib : function(e, at) {
- var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2;
-
- if (ed.settings.inline_styles) {
- switch (at) {
- case 'align':
- if (v = dom.getStyle(e, 'float'))
- return v;
-
- if (v = dom.getStyle(e, 'vertical-align'))
- return v;
-
- break;
-
- case 'hspace':
- v = dom.getStyle(e, 'margin-left')
- v2 = dom.getStyle(e, 'margin-right');
-
- if (v && v == v2)
- return parseInt(v.replace(/[^0-9]/g, ''));
-
- break;
-
- case 'vspace':
- v = dom.getStyle(e, 'margin-top')
- v2 = dom.getStyle(e, 'margin-bottom');
- if (v && v == v2)
- return parseInt(v.replace(/[^0-9]/g, ''));
-
- break;
-
- case 'border':
- v = 0;
-
- tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) {
- sv = dom.getStyle(e, 'border-' + sv + '-width');
-
- // False or not the same as prev
- if (!sv || (sv != v && v !== 0)) {
- v = 0;
- return false;
- }
-
- if (sv)
- v = sv;
- });
-
- if (v)
- return parseInt(v.replace(/[^0-9]/g, ''));
-
- break;
- }
- }
-
- if (v = dom.getAttrib(e, at))
- return v;
-
- return '';
- },
-
- setSwapImage : function(st) {
- var f = document.forms[0];
-
- f.onmousemovecheck.checked = st;
- setBrowserDisabled('overbrowser', !st);
- setBrowserDisabled('outbrowser', !st);
-
- if (f.over_list)
- f.over_list.disabled = !st;
-
- if (f.out_list)
- f.out_list.disabled = !st;
-
- f.onmouseoversrc.disabled = !st;
- f.onmouseoutsrc.disabled = !st;
- },
-
- fillClassList : function(id) {
- var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
-
- if (v = tinyMCEPopup.getParam('theme_advanced_styles')) {
- cl = [];
-
- tinymce.each(v.split(';'), function(v) {
- var p = v.split('=');
-
- cl.push({'title' : p[0], 'class' : p[1]});
- });
- } else
- cl = tinyMCEPopup.editor.dom.getClasses();
-
- if (cl.length > 0) {
- lst.options.length = 0;
- lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
-
- tinymce.each(cl, function(o) {
- lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']);
- });
- } else
- dom.remove(dom.getParent(id, 'tr'));
- },
-
- fillFileList : function(id, l) {
- var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
-
- l = typeof(l) === 'function' ? l() : window[l];
- lst.options.length = 0;
-
- if (l && l.length > 0) {
- lst.options[lst.options.length] = new Option('', '');
-
- tinymce.each(l, function(o) {
- lst.options[lst.options.length] = new Option(o[0], o[1]);
- });
- } else
- dom.remove(dom.getParent(id, 'tr'));
- },
-
- resetImageData : function() {
- var f = document.forms[0];
-
- f.elements.width.value = f.elements.height.value = '';
- },
-
- updateImageData : function(img, st) {
- var f = document.forms[0];
-
- if (!st) {
- f.elements.width.value = img.width;
- f.elements.height.value = img.height;
- }
-
- this.preloadImg = img;
- },
-
- changeAppearance : function() {
- var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg');
-
- if (img) {
- if (ed.getParam('inline_styles')) {
- ed.dom.setAttrib(img, 'style', f.style.value);
- } else {
- img.align = f.align.value;
- img.border = f.border.value;
- img.hspace = f.hspace.value;
- img.vspace = f.vspace.value;
- }
- }
- },
-
- changeHeight : function() {
- var f = document.forms[0], tp, t = this;
-
- if (!f.constrain.checked || !t.preloadImg) {
- return;
- }
-
- if (f.width.value == "" || f.height.value == "")
- return;
-
- tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height;
- f.height.value = tp.toFixed(0);
- },
-
- changeWidth : function() {
- var f = document.forms[0], tp, t = this;
-
- if (!f.constrain.checked || !t.preloadImg) {
- return;
- }
-
- if (f.width.value == "" || f.height.value == "")
- return;
-
- tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width;
- f.width.value = tp.toFixed(0);
- },
-
- updateStyle : function(ty) {
- var dom = tinyMCEPopup.dom, b, bStyle, bColor, v, isIE = tinymce.isIE, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value});
-
- if (tinyMCEPopup.editor.settings.inline_styles) {
- // Handle align
- if (ty == 'align') {
- dom.setStyle(img, 'float', '');
- dom.setStyle(img, 'vertical-align', '');
-
- v = getSelectValue(f, 'align');
- if (v) {
- if (v == 'left' || v == 'right')
- dom.setStyle(img, 'float', v);
- else
- img.style.verticalAlign = v;
- }
- }
-
- // Handle border
- if (ty == 'border') {
- b = img.style.border ? img.style.border.split(' ') : [];
- bStyle = dom.getStyle(img, 'border-style');
- bColor = dom.getStyle(img, 'border-color');
-
- dom.setStyle(img, 'border', '');
-
- v = f.border.value;
- if (v || v == '0') {
- if (v == '0')
- img.style.border = isIE ? '0' : '0 none none';
- else {
- var isOldIE = tinymce.isIE && (!document.documentMode || document.documentMode < 9);
-
- if (b.length == 3 && b[isOldIE ? 2 : 1])
- bStyle = b[isOldIE ? 2 : 1];
- else if (!bStyle || bStyle == 'none')
- bStyle = 'solid';
- if (b.length == 3 && b[isIE ? 0 : 2])
- bColor = b[isOldIE ? 0 : 2];
- else if (!bColor || bColor == 'none')
- bColor = 'black';
- img.style.border = v + 'px ' + bStyle + ' ' + bColor;
- }
- }
- }
-
- // Handle hspace
- if (ty == 'hspace') {
- dom.setStyle(img, 'marginLeft', '');
- dom.setStyle(img, 'marginRight', '');
-
- v = f.hspace.value;
- if (v) {
- img.style.marginLeft = v + 'px';
- img.style.marginRight = v + 'px';
- }
- }
-
- // Handle vspace
- if (ty == 'vspace') {
- dom.setStyle(img, 'marginTop', '');
- dom.setStyle(img, 'marginBottom', '');
-
- v = f.vspace.value;
- if (v) {
- img.style.marginTop = v + 'px';
- img.style.marginBottom = v + 'px';
- }
- }
-
- // Merge
- dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText), 'img');
- }
- },
-
- changeMouseMove : function() {
- },
-
- showPreviewImage : function(u, st) {
- if (!u) {
- tinyMCEPopup.dom.setHTML('prev', '');
- return;
- }
-
- if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true))
- this.resetImageData();
-
- u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u);
-
- if (!st)
- tinyMCEPopup.dom.setHTML('prev', '
');
- else
- tinyMCEPopup.dom.setHTML('prev', '
');
- }
-};
-
-ImageDialog.preInit();
-tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog);
diff --git a/e107_plugins/tinymce/plugins/advimage/langs/en_dlg.js b/e107_plugins/tinymce/plugins/advimage/langs/en_dlg.js
deleted file mode 100644
index 5f122e2cd..000000000
--- a/e107_plugins/tinymce/plugins/advimage/langs/en_dlg.js
+++ /dev/null
@@ -1 +0,0 @@
-tinyMCE.addI18n('en.advimage_dlg',{"image_list":"Image List","align_right":"Right","align_left":"Left","align_textbottom":"Text Bottom","align_texttop":"Text Top","align_bottom":"Bottom","align_middle":"Middle","align_top":"Top","align_baseline":"Baseline",align:"Alignment",hspace:"Horizontal Space",vspace:"Vertical Space",dimensions:"Dimensions",border:"Border",list:"Image List",alt:"Image Description",src:"Image URL","dialog_title":"Insert/Edit Image","missing_alt":"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.","example_img":"Appearance Preview Image",misc:"Miscellaneous",mouseout:"For Mouse Out",mouseover:"For Mouse Over","alt_image":"Alternative Image","swap_image":"Swap Image",map:"Image Map",id:"ID",rtl:"Right to Left",ltr:"Left to Right",classes:"Classes",style:"Style","long_desc":"Long Description Link",langcode:"Language Code",langdir:"Language Direction","constrain_proportions":"Constrain Proportions",preview:"Preview",title:"Title",general:"General","tab_advanced":"Advanced","tab_appearance":"Appearance","tab_general":"General",width:"Width",height:"Height"});
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/advlink/css/advlink.css b/e107_plugins/tinymce/plugins/advlink/css/advlink.css
deleted file mode 100644
index 14364316a..000000000
--- a/e107_plugins/tinymce/plugins/advlink/css/advlink.css
+++ /dev/null
@@ -1,8 +0,0 @@
-.mceLinkList, .mceAnchorList, #targetlist {width:280px;}
-.mceActionPanel {margin-top:7px;}
-.panel_wrapper div.current {height:320px;}
-#classlist, #title, #href {width:280px;}
-#popupurl, #popupname {width:200px;}
-#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;}
-#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;}
-#events_panel input {width:200px;}
diff --git a/e107_plugins/tinymce/plugins/advlink/editor_plugin.js b/e107_plugins/tinymce/plugins/advlink/editor_plugin.js
deleted file mode 100644
index 983fe5a9c..000000000
--- a/e107_plugins/tinymce/plugins/advlink/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/advlink/editor_plugin_src.js b/e107_plugins/tinymce/plugins/advlink/editor_plugin_src.js
deleted file mode 100644
index 14e46a762..000000000
--- a/e107_plugins/tinymce/plugins/advlink/editor_plugin_src.js
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- tinymce.create('tinymce.plugins.AdvancedLinkPlugin', {
- init : function(ed, url) {
- this.editor = ed;
-
- // Register commands
- ed.addCommand('mceAdvLink', function() {
- var se = ed.selection;
-
- // No selection and not in link
- if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A'))
- return;
-
- ed.windowManager.open({
- file : url + '/link.htm',
- width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)),
- height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)),
- inline : 1
- }, {
- plugin_url : url
- });
- });
-
- // Register buttons
- ed.addButton('link', {
- title : 'advlink.link_desc',
- cmd : 'mceAdvLink'
- });
-
- ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink');
-
- ed.onNodeChange.add(function(ed, cm, n, co) {
- cm.setDisabled('link', co && n.nodeName != 'A');
- cm.setActive('link', n.nodeName == 'A' && !n.name);
- });
- },
-
- getInfo : function() {
- return {
- longname : 'Advanced link',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin);
-})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/advlink/js/advlink.js b/e107_plugins/tinymce/plugins/advlink/js/advlink.js
deleted file mode 100644
index f013aac1e..000000000
--- a/e107_plugins/tinymce/plugins/advlink/js/advlink.js
+++ /dev/null
@@ -1,543 +0,0 @@
-/* Functions for the advlink plugin popup */
-
-tinyMCEPopup.requireLangPack();
-
-var templates = {
- "window.open" : "window.open('${url}','${target}','${options}')"
-};
-
-function preinit() {
- var url;
-
- if (url = tinyMCEPopup.getParam("external_link_list_url"))
- document.write('');
-}
-
-function changeClass() {
- var f = document.forms[0];
-
- f.classes.value = getSelectValue(f, 'classlist');
-}
-
-function init() {
- tinyMCEPopup.resizeToInnerSize();
-
- var formObj = document.forms[0];
- var inst = tinyMCEPopup.editor;
- var elm = inst.selection.getNode();
- var action = "insert";
- var html;
-
- document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink');
- document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink');
- document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target');
-
- // Link list
- html = getLinkListHTML('linklisthref','href');
- if (html == "")
- document.getElementById("linklisthrefrow").style.display = 'none';
- else
- document.getElementById("linklisthrefcontainer").innerHTML = html;
-
- // Anchor list
- html = getAnchorListHTML('anchorlist','href');
- if (html == "")
- document.getElementById("anchorlistrow").style.display = 'none';
- else
- document.getElementById("anchorlistcontainer").innerHTML = html;
-
- // Resize some elements
- if (isVisible('hrefbrowser'))
- document.getElementById('href').style.width = '260px';
-
- if (isVisible('popupurlbrowser'))
- document.getElementById('popupurl').style.width = '180px';
-
- elm = inst.dom.getParent(elm, "A");
- if (elm == null) {
- var prospect = inst.dom.create("p", null, inst.selection.getContent());
- if (prospect.childNodes.length === 1) {
- elm = prospect.firstChild;
- }
- }
-
- if (elm != null && elm.nodeName == "A")
- action = "update";
-
- formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true);
-
- setPopupControlsDisabled(true);
-
- if (action == "update") {
- var href = inst.dom.getAttrib(elm, 'href');
- var onclick = inst.dom.getAttrib(elm, 'onclick');
- var linkTarget = inst.dom.getAttrib(elm, 'target') ? inst.dom.getAttrib(elm, 'target') : "_self";
-
- // Setup form data
- setFormValue('href', href);
- setFormValue('title', inst.dom.getAttrib(elm, 'title'));
- setFormValue('id', inst.dom.getAttrib(elm, 'id'));
- setFormValue('style', inst.dom.getAttrib(elm, "style"));
- setFormValue('rel', inst.dom.getAttrib(elm, 'rel'));
- setFormValue('rev', inst.dom.getAttrib(elm, 'rev'));
- setFormValue('charset', inst.dom.getAttrib(elm, 'charset'));
- setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang'));
- setFormValue('dir', inst.dom.getAttrib(elm, 'dir'));
- setFormValue('lang', inst.dom.getAttrib(elm, 'lang'));
- setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
- setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
- setFormValue('type', inst.dom.getAttrib(elm, 'type'));
- setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus'));
- setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur'));
- setFormValue('onclick', onclick);
- setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick'));
- setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown'));
- setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup'));
- setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover'));
- setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove'));
- setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout'));
- setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress'));
- setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown'));
- setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup'));
- setFormValue('target', linkTarget);
- setFormValue('classes', inst.dom.getAttrib(elm, 'class'));
-
- // Parse onclick data
- if (onclick != null && onclick.indexOf('window.open') != -1)
- parseWindowOpen(onclick);
- else
- parseFunction(onclick);
-
- // Select by the values
- selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir'));
- selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel'));
- selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev'));
- selectByValue(formObj, 'linklisthref', href);
-
- if (href.charAt(0) == '#')
- selectByValue(formObj, 'anchorlist', href);
-
- addClassesToList('classlist', 'advlink_styles');
-
- selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true);
- selectByValue(formObj, 'targetlist', linkTarget, true);
- } else
- addClassesToList('classlist', 'advlink_styles');
-}
-
-function checkPrefix(n) {
- if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email')))
- n.value = 'mailto:' + n.value;
-
- if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external')))
- n.value = 'http://' + n.value;
-}
-
-function setFormValue(name, value) {
- document.forms[0].elements[name].value = value;
-}
-
-function parseWindowOpen(onclick) {
- var formObj = document.forms[0];
-
- // Preprocess center code
- if (onclick.indexOf('return false;') != -1) {
- formObj.popupreturn.checked = true;
- onclick = onclick.replace('return false;', '');
- } else
- formObj.popupreturn.checked = false;
-
- var onClickData = parseLink(onclick);
-
- if (onClickData != null) {
- formObj.ispopup.checked = true;
- setPopupControlsDisabled(false);
-
- var onClickWindowOptions = parseOptions(onClickData['options']);
- var url = onClickData['url'];
-
- formObj.popupname.value = onClickData['target'];
- formObj.popupurl.value = url;
- formObj.popupwidth.value = getOption(onClickWindowOptions, 'width');
- formObj.popupheight.value = getOption(onClickWindowOptions, 'height');
-
- formObj.popupleft.value = getOption(onClickWindowOptions, 'left');
- formObj.popuptop.value = getOption(onClickWindowOptions, 'top');
-
- if (formObj.popupleft.value.indexOf('screen') != -1)
- formObj.popupleft.value = "c";
-
- if (formObj.popuptop.value.indexOf('screen') != -1)
- formObj.popuptop.value = "c";
-
- formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes";
- formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes";
- formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes";
- formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes";
- formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes";
- formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes";
- formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes";
-
- buildOnClick();
- }
-}
-
-function parseFunction(onclick) {
- var formObj = document.forms[0];
- var onClickData = parseLink(onclick);
-
- // TODO: Add stuff here
-}
-
-function getOption(opts, name) {
- return typeof(opts[name]) == "undefined" ? "" : opts[name];
-}
-
-function setPopupControlsDisabled(state) {
- var formObj = document.forms[0];
-
- formObj.popupname.disabled = state;
- formObj.popupurl.disabled = state;
- formObj.popupwidth.disabled = state;
- formObj.popupheight.disabled = state;
- formObj.popupleft.disabled = state;
- formObj.popuptop.disabled = state;
- formObj.popuplocation.disabled = state;
- formObj.popupscrollbars.disabled = state;
- formObj.popupmenubar.disabled = state;
- formObj.popupresizable.disabled = state;
- formObj.popuptoolbar.disabled = state;
- formObj.popupstatus.disabled = state;
- formObj.popupreturn.disabled = state;
- formObj.popupdependent.disabled = state;
-
- setBrowserDisabled('popupurlbrowser', state);
-}
-
-function parseLink(link) {
- link = link.replace(new RegExp(''', 'g'), "'");
-
- var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1");
-
- // Is function name a template function
- var template = templates[fnName];
- if (template) {
- // Build regexp
- var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi"));
- var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\(";
- var replaceStr = "";
- for (var i=0; i";
- } else
- regExp += ".*";
- }
-
- regExp += "\\);?";
-
- // Build variable array
- var variables = [];
- variables["_function"] = fnName;
- var variableValues = link.replace(new RegExp(regExp, "gi"), replaceStr).split('');
- for (var i=0; i' + name + '';
-
- if ((name = nodes[i].id) != "" && !nodes[i].href)
- html += '';
- }
-
- if (html == "")
- return "";
-
- html = '';
-
- return html;
-}
-
-function insertAction() {
- var inst = tinyMCEPopup.editor;
- var elm, elementArray, i;
-
- elm = inst.selection.getNode();
- checkPrefix(document.forms[0].href);
-
- elm = inst.dom.getParent(elm, "A");
-
- // Remove element if there is no href
- if (!document.forms[0].href.value) {
- i = inst.selection.getBookmark();
- inst.dom.remove(elm, 1);
- inst.selection.moveToBookmark(i);
- tinyMCEPopup.execCommand("mceEndUndoLevel");
- tinyMCEPopup.close();
- return;
- }
-
- // Create new anchor elements
- if (elm == null) {
- inst.getDoc().execCommand("unlink", false, null);
- tinyMCEPopup.execCommand("mceInsertLink", false, "#mce_temp_url#", {skip_undo : 1});
-
- elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
- for (i=0; i';
-
- for (var i=0; i' + tinyMCELinkList[i][0] + '';
-
- html += '';
-
- return html;
-
- // tinyMCE.debug('-- image list start --', html, '-- image list end --');
-}
-
-function getTargetListHTML(elm_id, target_form_element) {
- var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';');
- var html = '';
-
- html += '';
-
- return html;
-}
-
-// While loading
-preinit();
-tinyMCEPopup.onInit.add(init);
diff --git a/e107_plugins/tinymce/plugins/advlink/langs/en_dlg.js b/e107_plugins/tinymce/plugins/advlink/langs/en_dlg.js
deleted file mode 100644
index 3169a5658..000000000
--- a/e107_plugins/tinymce/plugins/advlink/langs/en_dlg.js
+++ /dev/null
@@ -1 +0,0 @@
-tinyMCE.addI18n('en.advlink_dlg',{"target_name":"Target Name",classes:"Classes",style:"Style",id:"ID","popup_position":"Position (X/Y)",langdir:"Language Direction","popup_size":"Size","popup_dependent":"Dependent (Mozilla/Firefox Only)","popup_resizable":"Make Window Resizable","popup_location":"Show Location Bar","popup_menubar":"Show Menu Bar","popup_toolbar":"Show Toolbars","popup_statusbar":"Show Status Bar","popup_scrollbars":"Show Scrollbars","popup_return":"Insert \'return false\'","popup_name":"Window Name","popup_url":"Popup URL",popup:"JavaScript Popup","target_blank":"Open in New Window","target_top":"Open in Top Frame (Replaces All Frames)","target_parent":"Open in Parent Window/Frame","target_same":"Open in This Window/Frame","anchor_names":"Anchors","popup_opts":"Options","advanced_props":"Advanced Properties","event_props":"Events","popup_props":"Popup Properties","general_props":"General Properties","advanced_tab":"Advanced","events_tab":"Events","popup_tab":"Popup","general_tab":"General",list:"Link List","is_external":"The URL you entered seems to be an external link. Do you want to add the required http:// prefix?","is_email":"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",titlefield:"Title",target:"Target",url:"Link URL",title:"Insert/Edit Link","link_list":"Link List",rtl:"Right to Left",ltr:"Left to Right",accesskey:"AccessKey",tabindex:"TabIndex",rev:"Relationship Target to Page",rel:"Relationship Page to Target",mime:"Target MIME Type",encoding:"Target Character Encoding",langcode:"Language Code","target_langcode":"Target Language",width:"Width",height:"Height"});
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/advlink/link.htm b/e107_plugins/tinymce/plugins/advlink/link.htm
deleted file mode 100644
index 8ab7c2a95..000000000
--- a/e107_plugins/tinymce/plugins/advlink/link.htm
+++ /dev/null
@@ -1,338 +0,0 @@
-
-
-
- {#advlink_dlg.title}
-
-
-
-
-
-
-
-
- {#advlink_dlg.title}
-
-
-
diff --git a/e107_plugins/tinymce/plugins/advlist/editor_plugin.js b/e107_plugins/tinymce/plugins/advlist/editor_plugin.js
deleted file mode 100644
index 57ecce6e0..000000000
--- a/e107_plugins/tinymce/plugins/advlist/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square");if(tinymce.isIE&&/MSIE [2-7]/.test(navigator.userAgent)){d.isIE7=true}},createControl:function(d,b){var f=this,e,i,g=f.editor;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){i=f[d][0]}function c(j,l){var k=true;a(l.styles,function(n,m){if(g.dom.getStyle(j,m)!=n){k=false;return false}});return k}function h(){var k,l=g.dom,j=g.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,i)){g.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(i){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,i.styles);k.removeAttribute("data-mce-style")}}g.focus()}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){h()}});e.onRenderMenu.add(function(j,k){k.onHideMenu.add(function(){if(f.bookmark){g.selection.moveToBookmark(f.bookmark);f.bookmark=0}});k.onShowMenu.add(function(){var n=g.dom,m=n.getParent(g.selection.getNode(),"ol,ul"),l;if(m||i){l=f[d];a(k.items,function(o){var p=true;o.setSelected(0);if(m&&!o.isDisabled()){a(l,function(q){if(q.id==o.id){if(!c(m,q)){p=false;return false}}});if(p){o.setSelected(1)}}});if(!m){k.items[i.id].setSelected(1)}}g.focus();if(tinymce.isIE){f.bookmark=g.selection.getBookmark(1)}});k.add({id:g.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle",titleItem:true}).setDisabled(1);a(f[d],function(l){if(f.isIE7&&l.styles.listStyleType=="lower-greek"){return}l.id=g.dom.uniqueId();k.add({id:l.id,title:l.title,onclick:function(){i=l;h()}})})});return e}},getInfo:function(){return{longname:"Advanced lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/advlist/editor_plugin_src.js b/e107_plugins/tinymce/plugins/advlist/editor_plugin_src.js
deleted file mode 100644
index 4ee4d34c8..000000000
--- a/e107_plugins/tinymce/plugins/advlist/editor_plugin_src.js
+++ /dev/null
@@ -1,176 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- var each = tinymce.each;
-
- tinymce.create('tinymce.plugins.AdvListPlugin', {
- init : function(ed, url) {
- var t = this;
-
- t.editor = ed;
-
- function buildFormats(str) {
- var formats = [];
-
- each(str.split(/,/), function(type) {
- formats.push({
- title : 'advlist.' + (type == 'default' ? 'def' : type.replace(/-/g, '_')),
- styles : {
- listStyleType : type == 'default' ? '' : type
- }
- });
- });
-
- return formats;
- };
-
- // Setup number formats from config or default
- t.numlist = ed.getParam("advlist_number_styles") || buildFormats("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");
- t.bullist = ed.getParam("advlist_bullet_styles") || buildFormats("default,circle,disc,square");
-
- if (tinymce.isIE && /MSIE [2-7]/.test(navigator.userAgent))
- t.isIE7 = true;
- },
-
- createControl: function(name, cm) {
- var t = this, btn, format, editor = t.editor;
-
- if (name == 'numlist' || name == 'bullist') {
- // Default to first item if it's a default item
- if (t[name][0].title == 'advlist.def')
- format = t[name][0];
-
- function hasFormat(node, format) {
- var state = true;
-
- each(format.styles, function(value, name) {
- // Format doesn't match
- if (editor.dom.getStyle(node, name) != value) {
- state = false;
- return false;
- }
- });
-
- return state;
- };
-
- function applyListFormat() {
- var list, dom = editor.dom, sel = editor.selection;
-
- // Check for existing list element
- list = dom.getParent(sel.getNode(), 'ol,ul');
-
- // Switch/add list type if needed
- if (!list || list.nodeName == (name == 'bullist' ? 'OL' : 'UL') || hasFormat(list, format))
- editor.execCommand(name == 'bullist' ? 'InsertUnorderedList' : 'InsertOrderedList');
-
- // Append styles to new list element
- if (format) {
- list = dom.getParent(sel.getNode(), 'ol,ul');
- if (list) {
- dom.setStyles(list, format.styles);
- list.removeAttribute('data-mce-style');
- }
- }
-
- editor.focus();
- };
-
- btn = cm.createSplitButton(name, {
- title : 'advanced.' + name + '_desc',
- 'class' : 'mce_' + name,
- onclick : function() {
- applyListFormat();
- }
- });
-
- btn.onRenderMenu.add(function(btn, menu) {
- menu.onHideMenu.add(function() {
- if (t.bookmark) {
- editor.selection.moveToBookmark(t.bookmark);
- t.bookmark = 0;
- }
- });
-
- menu.onShowMenu.add(function() {
- var dom = editor.dom, list = dom.getParent(editor.selection.getNode(), 'ol,ul'), fmtList;
-
- if (list || format) {
- fmtList = t[name];
-
- // Unselect existing items
- each(menu.items, function(item) {
- var state = true;
-
- item.setSelected(0);
-
- if (list && !item.isDisabled()) {
- each(fmtList, function(fmt) {
- if (fmt.id == item.id) {
- if (!hasFormat(list, fmt)) {
- state = false;
- return false;
- }
- }
- });
-
- if (state)
- item.setSelected(1);
- }
- });
-
- // Select the current format
- if (!list)
- menu.items[format.id].setSelected(1);
- }
-
- editor.focus();
-
- // IE looses it's selection so store it away and restore it later
- if (tinymce.isIE) {
- t.bookmark = editor.selection.getBookmark(1);
- }
- });
-
- menu.add({id : editor.dom.uniqueId(), title : 'advlist.types', 'class' : 'mceMenuItemTitle', titleItem: true}).setDisabled(1);
-
- each(t[name], function(item) {
- // IE<8 doesn't support lower-greek, skip it
- if (t.isIE7 && item.styles.listStyleType == 'lower-greek')
- return;
-
- item.id = editor.dom.uniqueId();
-
- menu.add({id : item.id, title : item.title, onclick : function() {
- format = item;
- applyListFormat();
- }});
- });
- });
-
- return btn;
- }
- },
-
- getInfo : function() {
- return {
- longname : 'Advanced lists',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('advlist', tinymce.plugins.AdvListPlugin);
-})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/autoresize/editor_plugin.js b/e107_plugins/tinymce/plugins/autoresize/editor_plugin.js
deleted file mode 100644
index 46d9dc3dd..000000000
--- a/e107_plugins/tinymce/plugins/autoresize/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this,e=0;if(a.getParam("fullscreen_is_enabled")){return}function b(){var j,i=a.getDoc(),f=i.body,l=i.documentElement,h=tinymce.DOM,k=d.autoresize_min_height,g;g=tinymce.isIE?f.scrollHeight:(tinymce.isWebKit&&f.clientHeight==0?0:f.offsetHeight);if(g>d.autoresize_min_height){k=g}if(d.autoresize_max_height&&g>d.autoresize_max_height){k=d.autoresize_max_height;f.style.overflowY="auto";l.style.overflowY="auto"}else{f.style.overflowY="hidden";l.style.overflowY="hidden";f.scrollTop=0}if(k!==e){j=k-e;h.setStyle(h.get(a.id+"_ifr"),"height",k+"px");e=k;if(tinymce.isWebKit&&j<0){b()}}}d.editor=a;d.autoresize_min_height=parseInt(a.getParam("autoresize_min_height",a.getElement().offsetHeight));d.autoresize_max_height=parseInt(a.getParam("autoresize_max_height",0));a.onInit.add(function(f){f.dom.setStyle(f.getBody(),"paddingBottom",f.getParam("autoresize_bottom_margin",50)+"px")});a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);if(a.getParam("autoresize_on_init",true)){a.onLoad.add(b);a.onLoadContent.add(b)}a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/autoresize/editor_plugin_src.js b/e107_plugins/tinymce/plugins/autoresize/editor_plugin_src.js
deleted file mode 100644
index 7673bcff8..000000000
--- a/e107_plugins/tinymce/plugins/autoresize/editor_plugin_src.js
+++ /dev/null
@@ -1,119 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- /**
- * Auto Resize
- *
- * This plugin automatically resizes the content area to fit its content height.
- * It will retain a minimum height, which is the height of the content area when
- * it's initialized.
- */
- tinymce.create('tinymce.plugins.AutoResizePlugin', {
- /**
- * Initializes the plugin, this will be executed after the plugin has been created.
- * This call is done before the editor instance has finished it's initialization so use the onInit event
- * of the editor instance to intercept that event.
- *
- * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
- * @param {string} url Absolute URL to where the plugin is located.
- */
- init : function(ed, url) {
- var t = this, oldSize = 0;
-
- if (ed.getParam('fullscreen_is_enabled'))
- return;
-
- /**
- * This method gets executed each time the editor needs to resize.
- */
- function resize() {
- var deltaSize, d = ed.getDoc(), body = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight;
-
- // Get height differently depending on the browser used
- myHeight = tinymce.isIE ? body.scrollHeight : (tinymce.isWebKit && body.clientHeight == 0 ? 0 : body.offsetHeight);
-
- // Don't make it smaller than the minimum height
- if (myHeight > t.autoresize_min_height)
- resizeHeight = myHeight;
-
- // If a maximum height has been defined don't exceed this height
- if (t.autoresize_max_height && myHeight > t.autoresize_max_height) {
- resizeHeight = t.autoresize_max_height;
- body.style.overflowY = "auto";
- de.style.overflowY = "auto"; // Old IE
- } else {
- body.style.overflowY = "hidden";
- de.style.overflowY = "hidden"; // Old IE
- body.scrollTop = 0;
- }
-
- // Resize content element
- if (resizeHeight !== oldSize) {
- deltaSize = resizeHeight - oldSize;
- DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px');
- oldSize = resizeHeight;
-
- // WebKit doesn't decrease the size of the body element until the iframe gets resized
- // So we need to continue to resize the iframe down until the size gets fixed
- if (tinymce.isWebKit && deltaSize < 0)
- resize();
- }
- };
-
- t.editor = ed;
-
- // Define minimum height
- t.autoresize_min_height = parseInt(ed.getParam('autoresize_min_height', ed.getElement().offsetHeight));
-
- // Define maximum height
- t.autoresize_max_height = parseInt(ed.getParam('autoresize_max_height', 0));
-
- // Add padding at the bottom for better UX
- ed.onInit.add(function(ed){
- ed.dom.setStyle(ed.getBody(), 'paddingBottom', ed.getParam('autoresize_bottom_margin', 50) + 'px');
- });
-
- // Add appropriate listeners for resizing content area
- ed.onChange.add(resize);
- ed.onSetContent.add(resize);
- ed.onPaste.add(resize);
- ed.onKeyUp.add(resize);
- ed.onPostRender.add(resize);
-
- if (ed.getParam('autoresize_on_init', true)) {
- ed.onLoad.add(resize);
- ed.onLoadContent.add(resize);
- }
-
- // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
- ed.addCommand('mceAutoResize', resize);
- },
-
- /**
- * Returns information about the plugin as a name/value array.
- * The current keys are longname, author, authorurl, infourl and version.
- *
- * @return {Object} Name/value array containing information about the plugin.
- */
- getInfo : function() {
- return {
- longname : 'Auto Resize',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin);
-})();
diff --git a/e107_plugins/tinymce/plugins/autosave/editor_plugin.js b/e107_plugins/tinymce/plugins/autosave/editor_plugin.js
deleted file mode 100644
index 6da98ff33..000000000
--- a/e107_plugins/tinymce/plugins/autosave/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent({draft:true}).replace(/\s| |<\/?p[^>]*>|
]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){if(!i.removed){h.storeDraft();i.nodeChanged()}},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();try{m.save("TinyMCE")}catch(o){}},getItem:function(l){var m=i.getElement();try{m.load("TinyMCE");return m.getAttribute(l)}catch(n){return null}},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent({draft:true});if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,j=h.storage,i;if(j){i=j.getItem(h.key);if(i){h.editor.setContent(i);h.onRestoreDraft.dispatch(h,{content:i})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()]*>|
]*>/gi, "").length > 0) {
- // Show confirm dialog if the editor isn't empty
- ed.windowManager.confirm(
- PLUGIN_NAME + ".warning_message",
- function(ok) {
- if (ok)
- self.restoreDraft();
- }
- );
- } else
- self.restoreDraft();
- }
- });
-
- // Enable/disable restoredraft button depending on if there is a draft stored or not
- ed.onNodeChange.add(function() {
- var controlManager = ed.controlManager;
-
- if (controlManager.get(RESTORE_DRAFT))
- controlManager.setDisabled(RESTORE_DRAFT, !self.hasDraft());
- });
-
- ed.onInit.add(function() {
- // Check if the user added the restore button, then setup auto storage logic
- if (ed.controlManager.get(RESTORE_DRAFT)) {
- // Setup storage engine
- self.setupStorage(ed);
-
- // Auto save contents each interval time
- setInterval(function() {
- if (!ed.removed) {
- self.storeDraft();
- ed.nodeChanged();
- }
- }, settings.autosave_interval);
- }
- });
-
- /**
- * This event gets fired when a draft is stored to local storage.
- *
- * @event onStoreDraft
- * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event.
- * @param {Object} draft Draft object containing the HTML contents of the editor.
- */
- self.onStoreDraft = new Dispatcher(self);
-
- /**
- * This event gets fired when a draft is restored from local storage.
- *
- * @event onStoreDraft
- * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event.
- * @param {Object} draft Draft object containing the HTML contents of the editor.
- */
- self.onRestoreDraft = new Dispatcher(self);
-
- /**
- * This event gets fired when a draft removed/expired.
- *
- * @event onRemoveDraft
- * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event.
- * @param {Object} draft Draft object containing the HTML contents of the editor.
- */
- self.onRemoveDraft = new Dispatcher(self);
-
- // Add ask before unload dialog only add one unload handler
- if (!unloadHandlerAdded) {
- window.onbeforeunload = tinymce.plugins.AutoSave._beforeUnloadHandler;
- unloadHandlerAdded = TRUE;
- }
- },
-
- /**
- * Returns information about the plugin as a name/value array.
- * The current keys are longname, author, authorurl, infourl and version.
- *
- * @method getInfo
- * @return {Object} Name/value array containing information about the plugin.
- */
- getInfo : function() {
- return {
- longname : 'Auto save',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- },
-
- /**
- * Returns an expiration date UTC string.
- *
- * @method getExpDate
- * @return {String} Expiration date UTC string.
- */
- getExpDate : function() {
- return new Date(
- new Date().getTime() + this.editor.settings.autosave_retention
- ).toUTCString();
- },
-
- /**
- * This method will setup the storage engine. If the browser has support for it.
- *
- * @method setupStorage
- */
- setupStorage : function(ed) {
- var self = this, testKey = PLUGIN_NAME + '_test', testVal = "OK";
-
- self.key = PLUGIN_NAME + ed.id;
-
- // Loop though each storage engine type until we find one that works
- tinymce.each([
- function() {
- // Try HTML5 Local Storage
- if (localStorage) {
- localStorage.setItem(testKey, testVal);
-
- if (localStorage.getItem(testKey) === testVal) {
- localStorage.removeItem(testKey);
-
- return localStorage;
- }
- }
- },
-
- function() {
- // Try HTML5 Session Storage
- if (sessionStorage) {
- sessionStorage.setItem(testKey, testVal);
-
- if (sessionStorage.getItem(testKey) === testVal) {
- sessionStorage.removeItem(testKey);
-
- return sessionStorage;
- }
- }
- },
-
- function() {
- // Try IE userData
- if (tinymce.isIE) {
- ed.getElement().style.behavior = "url('#default#userData')";
-
- // Fake localStorage on old IE
- return {
- autoExpires : TRUE,
-
- setItem : function(key, value) {
- var userDataElement = ed.getElement();
-
- userDataElement.setAttribute(key, value);
- userDataElement.expires = self.getExpDate();
-
- try {
- userDataElement.save("TinyMCE");
- } catch (e) {
- // Ignore, saving might fail if "Userdata Persistence" is disabled in IE
- }
- },
-
- getItem : function(key) {
- var userDataElement = ed.getElement();
-
- try {
- userDataElement.load("TinyMCE");
- return userDataElement.getAttribute(key);
- } catch (e) {
- // Ignore, loading might fail if "Userdata Persistence" is disabled in IE
- return null;
- }
- },
-
- removeItem : function(key) {
- ed.getElement().removeAttribute(key);
- }
- };
- }
- },
- ], function(setup) {
- // Try executing each function to find a suitable storage engine
- try {
- self.storage = setup();
-
- if (self.storage)
- return false;
- } catch (e) {
- // Ignore
- }
- });
- },
-
- /**
- * This method will store the current contents in the the storage engine.
- *
- * @method storeDraft
- */
- storeDraft : function() {
- var self = this, storage = self.storage, editor = self.editor, expires, content;
-
- // Is the contents dirty
- if (storage) {
- // If there is no existing key and the contents hasn't been changed since
- // it's original value then there is no point in saving a draft
- if (!storage.getItem(self.key) && !editor.isDirty())
- return;
-
- // Store contents if the contents if longer than the minlength of characters
- content = editor.getContent({draft: true});
- if (content.length > editor.settings.autosave_minlength) {
- expires = self.getExpDate();
-
- // Store expiration date if needed IE userData has auto expire built in
- if (!self.storage.autoExpires)
- self.storage.setItem(self.key + "_expires", expires);
-
- self.storage.setItem(self.key, content);
- self.onStoreDraft.dispatch(self, {
- expires : expires,
- content : content
- });
- }
- }
- },
-
- /**
- * This method will restore the contents from the storage engine back to the editor.
- *
- * @method restoreDraft
- */
- restoreDraft : function() {
- var self = this, storage = self.storage, content;
-
- if (storage) {
- content = storage.getItem(self.key);
-
- if (content) {
- self.editor.setContent(content);
- self.onRestoreDraft.dispatch(self, {
- content : content
- });
- }
- }
- },
-
- /**
- * This method will return true/false if there is a local storage draft available.
- *
- * @method hasDraft
- * @return {boolean} true/false state if there is a local draft.
- */
- hasDraft : function() {
- var self = this, storage = self.storage, expDate, exists;
-
- if (storage) {
- // Does the item exist at all
- exists = !!storage.getItem(self.key);
- if (exists) {
- // Storage needs autoexpire
- if (!self.storage.autoExpires) {
- expDate = new Date(storage.getItem(self.key + "_expires"));
-
- // Contents hasn't expired
- if (new Date().getTime() < expDate.getTime())
- return TRUE;
-
- // Remove it if it has
- self.removeDraft();
- } else
- return TRUE;
- }
- }
-
- return false;
- },
-
- /**
- * Removes the currently stored draft.
- *
- * @method removeDraft
- */
- removeDraft : function() {
- var self = this, storage = self.storage, key = self.key, content;
-
- if (storage) {
- // Get current contents and remove the existing draft
- content = storage.getItem(key);
- storage.removeItem(key);
- storage.removeItem(key + "_expires");
-
- // Dispatch remove event if we had any contents
- if (content) {
- self.onRemoveDraft.dispatch(self, {
- content : content
- });
- }
- }
- },
-
- "static" : {
- // Internal unload handler will be called before the page is unloaded
- _beforeUnloadHandler : function(e) {
- var msg;
-
- tinymce.each(tinyMCE.editors, function(ed) {
- // Store a draft for each editor instance
- if (ed.plugins.autosave)
- ed.plugins.autosave.storeDraft();
-
- // Never ask in fullscreen mode
- if (ed.getParam("fullscreen_is_enabled"))
- return;
-
- // Setup a return message if the editor is dirty
- if (!msg && ed.isDirty() && ed.getParam("autosave_ask_before_unload"))
- msg = ed.getLang("autosave.unload_msg");
- });
-
- return msg;
- }
- }
- });
-
- tinymce.PluginManager.add('autosave', tinymce.plugins.AutoSave);
-})(tinymce);
diff --git a/e107_plugins/tinymce/plugins/contextmenu/contextmenu.css b/e107_plugins/tinymce/plugins/contextmenu/contextmenu.css
deleted file mode 100644
index 1466e0e89..000000000
--- a/e107_plugins/tinymce/plugins/contextmenu/contextmenu.css
+++ /dev/null
@@ -1,60 +0,0 @@
-.contextMenuIEPopup {
- padding: 0px;
- margin: 0px;
- border: 0px;
- overflow: hidden;
-}
-
-.contextMenu {
- position: absolute;
- cursor: default;
- z-index: 1000;
- border: 1px solid #D4D0C8;
- background-color: #FFFFFF;
-}
-
-.contextMenuItem, .contextMenuItemOver {
-}
-
-.contextMenuItemOver {
- background-color: #B6BDD2;
-}
-
-.contextMenuSeparator {
- width: 100%;
- background-color: #D4D0C8;
- border: 0px;
-}
-
-.contextMenuImage, .contextMenuItemDisabled {
- border: 0px;
-}
-
-.contextMenuIcon {
- background-color: #F0F0EE;
-}
-
-.contextMenuItemOver .contextMenuIcon {
- background-color: #B6BDD2;
-}
-
-.contextMenuIcon {
- background-color: #F0F0EE;
-}
-
-.contextMenuItemDisabled img {
- filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30);
- -moz-opacity:0.3;
- opacity: 0.3;
-}
-
-.contextMenuText {
- font-family: Tahoma, Verdana, Arial, Helvetica;
- font-size: 11px;
- margin-left: 5px;
- margin-right: 10px;
-}
-
-.contextMenuItemDisabled {
- color: #AAAAAA;
-}
diff --git a/e107_plugins/tinymce/plugins/contextmenu/css/contextmenu.css b/e107_plugins/tinymce/plugins/contextmenu/css/contextmenu.css
deleted file mode 100644
index a4ad1e9b7..000000000
--- a/e107_plugins/tinymce/plugins/contextmenu/css/contextmenu.css
+++ /dev/null
@@ -1,74 +0,0 @@
-.contextMenuIEPopup {
- padding: 0;
- margin: 0;
- border: 0;
- overflow: hidden;
-}
-
-.contextMenu {
- position: absolute;
- cursor: default;
- z-index: 1000;
- border: 1px solid #D4D0C8;
- background-color: #FFFFFF;
-}
-
-.contextMenuItem, .contextMenuItemOver {
-}
-
-.contextMenuSeparator {
- width: 100%;
- background-color: #D4D0C8;
- border: 0;
-}
-
-.contextMenuImage, .contextMenuItemDisabled {
- border: 0;
-}
-
-.contextMenuIcon {
- background-color: #F0F0EE;
-}
-
-.contextMenuItemOver .contextMenuIcon {
- background-color: #B6BDD2;
-}
-
-.contextMenuIcon {
- background-color: #F0F0EE;
-}
-
-.contextMenuItemDisabled img {
- filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30);
- -moz-opacity:0.3;
- opacity: 0.3;
-}
-
-.contextMenuText {
- font-family: Tahoma, Verdana, Arial, Helvetica;
- font-size: 11px;
- line-height: 20px;
-}
-
-.contextMenuItemDisabled {
- color: #AAAAAA;
-}
-
-.contextMenuText a {
- display: block;
- line-height: 20px;
- width: 100%;
- text-decoration: none;
- color: black;
- font-weight: normal;
- margin: 0;
- padding: 0;
-}
-
-.contextMenuText a:hover {
- background-color: #B6BDD2;
- text-decoration: none !important;
- font-weight: normal;
- margin: 0;
- padding: 0;
-}
diff --git a/e107_plugins/tinymce/plugins/contextmenu/editor_plugin.js b/e107_plugins/tinymce/plugins/contextmenu/editor_plugin.js
deleted file mode 100644
index 2ed042c3a..000000000
--- a/e107_plugins/tinymce/plugins/contextmenu/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(f){var i=this,g,d,j,e;i.editor=f;d=f.settings.contextmenu_never_use_native;i.onContextMenu=new tinymce.util.Dispatcher(this);e=function(k){h(f,k)};g=f.onContextMenu.add(function(k,l){if((j!==0?j:l.ctrlKey)&&!d){return}a.cancel(l);if(l.target.nodeName=="IMG"){k.selection.select(l.target)}i._getMenu(k).showMenu(l.clientX||l.pageX,l.clientY||l.pageY);a.add(k.getDoc(),"click",e);k.nodeChanged()});f.onRemove.add(function(){if(i._menu){i._menu.removeAll()}});function h(k,l){j=0;if(l&&l.button==2){j=l.ctrlKey;return}if(i._menu){i._menu.removeAll();i._menu.destroy();a.remove(k.getDoc(),"click",e);i._menu=null}}f.onMouseDown.add(h);f.onKeyDown.add(h);f.onKeyDown.add(function(k,l){if(l.shiftKey&&!l.ctrlKey&&!l.altKey&&l.keyCode===121){a.cancel(l);g(k,l)}})},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(e){var g=this,d=g._menu,j=e.selection,f=j.isCollapsed(),h=j.getNode()||e.getBody(),i,k;if(d){d.removeAll();d.destroy()}k=b.getPos(e.getContentAreaContainer());d=e.controlManager.createDropMenu("contextmenu",{offset_x:k.x+e.getParam("contextmenu_offset_x",0),offset_y:k.y+e.getParam("contextmenu_offset_y",0),constrain:1,keyboard_focus:true});g._menu=d;d.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(f);d.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(f);d.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((h.nodeName=="A"&&!e.dom.getAttrib(h,"name"))||!f){d.addSeparator();d.add({title:"advanced.link_desc",icon:"link",cmd:e.plugins.advlink?"mceAdvLink":"mceLink",ui:true});d.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}d.addSeparator();d.add({title:"advanced.image_desc",icon:"image",cmd:e.plugins.advimage?"mceAdvImage":"mceImage",ui:true});d.addSeparator();i=d.addMenu({title:"contextmenu.align"});i.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});i.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});i.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});i.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});g.onContextMenu.dispatch(g,d,h,f);return d}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/contextmenu/editor_plugin_src.js b/e107_plugins/tinymce/plugins/contextmenu/editor_plugin_src.js
deleted file mode 100644
index 48b0fff99..000000000
--- a/e107_plugins/tinymce/plugins/contextmenu/editor_plugin_src.js
+++ /dev/null
@@ -1,163 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM;
-
- /**
- * This plugin a context menu to TinyMCE editor instances.
- *
- * @class tinymce.plugins.ContextMenu
- */
- tinymce.create('tinymce.plugins.ContextMenu', {
- /**
- * Initializes the plugin, this will be executed after the plugin has been created.
- * This call is done before the editor instance has finished it's initialization so use the onInit event
- * of the editor instance to intercept that event.
- *
- * @method init
- * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
- * @param {string} url Absolute URL to where the plugin is located.
- */
- init : function(ed) {
- var t = this, showMenu, contextmenuNeverUseNative, realCtrlKey, hideMenu;
-
- t.editor = ed;
-
- contextmenuNeverUseNative = ed.settings.contextmenu_never_use_native;
-
- /**
- * This event gets fired when the context menu is shown.
- *
- * @event onContextMenu
- * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event.
- * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed.
- */
- t.onContextMenu = new tinymce.util.Dispatcher(this);
-
- hideMenu = function(e) {
- hide(ed, e);
- };
-
- showMenu = ed.onContextMenu.add(function(ed, e) {
- // Block TinyMCE menu on ctrlKey and work around Safari issue
- if ((realCtrlKey !== 0 ? realCtrlKey : e.ctrlKey) && !contextmenuNeverUseNative)
- return;
-
- Event.cancel(e);
-
- // Select the image if it's clicked. WebKit would other wise expand the selection
- if (e.target.nodeName == 'IMG')
- ed.selection.select(e.target);
-
- t._getMenu(ed).showMenu(e.clientX || e.pageX, e.clientY || e.pageY);
- Event.add(ed.getDoc(), 'click', hideMenu);
-
- ed.nodeChanged();
- });
-
- ed.onRemove.add(function() {
- if (t._menu)
- t._menu.removeAll();
- });
-
- function hide(ed, e) {
- realCtrlKey = 0;
-
- // Since the contextmenu event moves
- // the selection we need to store it away
- if (e && e.button == 2) {
- realCtrlKey = e.ctrlKey;
- return;
- }
-
- if (t._menu) {
- t._menu.removeAll();
- t._menu.destroy();
- Event.remove(ed.getDoc(), 'click', hideMenu);
- t._menu = null;
- }
- };
-
- ed.onMouseDown.add(hide);
- ed.onKeyDown.add(hide);
- ed.onKeyDown.add(function(ed, e) {
- if (e.shiftKey && !e.ctrlKey && !e.altKey && e.keyCode === 121) {
- Event.cancel(e);
- showMenu(ed, e);
- }
- });
- },
-
- /**
- * Returns information about the plugin as a name/value array.
- * The current keys are longname, author, authorurl, infourl and version.
- *
- * @method getInfo
- * @return {Object} Name/value array containing information about the plugin.
- */
- getInfo : function() {
- return {
- longname : 'Contextmenu',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- },
-
- _getMenu : function(ed) {
- var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p;
-
- if (m) {
- m.removeAll();
- m.destroy();
- }
-
- p = DOM.getPos(ed.getContentAreaContainer());
-
- m = ed.controlManager.createDropMenu('contextmenu', {
- offset_x : p.x + ed.getParam('contextmenu_offset_x', 0),
- offset_y : p.y + ed.getParam('contextmenu_offset_y', 0),
- constrain : 1,
- keyboard_focus: true
- });
-
- t._menu = m;
-
- m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col);
- m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col);
- m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'});
-
- if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) {
- m.addSeparator();
- m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true});
- m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'});
- }
-
- m.addSeparator();
- m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true});
-
- m.addSeparator();
- am = m.addMenu({title : 'contextmenu.align'});
- am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'});
- am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'});
- am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'});
- am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'});
-
- t.onContextMenu.dispatch(t, m, el, col);
-
- return m;
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu);
-})();
diff --git a/e107_plugins/tinymce/plugins/contextmenu/images/spacer.gif b/e107_plugins/tinymce/plugins/contextmenu/images/spacer.gif
deleted file mode 100644
index 388486517..000000000
Binary files a/e107_plugins/tinymce/plugins/contextmenu/images/spacer.gif and /dev/null differ
diff --git a/e107_plugins/tinymce/plugins/directionality/editor_plugin.js b/e107_plugins/tinymce/plugins/directionality/editor_plugin.js
deleted file mode 100644
index 90847e78e..000000000
--- a/e107_plugins/tinymce/plugins/directionality/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(b,c){var d=this;d.editor=b;function a(e){var h=b.dom,g,f=b.selection.getSelectedBlocks();if(f.length){g=h.getAttrib(f[0],"dir");tinymce.each(f,function(i){if(!h.getParent(i.parentNode,"*[dir='"+e+"']",h.getRoot())){if(g!=e){h.setAttrib(i,"dir",e)}else{h.setAttrib(i,"dir",null)}}});b.nodeChanged()}}b.addCommand("mceDirectionLTR",function(){a("ltr")});b.addCommand("mceDirectionRTL",function(){a("rtl")});b.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});b.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});b.onNodeChange.add(d._nodeChange,d)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/directionality/editor_plugin_src.js b/e107_plugins/tinymce/plugins/directionality/editor_plugin_src.js
deleted file mode 100644
index b13401412..000000000
--- a/e107_plugins/tinymce/plugins/directionality/editor_plugin_src.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- tinymce.create('tinymce.plugins.Directionality', {
- init : function(ed, url) {
- var t = this;
-
- t.editor = ed;
-
- function setDir(dir) {
- var dom = ed.dom, curDir, blocks = ed.selection.getSelectedBlocks();
-
- if (blocks.length) {
- curDir = dom.getAttrib(blocks[0], "dir");
-
- tinymce.each(blocks, function(block) {
- // Add dir to block if the parent block doesn't already have that dir
- if (!dom.getParent(block.parentNode, "*[dir='" + dir + "']", dom.getRoot())) {
- if (curDir != dir) {
- dom.setAttrib(block, "dir", dir);
- } else {
- dom.setAttrib(block, "dir", null);
- }
- }
- });
-
- ed.nodeChanged();
- }
- }
-
- ed.addCommand('mceDirectionLTR', function() {
- setDir("ltr");
- });
-
- ed.addCommand('mceDirectionRTL', function() {
- setDir("rtl");
- });
-
- ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'});
- ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'});
-
- ed.onNodeChange.add(t._nodeChange, t);
- },
-
- getInfo : function() {
- return {
- longname : 'Directionality',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- },
-
- // Private methods
-
- _nodeChange : function(ed, cm, n) {
- var dom = ed.dom, dir;
-
- n = dom.getParent(n, dom.isBlock);
- if (!n) {
- cm.setDisabled('ltr', 1);
- cm.setDisabled('rtl', 1);
- return;
- }
-
- dir = dom.getAttrib(n, 'dir');
- cm.setActive('ltr', dir == "ltr");
- cm.setDisabled('ltr', 0);
- cm.setActive('rtl', dir == "rtl");
- cm.setDisabled('rtl', 0);
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality);
-})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/e107bbcode/dialog.php b/e107_plugins/tinymce/plugins/e107bbcode/dialog.php
deleted file mode 100644
index 0b951241e..000000000
--- a/e107_plugins/tinymce/plugins/e107bbcode/dialog.php
+++ /dev/null
@@ -1,489 +0,0 @@
-' + buttonText + ' ';
- // alert(html);
- tinyMCEPopup.editor.execCommand('mceInsertContent', false, html);
- tinyMCEPopup.close();
- });
-
-
- $('span.label, span.badge').click(function () {
- var cls = $(this).attr('class');
- var html = '' + $(this).text() + ' ';
- tinyMCEPopup.editor.execCommand('mceInsertContent', false, html);
- tinyMCEPopup.close();
- });
-
-
- $('ul.glyphicons li, #glyph-save').click(function () {
-
- var color = $('#glyph-color').val();
- var custom = $('#glyph-custom').val();
- var cls = (custom != '') ? custom : $(this).find('i').attr('class');
-
- var html = ' ';
-
- // alert(html);
- tinyMCEPopup.editor.execCommand('mceInsertContent', false, html);
- tinyMCEPopup.close();
- });
-
- $('#bbcodeInsert').click(function ()
- {
- s = $('#bbcodeValue').val();
- s = s.trim(s);
-
- var html = $.ajax({
- type: 'POST',
- url: './parser.php',
- data: { content: s, mode: 'tohtml' },
- async : false,
-
- dataType: 'html',
- success: function(html) {
- return html;
- }
- }).responseText;
-
- html = '' + html + ' ' ;
-
- tinyMCEPopup.editor.execCommand('mceInsertContent', false, html);
- tinyMCEPopup.close();
- });
-
- $('a.bbcodeSelect').click(function () {
- var html = $(this).html();
- $('#bbcodeValue').val(html);
- });
-
- $('#e-cancel').click(function () {
-
- tinyMCEPopup.close();
- });
-
-});
-
-
-",'jquery');
-
-
-class e_bootstrap
-{
-
- private $styleClasses = array(''=>'Default', 'primary'=>"Primary", 'success'=>"Success", 'info'=>"Info", 'warning'=>"Warning",'danger'=>"Danger",'inverse'=>"Inverse");
-
-
-
- function init()
- {
- $ns = e107::getRender();
-
-
- if(e_QUERY == 'bbcode')
- {
- echo $this->bbcodeForm();
- return;
- }
-
-
-
-
- $text = "Warning: These will only work if you have a bootstrap-based theme installed
";
-
-
- $text .= '
- ';
-
- $text .= '';
-
- $text .= '
'.$this->buttonForm().'
';
-
- $text .= '
'.$this->badgeForm().'
';
-
- $text .= '
'.$this->glyphicons().'
';
-
-
- $text .= '
';
-
- echo $text;
-
- }
-
-
-
-
-
-
- function buttonForm()
- {
- $frm = e107::getForm();
-
- $buttonSizes = array(''=>'Default', 'btn-mini'=>"Mini", 'btn-small'=>"Small", 'btn-large' => "Large");
-
- $buttonTypes = $this->styleClasses;
-
- $butSelect = "";
- $butSelect .= "";
- foreach($buttonTypes as $type=>$diz)
- {
-
- $label = '';
- $butSelect .= $frm->radio('buttonType', $type, false, array('label'=>$label));
-
- }
- $butSelect .= "
";
-
- $butSize = "";
-
- foreach($buttonSizes as $size=>$label)
- {
- $selected = ($size == '') ? true : false;
- $butSize .= $frm->radio('buttonSize', $size, $selected, array('label'=>$label));
- }
- $butSize .= "
";
-
-
-
- $text = "
-
-
- Button Style |
- ".$butSelect." |
-
-
- Button Size |
- ".$butSize." |
-
-
- Button Text |
- ".$frm->text('buttonText',$value,50)." |
-
-
- Button Url |
- ".$frm->text('buttonUrl','',255,'size=xxlarge')." |
-
-
-
-
-
- ". $frm->admin_button('insertButton','save','other',"Insert") ."
-
-
";
-
-
- return $text;
-
- }
-
-
-
- function badgeForm()
- {
- unset($this->styleClasses['primary']);
-
- foreach($this->styleClasses as $key=>$type)
- {
- $classLabel = ($key != '') ? " label-".$key : "";
- $classBadge = ($key != '') ? " badge-".$key : "";
-
- $text .= ''.$type.' ';
- $text .= ''.$type.'';
- $text .= "
";
- }
-
- return $text;
-
- }
-
-
- function bbcodeForm()
- {
- $list = e107::getPref('bbcode_list');
-
- $text .= "
- e107 Bbcodes
-
-
- Plugin |
- Bbcode |
-
- ";
- foreach($list as $plugin=>$val)
- {
- $text .= "".$plugin." |
- ";
-
- foreach($val as $bb=>$v)
- {
- $text .= "[".$bb."][/".$bb."]";
- }
- $text .= " |
-
";
- }
-
- $text .= "
-
";
-
- $frm = e107::getForm();
- $text .= $frm->text('bbcodeValue','',false,'size=xlarge');
- $text .= $frm->button('bbcodeInsert','go','other','Insert');
-
-
- return $text;
-
-
- }
-
-
-
- function glyphicons()
- {
- $icons = array(
- "icon-glass",
- "icon-music",
- "icon-search",
- "icon-envelope",
- "icon-heart",
- "icon-star",
- "icon-star-empty",
- "icon-user",
- "icon-film",
- "icon-th-large",
- "icon-th",
- "icon-th-list",
- "icon-ok",
- "icon-remove",
- "icon-zoom-in",
- "icon-zoom-out",
- "icon-off",
- "icon-signal",
- "icon-cog",
- "icon-trash",
- "icon-home",
- "icon-file",
- "icon-time",
- "icon-road",
- "icon-download-alt",
- "icon-download",
- "icon-upload",
- "icon-inbox",
- "icon-play-circle",
- "icon-repeat",
- "icon-refresh",
- "icon-list-alt",
- "icon-lock",
- "icon-flag",
- "icon-headphones",
- "icon-volume-off",
- "icon-volume-down",
- "icon-volume-up",
- "icon-qrcode",
- "icon-barcode",
- "icon-tag",
- "icon-tags",
- "icon-book",
- "icon-bookmark",
- "icon-print",
- "icon-camera",
- "icon-font",
- "icon-bold",
- "icon-italic",
- "icon-text-height",
- "icon-text-width",
- "icon-align-left",
- "icon-align-center",
- "icon-align-right",
- "icon-align-justify",
- "icon-list",
-
- "icon-indent-left",
- "icon-indent-right",
- "icon-facetime-video",
- "icon-picture",
- "icon-pencil",
- "icon-map-marker",
- "icon-adjust",
- "icon-tint",
- "icon-edit",
- "icon-share",
- "icon-check",
- "icon-move",
- "icon-step-backward",
- "icon-fast-backward",
- "icon-backward",
- "icon-play",
- "icon-pause",
- "icon-stop",
- "icon-forward",
- "icon-fast-forward",
- "icon-step-forward",
- "icon-eject",
- "icon-chevron-left",
- "icon-chevron-right",
- "icon-plus-sign",
- "icon-minus-sign",
- "icon-remove-sign",
- "icon-ok-sign",
-
- "icon-question-sign",
- "icon-info-sign",
- "icon-screenshot",
- "icon-remove-circle",
- "icon-ok-circle",
- "icon-ban-circle",
- "icon-arrow-left",
- "icon-arrow-right",
- "icon-arrow-up",
- "icon-arrow-down",
- "icon-share-alt",
- "icon-resize-full",
- "icon-resize-small",
- "icon-plus",
- "icon-minus",
- "icon-asterisk",
- "icon-exclamation-sign",
- "icon-gift",
- "icon-leaf",
- "icon-fire",
- "icon-eye-open",
- "icon-eye-close",
- "icon-warning-sign",
- "icon-plane",
- "icon-calendar",
- "icon-random",
- "icon-comment",
- "icon-magnet",
-
- "icon-chevron-up",
- "icon-chevron-down",
- "icon-retweet",
- "icon-shopping-cart",
- "icon-folder-close",
- "icon-folder-open",
- "icon-resize-vertical",
- "icon-resize-horizontal",
- "icon-hdd",
- "icon-bullhorn",
- "icon-bell",
- "icon-certificate",
- "icon-thumbs-up",
- "icon-thumbs-down",
- "icon-hand-right",
- "icon-hand-left",
- "icon-hand-up",
- "icon-hand-down",
- "icon-circle-arrow-right",
- "icon-circle-arrow-left",
- "icon-circle-arrow-up",
- "icon-circle-arrow-down",
- "icon-globe",
- "icon-wrench",
- "icon-tasks",
- "icon-filter",
- "icon-briefcase",
- "icon-fullscreen"
- );
-
- $frm = e107::getForm();
- $sel = array(''=>'Dark Gray','icon-white'=>'White');
-
- $text .= "";
- $text .= "
Color: ".$frm->select('glyph-color',$sel)." Custom: ".$frm->text('glyph-custom','').$frm->button('glyph-save','Go')."
";
-
- $text .= "
";
-
- $inverse = (e107::getPref('admincss') == "admin_dark.css") ? " icon-white" : "";
-
- foreach($icons as $ic)
- {
- $text .= '- '.$ic.'
';
- $text .= "\n";
- }
-
- $text .= "
";
- $text .= "
";
-
- return $text;
-
-}
-
-
-
-
-
-
-
-
-
-
-}
-
-
-require_once(e_ADMIN."auth.php");
-//e107::lan('core','admin',TRUE);
-
-
-$bootObj = new e_bootstrap;
-$bootObj->init();
-
-
-
-
-
-require_once(e_ADMIN."footer.php");
-exit;
-//
-
-
-?>
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/e107bbcode/editor_plugin.js b/e107_plugins/tinymce/plugins/e107bbcode/editor_plugin.js
deleted file mode 100644
index c6c3984c8..000000000
--- a/e107_plugins/tinymce/plugins/e107bbcode/editor_plugin.js
+++ /dev/null
@@ -1,323 +0,0 @@
-/**
- * $Id$
- *
- * @author Moxiecode
- * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
- */
-
-(function() {
- tinymce.create('tinymce.plugins.e107BBCodePlugin', {
- init : function(ed, url) {
-
- // Bootstrap
- ed.addCommand('mceBoot', function() {
- ed.windowManager.open({
- file : url + '/dialog.php',
- width : 900 , // + parseInt(ed.getLang('e107bbcode.delta_width', 0)),
- height : 450, // + parseInt(ed.getLang('e107bbcode.delta_height', 0)),
- inline : 1
- }, {
- plugin_url : url, // Plugin absolute URL
- some_custom_arg : 'custom arg' // Custom argument
- });
- });
-
- // Register button
- ed.addButton('bootstrap', {
- title : 'Insert Bootstrap Elements',
- cmd : 'mceBoot',
- image : url + '/img/bootstrap.png'
- });
-
- // e107 Bbcode
- ed.addCommand('mcee107', function() {
- ed.windowManager.open({
- file : url + '/dialog.php?bbcode',
- width : 900 , // + parseInt(ed.getLang('e107bbcode.delta_width', 0)),
- height : 450, // + parseInt(ed.getLang('e107bbcode.delta_height', 0)),
- inline : 1
- }, {
- plugin_url : url, // Plugin absolute URL
- some_custom_arg : 'custom arg' // Custom argument
- });
- });
-
- // Register button
- ed.addButton('e107bbcode', {
- title : 'Insert e107 Bbcode',
- cmd : 'mcee107',
- image : url + '/img/bbcode.png'
- });
-
-
-
- // Add a node change handler, selects the button in the UI when a image is selected
- ed.onNodeChange.add(function(ed, cm, n) {
- cm.setActive('example', n.nodeName == 'IMG');
- });
-
-
- // ------------
-
-
- var t = this, dialect = ed.getParam('bbcode_dialect', 'e107').toLowerCase();
-
- ed.onBeforeSetContent.add(function(ed, o) {
-
- o.content = t['_' + dialect + '_bbcode2html'](o.content,url);
- });
-
- ed.onPostProcess.add(function(ed, o) {
- if (o.set)
- o.content = t['_' + dialect + '_bbcode2html'](o.content,url);
-
- if (o.get)
- o.content = t['_' + dialect + '_html2bbcode'](o.content,url);
- });
- },
-
- getInfo : function() {
- return {
- longname : 'e107 BBCode Plugin',
- author : 'Moxiecode Systems AB - Modified by e107 Inc',
- authorurl : 'http://e107.org',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- },
-
- // Private methods
-
- // HTML -> BBCode in PunBB dialect
- _e107_html2bbcode : function(s,url) {
- s = tinymce.trim(s);
-
-
- var p = $.ajax({
- type: "POST",
- url: url + "/parser.php",
- data: { content: s, mode: 'tobbcode' },
- async : false,
-
- dataType: "html",
- success: function(html) {
- return html;
- }
- }).responseText;
-
- return p;
-
-
-
-
- function rep(re, str) {
- s = s.replace(re, str);
- };
-
- // return s;
-
- rep(//gim, "[table]");
- rep(/<\/table>/gim, "[/table]");
- rep(//gim, "[td]");
- rep(/<\/td>/gim, "[/td]");
- rep(/ | /gim, "[tr]");
- rep(/<\/tr>/gim, "[/tr]");
- rep(/
/gim, "[tbody]");
- rep(/<\/tbody>/gim, "[/tbody]");
-
-
- rep(/([\s\S]*)<\/div>/gi,"[center]$1[/center]"); // verified
-
- rep(/
/gi, "[*]"); // verified
- rep(/<\/li>/gi, ""); // verified
- rep(/([\s\S]*?)<\/ul>\n/gim, "[list]$1[/list]"); // verified
-
- rep(/([\s\S]*)<\/ol>/gim,"[list=$1]$2[/list]\n"); // verified
- rep(/([\s\S]*?)<\/ol>/gim,"[list=decimal]$1[/list]\n"); // verified
- rep(/([\s\S]*)<\/span>/gi,"[color=$1]$2[/color]"); // verified
- rep(//gim, "[h]"); // verified
- rep(/<\/h2>/gim, "[/h]"); // verified
-
-
- // example: to [b]
- rep(/(.*?)<\/a>/gi,"[link=$1]$2[/link]");
- rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");
- rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");
- rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");
- rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");
- rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");
- rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]");
- rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]");
- rep(/(.*?)<\/font>/gi,"$1");
-
- // rep(//gi,"[img style=$1]$2[/img]");
-
-
- // New Image Handler // verified
- // rep(/
/gi,"[img style=$1;width:$4px;height:$5px]$2[/img]" );
-
- //rep(/
/gi,"[img style=$1;width:$4px;height:$5px]$2[/img]" )
- rep(/
/gm,"[img style=width:$4px;height:$5px;$1]$2[/img]" );
- rep(/;width:px;height:px/gi, ""); // Img cleanup.
- // rep(/
/gi,"[img]$1[/img]");
-
- rep(/]*>/gi,"[blockquote]");
- rep(/<\/blockquote>/gi,"[/blockquote]");
-
- rep(/]*>/gi,"[code]");
- rep(/<\/code>/gi,"[/code]");
-
- // rep(/(.*?)<\/span>/gi,"[code]$1[/code]");
- // rep(/(.*?)<\/span>/gi,"[quote]$1[/quote]");
- // rep(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");
- // rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");
- // rep(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");
- // rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");
- // rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");
- // rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");
-
- rep(/<\/(strong|b)>/gi,"[/b]");
- rep(/<(strong|b)>/gi,"[b]");
- rep(/<\/(em|i)>/gi,"[/i]");
- rep(/<(em|i)>/gi,"[i]");
- rep(/<\/u>/gi,"[/u]");
- rep(/(.*?)<\/span>/gi,"[u]$1[/u]");
- rep(//gi,"[u]");
-
-
- // Compromise - but BC issues for sure.
- // rep(/
/gi,"[br]");
- // rep(/
/gi,"[br]");
- // rep(/
/gi,"[br]");
-
- rep(/
/gi,"\n");
- rep(/
/gi,"\n");
- rep(/
/gi,"\n");
-
-
- rep(//gi,"");
- rep(/<\/p>/gi,"\n");
- rep(/ /gi," ");
- rep(/"/gi,"\"");
- rep(/</gi,"<");
- rep(/>/gi,">");
- rep(/&/gi,"&");
-
- // e107
-
-
- return s;
- },
-
- // BBCode -> HTML from PunBB dialect
- _e107_bbcode2html : function(s,url) {
- s = tinymce.trim(s);
-
- var p = $.ajax({
- type: "POST",
- url: url + "/parser.php",
- data: { content: s, mode: 'tohtml' },
- async : false,
-
- dataType: "html",
- success: function(html) {
- return html;
- }
- }).responseText;
-
- return p;
-
-
- return s;
-
-
- function rep(re, str) {
- s = s.replace(re, str);
- };
-
-
- // example: [b] to
-
- // rep(/(\r|\n)?/gim, ""); // remove line-breaks
- // rep(/<\/li>(\r|\n)?/gim, "
"); // remove line-breaks
- // rep(/<\/ul>(\r|\n)?/gim, ""); // remove line-breaks
-
- rep(/\[table]/gim, "
");
- rep(/\[\/table]/gim, "
");
- rep(/\[td]/gim, "
");
- rep(/\[\/td]/gim, " | ");
- rep(/\[tr]/gim, "
");
- rep(/\[\/tr]/gim, "
");
- rep(/\[tbody]/gim, "
");
- rep(/\[\/tbody]/gim, "");
-
- rep(/\[h]/gim, "
"); // verified
- rep(/\[\/h]/gim, "
"); // verified
-
- rep(/\[list](?:\n)/gim, "
\n"); // verified
- // rep(/\[list]/gim, ""); // verified
-
- rep(/\[\/list](?:\n)?/gim, "
\n"); // verified
- rep(/^ *?(?:\*|\[\*\])([^\*[]*)/gm,"- $1
\n");
- // return s;
- // rep(/(\[list=.*\])\\*([\s\S]*)(\[\/list])(\n|\r)/gim,"$2
"); // verified
- // rep(/(\[list\])\\*([\s\S]*)(\[\/list])(\n|\r)?/gim,"");// verified
-
-
- rep(/\[center\]([\s\S]*)\[\/center\]/gi,"$1
"); // verified
- rep(/\[color=(.*?)\]([\s\S]*)\[\/color\]/gi,"$2<\/span>"); // verified
-
- // rep(/\[br]/gi,"
"); // compromise
-
- rep(/\[blockquote\]/gi,"");
- rep(/\[\/blockquote\]/gi,"
");
-
- rep(/\[code\]/gi,"");
- rep(/\[\/code\]/gi,"
");
-
- //rep( /(?" )
-
-
- rep(/\[b\]/gi,"");
- rep(/\[\/b\]/gi,"");
- rep(/\[i\]/gi,"");
- rep(/\[\/i\]/gi,"");
- rep(/\[u\]/gi,"");
- rep(/\[\/u\]/gi,"");
- rep(/\[link=([^\]]+)\](.*?)\[\/link\]/gi,"$2");
- rep(/\[url\](.*?)\[\/url\]/gi,"$1");
- // rep(/\[img.*?style=(.*?).*?\](.*?)\[\/img\]/gi,"
");
-
- // When Width and Height are present:
- rep(/\[img\s*?style=(?:width:(\d*)px;height:(\d*)px;)([^\]]*)]([\s\S]*?)\[\/img]/gm, "
");
-
- // No width/height but style is present
- rep(/\[img\s*?style=([^\]]*)]([\s\S]*?)\[\/img]/gi,"
");
-
- rep(/\[img\](.*?)\[\/img\]/gi,"
");
- // rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2");
- // rep(/\[code\](.*?)\[\/code\]/gi,"$1 ");
- // rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 ");
-
- // rep(/
/gm, "
\n");
- rep(/(\r|\n)$/gim,"
");
- // rep(/(\r|\n)/gim,"
\n"); // this will break bullets.
-
-
- // e107 FIXME!
-
-
- // rep("/\[list\](.+?)\[\/list\]/is", '');
-
-
-
-
-//
-
- return s;
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('e107bbcode', tinymce.plugins.e107BBCodePlugin);
-})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/e107bbcode/img/bbcode.png b/e107_plugins/tinymce/plugins/e107bbcode/img/bbcode.png
deleted file mode 100644
index d245e0cbe..000000000
Binary files a/e107_plugins/tinymce/plugins/e107bbcode/img/bbcode.png and /dev/null differ
diff --git a/e107_plugins/tinymce/plugins/e107bbcode/img/bootstrap.png b/e107_plugins/tinymce/plugins/e107bbcode/img/bootstrap.png
deleted file mode 100644
index faa225dfc..000000000
Binary files a/e107_plugins/tinymce/plugins/e107bbcode/img/bootstrap.png and /dev/null differ
diff --git a/e107_plugins/tinymce/plugins/e107bbcode/parser.php b/e107_plugins/tinymce/plugins/e107bbcode/parser.php
deleted file mode 100644
index 815c65f33..000000000
--- a/e107_plugins/tinymce/plugins/e107bbcode/parser.php
+++ /dev/null
@@ -1,143 +0,0 @@
-htmltoBBcode($content); //XXX This breaks inserted images from media-manager. :/
- e107::getBB()->setClass($_SESSION['media_category']);
-
- if(check_class($pref['post_html'])) // raw HTML within [html] tags.
- {
-
- if(strstr($content,"[html]") === false) // BC - convert old BB code text to html.
- {
- e107::getBB()->clearClass();
-
- $content = str_replace('\r\n',"
",$content);
- $content = nl2br($content, true);
- $content = $tp->toHtml($content, true);
- }
-
- $content = str_replace("{e_BASE}","",$content); // We want {e_BASE} in the final data going to the DB, but not the editor.
- $srch = array("","","[html]","[/html]");
- $content = str_replace($srch,"",$content);
- $content = e107::getBB()->parseBBCodes($content); // parse the tag so we see the HTML equivalent while editing!
- echo $content;
- }
- else // bbcode Mode.
- {
-
- // XXX @Cam this breaks new lines, currently we use \n instead [br]
- //echo $tp->toHtml(str_replace("\n","",$content), true);
-
- $content = str_replace("{e_BASE}",e_HTTP, $content); // We want {e_BASE} in the final data going to the DB, but not the editor.
- $content = $tp->toHtml($content, true);
- $content = str_replace(e_MEDIA_IMAGE,"{e_MEDIA_IMAGE}",$content);
-
- echo $content;
- }
-
- e107::getBB()->clearClass();
-}
-
-if($_POST['mode'] == 'tobbcode')
-{
- // echo $_POST['content'];
- $content = stripslashes($_POST['content']);
-
- if(check_class($pref['post_html'])) // Plain HTML mode.
- {
- $srch = array('src="'.e_HTTP.'thumb.php?','src="/{e_MEDIA_IMAGE}');
- $repl = array('src="{e_BASE}thumb.php?','src="{e_BASE}thumb.php?src=e_MEDIA_IMAGE/');
- $content = str_replace($srch, $repl, $content);
-
- // resize the thumbnail to match wysiwyg width/height.
-
- // $psrch = '/
]*src="{e_BASE}thumb.php\?src=([\S]*)w=([\d]*)&h=([\d]*)"(.*)width="([\d]*)" height="([\d]*)"/i';
- // $prepl = '
parseBBTags($content,true); // replace html with bbcode equivalent
-
- echo ($content) ? "[html]".$content."[/html]" : ""; // Add the tags before saving to DB.
- }
- else // bbcode Mode. //XXX Disabled at the moment in tinymce/e_meta.php - post_html is required to activate.
- {
- // [img width=400]/e107_2.0/thumb.php?src={e_MEDIA_IMAGE}2012-12/e107org_white_stripe.png&w=400&h=0[/img]
- // $content = str_replace("{e_BASE}","", $content); // We want {e_BASE} in the final data going to the DB, but not the editor.
-
- echo e107::getBB()->htmltoBBcode($content); // not reliable enough yet.
- }
-
-}
-
-/**
- * Rebuld
tags with modified thumbnail size.
- */
-function updateImg($text)
-{
-
- $arr = e107::getParser()->getTags($text,'img');
-
- $srch = array("?","&");
- $repl = array("\?","&");
-
- foreach($arr['img'] as $img)
- {
- $regexp = '#(
]*src="'.str_replace($srch, $repl, $img['src']).'"[^>]*>)#';
-
- $width = vartrue($img['width']) ? ' width="'.$img['width'].'"' : '';
- $height = vartrue($img['height']) ? ' height="'.$img['height'].'"' : '';
- $style = vartrue($img['style']) ? ' style="'.$img['style'].'"' : '';
- $class = vartrue($img['class']) ? ' class="'.$img['class'].'"' : '';
- $alt = vartrue($img['alt']) ? ' alt="'.$img['alt'].'"' : '';
-
- list($url,$qry) = explode("?",$img['src']);
-
- parse_str($qry,$qr);
-
- $qr['w'] = $img['width'];
- $qr['h'] = $img['height'];
-
- $src = $url."?".urldecode(http_build_query($qr));
-
- $replacement = '
';
-
- $text = preg_replace($regexp, $replacement, $text);
-
-
- }
-
- return $text;
-
-}
-
-?>
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/emoticons/editor_plugin.js b/e107_plugins/tinymce/plugins/emoticons/editor_plugin.js
deleted file mode 100644
index d525173b0..000000000
--- a/e107_plugins/tinymce/plugins/emoticons/editor_plugin.js
+++ /dev/null
@@ -1,91 +0,0 @@
-/**
- * $Id$
- *
- * @author Moxiecode
- * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
- */
-
-(function() {
- // Load plugin specific language pack
- tinymce.PluginManager.requireLangPack('emoticons');
-
- tinymce.create('tinymce.plugins.EmoticonsPlugin', {
- /**
- * Initializes the plugin, this will be executed after the plugin has been created.
- * This call is done before the editor instance has finished it's initialization so use the onInit event
- * of the editor instance to intercept that event.
- *
- * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
- * @param {string} url Absolute URL to where the plugin is located.
- */
- init : function(ed, url) {
- // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
- ed.addCommand('mceEmotion', function() {
- ed.windowManager.open({
- file : url + '/emoticons.php',
- width : 480 + parseInt(ed.getLang('emoticons.delta_width', 0)),
- height : 340 + parseInt(ed.getLang('emoticons.delta_height', 0)),
- inline : 1
- }, {
- plugin_url : url, // Plugin absolute URL
- some_custom_arg : 'custom arg' // Custom argument
- });
- });
-
- // Register example button
- ed.addButton('emoticons', {
- title : 'emoticons.desc',
- // onclick: function(){
- cmd : 'mceEmotion',
-
-
- // $("div.modal-body").html('hi there');
- // $('div.modal-body').load(url + "/emoticons.php");
- // $('#uiModal').modal('show');
-
-
- // },
- //cmd : 'mceEmotion',
- image : url + '/images/emoticons.png'
- });
-
- // Add a node change handler, selects the button in the UI when a image is selected
- ed.onNodeChange.add(function(ed, cm, n) {
- cm.setActive('emoticons', n.nodeName == 'IMG');
- });
- },
-
- /**
- * Creates control instances based in the incomming name. This method is normally not
- * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
- * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
- * method can be used to create those.
- *
- * @param {String} n Name of the control to create.
- * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
- * @return {tinymce.ui.Control} New control instance or null if no control was created.
- */
- createControl : function(n, cm) {
- return null;
- },
-
- /**
- * Returns information about the plugin as a name/value array.
- * The current keys are longname, author, authorurl, infourl and version.
- *
- * @return {Object} Name/value array containing information about the plugin.
- */
- getInfo : function() {
- return {
- longname : 'Emoticons plugin',
- author : 'CaMer0n',
- authorurl : 'http://e107coders.org',
- infourl : '',
- version : "1.0"
- };
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('emoticons', tinymce.plugins.EmoticonsPlugin);
-})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/emoticons/emoticons.php b/e107_plugins/tinymce/plugins/emoticons/emoticons.php
deleted file mode 100644
index 8d5ea3425..000000000
--- a/e107_plugins/tinymce/plugins/emoticons/emoticons.php
+++ /dev/null
@@ -1,76 +0,0 @@
-';
- tinyMCEPopup.editor.execCommand('mceInsertContent', false, html);
- tinyMCEPopup.close();
- });
-
- $('#e-cancel').click(function () {
-
- tinyMCEPopup.close();
- });
-
-});
-
-
-",'jquery');
-
-
-
-e107::lan('core','admin',TRUE);
-
-require_once(e_ADMIN."auth.php");
-
-
- $emotes = $sysprefs->getArray("emote_".$pref['emotepack']);
-
- $str = "";
- foreach($emotes as $key => $value)
- {
- $key = str_replace("!", ".", $key);
- $key = preg_replace("#_(\w{3})$#", ".\\1", $key);
- $value2 = substr($value, 0, strpos($value, " "));
- $value = ($value2 ? $value2 : $value);
- $str .= "\n
";
-
- }
-
- $str .= "
-
-
- ";
-
-$ns->tablerender("Emoticons",$str);
-
-
-
-require_once(e_ADMIN."footer.php");
-exit;
-
-
-
-?>
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/emoticons/images/emoticons.png b/e107_plugins/tinymce/plugins/emoticons/images/emoticons.png
deleted file mode 100644
index f82a4ce00..000000000
Binary files a/e107_plugins/tinymce/plugins/emoticons/images/emoticons.png and /dev/null differ
diff --git a/e107_plugins/tinymce/plugins/emoticons/index.html b/e107_plugins/tinymce/plugins/emoticons/index.html
deleted file mode 100644
index e69de29bb..000000000
diff --git a/e107_plugins/tinymce/plugins/emoticons/langs/en.js b/e107_plugins/tinymce/plugins/emoticons/langs/en.js
deleted file mode 100644
index adf84e486..000000000
--- a/e107_plugins/tinymce/plugins/emoticons/langs/en.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// UK lang variables
-
-tinyMCE.addI18n('en.emoticons',{
- desc : 'Insert emotion'
-});
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/epagebreak/css/content.css b/e107_plugins/tinymce/plugins/epagebreak/css/content.css
deleted file mode 100644
index c949d58cc..000000000
--- a/e107_plugins/tinymce/plugins/epagebreak/css/content.css
+++ /dev/null
@@ -1 +0,0 @@
-.mcePageBreak {display:block;border:0;width:100%;height:12px;border-top:1px dotted #ccc;margin-top:15px;background:#fff url(../img/pagebreak.gif) no-repeat center top;}
diff --git a/e107_plugins/tinymce/plugins/epagebreak/editor_plugin.js b/e107_plugins/tinymce/plugins/epagebreak/editor_plugin.js
deleted file mode 100644
index 1af5b3f19..000000000
--- a/e107_plugins/tinymce/plugins/epagebreak/editor_plugin.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- tinymce.create('tinymce.plugins.ePageBreakPlugin', {
- init : function(ed, url) {
-
- var pb = '
', cls = 'mcePageBreak', sep = ed.getParam('pagebreak_separator', ''), pbRE;
-
- pbRE = new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g, function(a) {return '\\' + a;}), 'g');
-
- // Register commands
-
- ed.addCommand('mcePageBreak', function()
- {
- // var name = prompt("Please enter title for this page","");
- // ed.execCommand('mceInsertContent', 0, ""+ name + "
");
- // ed.execCommand('mceInsertContent', 0, "[newpage="+ name + "]");
- ed.execCommand('mceInsertContent', 0, "[newpage]");
- });
-
- // Register buttons
- ed.addButton('epagebreak', {
- title : 'pagebreak.desc',
- cmd : cls,
- image : url + '/img/epagebreak.gif'
- });
-
- ed.onInit.add(function() {
- if (ed.theme.onResolveName) {
- ed.theme.onResolveName.add(function(th, o) {
- if (o.node.nodeName == 'IMG' && ed.dom.hasClass(o.node, cls))
- o.name = 'epagebreak';
- });
- }
- });
-
- ed.onClick.add(function(ed, e) {
- e = e.target;
-
- if (e.nodeName === 'IMG' && ed.dom.hasClass(e, cls))
- ed.selection.select(e);
- });
-
- ed.onNodeChange.add(function(ed, cm, n) {
- cm.setActive('epagebreak', n.nodeName === 'IMG' && ed.dom.hasClass(n, cls));
- });
-
- ed.onBeforeSetContent.add(function(ed, o) {
- o.content = o.content.replace(pbRE, pb);
- });
-
- ed.onPostProcess.add(function(ed, o) {
- if (o.get)
- o.content = o.content.replace(/
]+>/g, function(im) {
- if (im.indexOf('class="mcePageBreak') !== -1)
- im = sep;
-
- return im;
- });
- });
- },
-
- getInfo : function() {
- return {
- longname : 'ePageBreak',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('epagebreak', tinymce.plugins.ePageBreakPlugin);
-})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/epagebreak/img/epagebreak.gif b/e107_plugins/tinymce/plugins/epagebreak/img/epagebreak.gif
deleted file mode 100644
index f88030f04..000000000
Binary files a/e107_plugins/tinymce/plugins/epagebreak/img/epagebreak.gif and /dev/null differ
diff --git a/e107_plugins/tinymce/plugins/example/dialog.htm b/e107_plugins/tinymce/plugins/example/dialog.htm
deleted file mode 100644
index 50b2b3445..000000000
--- a/e107_plugins/tinymce/plugins/example/dialog.htm
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
- {#example_dlg.title}
-
-
-
-
-
-
-
-
-
diff --git a/e107_plugins/tinymce/plugins/example/editor_plugin.js b/e107_plugins/tinymce/plugins/example/editor_plugin.js
deleted file mode 100644
index ec1f81ea4..000000000
--- a/e107_plugins/tinymce/plugins/example/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/example/editor_plugin_src.js b/e107_plugins/tinymce/plugins/example/editor_plugin_src.js
deleted file mode 100644
index 9a0e7da15..000000000
--- a/e107_plugins/tinymce/plugins/example/editor_plugin_src.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- // Load plugin specific language pack
- tinymce.PluginManager.requireLangPack('example');
-
- tinymce.create('tinymce.plugins.ExamplePlugin', {
- /**
- * Initializes the plugin, this will be executed after the plugin has been created.
- * This call is done before the editor instance has finished it's initialization so use the onInit event
- * of the editor instance to intercept that event.
- *
- * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
- * @param {string} url Absolute URL to where the plugin is located.
- */
- init : function(ed, url) {
- // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
- ed.addCommand('mceExample', function() {
- ed.windowManager.open({
- file : url + '/dialog.htm',
- width : 320 + parseInt(ed.getLang('example.delta_width', 0)),
- height : 120 + parseInt(ed.getLang('example.delta_height', 0)),
- inline : 1
- }, {
- plugin_url : url, // Plugin absolute URL
- some_custom_arg : 'custom arg' // Custom argument
- });
- });
-
- // Register example button
- ed.addButton('example', {
- title : 'example.desc',
- cmd : 'mceExample',
- image : url + '/img/example.gif'
- });
-
- // Add a node change handler, selects the button in the UI when a image is selected
- ed.onNodeChange.add(function(ed, cm, n) {
- cm.setActive('example', n.nodeName == 'IMG');
- });
- },
-
- /**
- * Creates control instances based in the incomming name. This method is normally not
- * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
- * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
- * method can be used to create those.
- *
- * @param {String} n Name of the control to create.
- * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
- * @return {tinymce.ui.Control} New control instance or null if no control was created.
- */
- createControl : function(n, cm) {
- return null;
- },
-
- /**
- * Returns information about the plugin as a name/value array.
- * The current keys are longname, author, authorurl, infourl and version.
- *
- * @return {Object} Name/value array containing information about the plugin.
- */
- getInfo : function() {
- return {
- longname : 'Example plugin',
- author : 'Some author',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',
- version : "1.0"
- };
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin);
-})();
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/example/img/example.gif b/e107_plugins/tinymce/plugins/example/img/example.gif
deleted file mode 100644
index 1ab5da446..000000000
Binary files a/e107_plugins/tinymce/plugins/example/img/example.gif and /dev/null differ
diff --git a/e107_plugins/tinymce/plugins/example/js/dialog.js b/e107_plugins/tinymce/plugins/example/js/dialog.js
deleted file mode 100644
index fa8341132..000000000
--- a/e107_plugins/tinymce/plugins/example/js/dialog.js
+++ /dev/null
@@ -1,19 +0,0 @@
-tinyMCEPopup.requireLangPack();
-
-var ExampleDialog = {
- init : function() {
- var f = document.forms[0];
-
- // Get the selected contents as text and place it in the input
- f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'});
- f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg');
- },
-
- insert : function() {
- // Insert the contents from the input into the document
- tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value);
- tinyMCEPopup.close();
- }
-};
-
-tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);
diff --git a/e107_plugins/tinymce/plugins/example/langs/en.js b/e107_plugins/tinymce/plugins/example/langs/en.js
deleted file mode 100644
index e0784f80f..000000000
--- a/e107_plugins/tinymce/plugins/example/langs/en.js
+++ /dev/null
@@ -1,3 +0,0 @@
-tinyMCE.addI18n('en.example',{
- desc : 'This is just a template button'
-});
diff --git a/e107_plugins/tinymce/plugins/example/langs/en_dlg.js b/e107_plugins/tinymce/plugins/example/langs/en_dlg.js
deleted file mode 100644
index ebcf948da..000000000
--- a/e107_plugins/tinymce/plugins/example/langs/en_dlg.js
+++ /dev/null
@@ -1,3 +0,0 @@
-tinyMCE.addI18n('en.example_dlg',{
- title : 'This is just a example title'
-});
diff --git a/e107_plugins/tinymce/plugins/fullpage/css/fullpage.css b/e107_plugins/tinymce/plugins/fullpage/css/fullpage.css
deleted file mode 100644
index 2675cec15..000000000
--- a/e107_plugins/tinymce/plugins/fullpage/css/fullpage.css
+++ /dev/null
@@ -1,143 +0,0 @@
-/* Hide the advanced tab */
-#advanced_tab {
- display: none;
-}
-
-#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright {
- width: 280px;
-}
-
-#doctype, #docencoding {
- width: 200px;
-}
-
-#langcode {
- width: 30px;
-}
-
-#bgimage {
- width: 220px;
-}
-
-#fontface {
- width: 240px;
-}
-
-#leftmargin, #rightmargin, #topmargin, #bottommargin {
- width: 50px;
-}
-
-.panel_wrapper div.current {
- height: 400px;
-}
-
-#stylesheet, #style {
- width: 240px;
-}
-
-#doctypes {
- width: 200px;
-}
-
-/* Head list classes */
-
-.headlistwrapper {
- width: 100%;
-}
-
-.selected {
- border: 1px solid #0A246A;
- background-color: #B6BDD2;
-}
-
-.toolbar {
- width: 100%;
-}
-
-#headlist {
- width: 100%;
- margin-top: 3px;
- font-size: 11px;
-}
-
-#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element {
- display: none;
-}
-
-#addmenu {
- position: absolute;
- border: 1px solid gray;
- display: none;
- z-index: 100;
- background-color: white;
-}
-
-#addmenu a {
- display: block;
- width: 100%;
- line-height: 20px;
- text-decoration: none;
- background-color: white;
-}
-
-#addmenu a:hover {
- background-color: #B6BDD2;
- color: black;
-}
-
-#addmenu span {
- padding-left: 10px;
- padding-right: 10px;
-}
-
-#updateElementPanel {
- display: none;
-}
-
-#script_element .panel_wrapper div.current {
- height: 108px;
-}
-
-#style_element .panel_wrapper div.current {
- height: 108px;
-}
-
-#link_element .panel_wrapper div.current {
- height: 140px;
-}
-
-#element_script_value {
- width: 100%;
- height: 100px;
-}
-
-#element_comment_value {
- width: 100%;
- height: 120px;
-}
-
-#element_style_value {
- width: 100%;
- height: 100px;
-}
-
-#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title {
- width: 250px;
-}
-
-.updateElementButton {
- margin-top: 3px;
-}
-
-/* MSIE specific styles */
-
-* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton {
- width: 22px;
- height: 22px;
-}
-
-textarea {
- height: 55px;
-}
-
-.panel_wrapper div.current {height:420px;}
\ No newline at end of file
diff --git a/e107_plugins/tinymce/plugins/fullpage/editor_plugin.js b/e107_plugins/tinymce/plugins/fullpage/editor_plugin.js
deleted file mode 100644
index dcf76024d..000000000
--- a/e107_plugins/tinymce/plugins/fullpage/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){var b=tinymce.each,a=tinymce.html.Node;tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(c,d){var e=this;e.editor=c;c.addCommand("mceFullPageProperties",function(){c.windowManager.open({file:d+"/fullpage.htm",width:430+parseInt(c.getLang("fullpage.delta_width",0)),height:495+parseInt(c.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:d,data:e._htmlToData()})});c.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});c.onBeforeSetContent.add(e._setContent,e);c.onGetContent.add(e._getContent,e)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_htmlToData:function(){var f=this._parseHeader(),h={},c,i,g,e=this.editor;function d(l,j){var k=l.attr(j);return k||""}h.fontface=e.getParam("fullpage_default_fontface","");h.fontsize=e.getParam("fullpage_default_fontsize","");i=f.firstChild;if(i.type==7){h.xml_pi=true;g=/encoding="([^"]+)"/.exec(i.value);if(g){h.docencoding=g[1]}}i=f.getAll("#doctype")[0];if(i){h.doctype=""}i=f.getAll("title")[0];if(i&&i.firstChild){h.metatitle=i.firstChild.value}b(f.getAll("meta"),function(m){var k=m.attr("name"),j=m.attr("http-equiv"),l;if(k){h["meta"+k.toLowerCase()]=m.attr("content")}else{if(j=="Content-Type"){l=/charset\s*=\s*(.*)\s*/gi.exec(m.attr("content"));if(l){h.docencoding=l[1]}}}});i=f.getAll("html")[0];if(i){h.langcode=d(i,"lang")||d(i,"xml:lang")}i=f.getAll("link")[0];if(i&&i.attr("rel")=="stylesheet"){h.stylesheet=i.attr("href")}i=f.getAll("body")[0];if(i){h.langdir=d(i,"dir");h.style=d(i,"style");h.visited_color=d(i,"vlink");h.link_color=d(i,"link");h.active_color=d(i,"alink")}return h},_dataToHtml:function(g){var f,d,h,j,k,e=this.editor.dom;function c(n,l,m){n.attr(l,m?m:undefined)}function i(l){if(d.firstChild){d.insert(l,d.firstChild)}else{d.append(l)}}f=this._parseHeader();d=f.getAll("head")[0];if(!d){j=f.getAll("html")[0];d=new a("head",1);if(j.firstChild){j.insert(d,j.firstChild,true)}else{j.append(d)}}j=f.firstChild;if(g.xml_pi){k='version="1.0"';if(g.docencoding){k+=' encoding="'+g.docencoding+'"'}if(j.type!=7){j=new a("xml",7);f.insert(j,f.firstChild,true)}j.value=k}else{if(j&&j.type==7){j.remove()}}j=f.getAll("#doctype")[0];if(g.doctype){if(!j){j=new a("#doctype",10);if(g.xml_pi){f.insert(j,f.firstChild)}else{i(j)}}j.value=g.doctype.substring(9,g.doctype.length-1)}else{if(j){j.remove()}}j=f.getAll("title")[0];if(g.metatitle){if(!j){j=new a("title",1);j.append(new a("#text",3)).value=g.metatitle;i(j)}}if(g.docencoding){j=null;b(f.getAll("meta"),function(l){if(l.attr("http-equiv")=="Content-Type"){j=l}});if(!j){j=new a("meta",1);j.attr("http-equiv","Content-Type");j.shortEnded=true;i(j)}j.attr("content","text/html; charset="+g.docencoding)}b("keywords,description,author,copyright,robots".split(","),function(m){var l=f.getAll("meta"),n,p,o=g["meta"+m];for(n=0;n"))},_parseHeader:function(){return new tinymce.html.DomParser({validate:false,root_name:"#document"}).parse(this.head)},_setContent:function(g,d){var m=this,i,c,h=d.content,f,l="",e=m.editor.dom,j;function k(n){return n.replace(/<\/?[A-Z]+/g,function(o){return o.toLowerCase()})}if(d.format=="raw"&&m.head){return}if(d.source_view&&g.getParam("fullpage_hide_in_source_view")){return}h=h.replace(/<(\/?)BODY/gi,"<$1body");i=h.indexOf("",i);m.head=k(h.substring(0,i+1));c=h.indexOf("\n