This commit is contained in:
Vanilla Thunder 2012-12-20 22:18:41 +01:00
parent fb2e264928
commit c749bb99b2
5 changed files with 26 additions and 29 deletions

View File

@ -3,11 +3,9 @@ TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor contr
More information here: http://www.tinymce.com/
and here: https://github.com/tinymce
## module version 1.0.1 from 2012-12-19
## module version 1.0.2 from 2012-12-20
### changelog
* destroying smarty tags fixed
* tinyMCE 3.5.8 update
* module settings for relative urls and editor height added
* bugfix: changed text haven't been saved without toggling editor
## INSTALLATION
### upload over ftp/ssh:

View File

@ -19,7 +19,7 @@ $aModule = array(
'title' => '<strong style="color:#006a8c;border: 1px solid #e30061;padding: 0 2px;background:white;">HDI</strong> <strong>TinyMCE 3.5.8</strong>',
'description' => 'backend implementation of TinyMCE Editor<br/>visit <a href="http://www.tinymce.com/" target="_blank">http://www.tinymce.com/</a> for more details',
'thumbnail' => 'hdi.png',
'version' => '1.0.1 (2012-12-19)</dd><dt>newest version</dt><dd><img src="https://raw.github.com/vanilla-thunder/hdi-tinymce/module/version.jpg" /><br/>
'version' => '1.0.2 (2012-12-20)</dd><dt>newest version</dt><dd><img src="https://raw.github.com/vanilla-thunder/hdi-tinymce/module/version.jpg" /><br/>
<a style="display: inline-block; padding: 1px 15px; background: #f0f0f0; border: 1px solid gray" href="https://github.com/vanilla-thunder/hdi-tinymce/" target="_blank">info</a> <a style="display: inline-block; padding: 1px 15px; background: #f0f0f0; border: 1px solid gray" href="https://github.com/vanilla-thunder/hdi-tinymce/archive/master.zip">download</a>',
'author' => 'Marat Bedoev, HEINER DIRECT GmbH & Co. KG',
'email' => 'info@heiner-direct.com',

View File

@ -1,20 +1,19 @@
[{*
* HDI TinyMCE
* Copyright (C) 2012 HEINER DIRECT GmbH & Co. KG
* info: info@heiner-direct.com
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*}]
[{$smarty.block.parent}]
[{* toggle TinyMCE Editor *}]
[{if $tinyMCE }]
<li style="margin-left: 50px;"><a style="border: 1px solid black; background: #ffc4a4;padding: 3px 10px;" href="javascript:;" onclick="tinyMCE.get('editor_[{$sField}]').hide();return false;">TinyMCE ausschalten</a></li>
<li><a style="border: 1px solid black; background: #d5ffa4;padding: 3px 10px;" href="javascript:;" onclick="tinyMCE.get('editor_[{$sField}]').show();return false;">TinyMCE anzeigen</a></li>
[{*
* HDI TinyMCE
* Copyright (C) 2012 HEINER DIRECT GmbH & Co. KG
* info: info@heiner-direct.com
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*}]
[{$smarty.block.parent}]
[{* toggle TinyMCE Editor *}]
[{if $tinyMCE }]
<li style="margin-left: 50px;"><a style="border: 1px solid #0089EE; color: #0089EE;padding: 3px 10px;" href="javascript:;" onclick="tinymce.execCommand('mceToggleEditor',false,'editor_[{$sField}]');"><span>TinyMCE zeigen/verstecken</span></a></li>
[{/if}]

View File

@ -2,10 +2,9 @@
<script type="text/javascript">
var tinyMCE = null;
function copyLongDescFromTinyMCE(sIdent) {
var editor = tinyMCE.get('editor_' + sIdent);
if (tinyMCE && editor) {
editor.show();
content = editor.getContent();
var editor = tinyMCE.activeEditor;
if (editor && editor.isHidden() !== true) {
content = editor.getContent({format : 'raw'});
if (content !== null) {
// restore smarty code that has been masked by htmlentities:
var aSmartyParts = content.split("[" + "{");
@ -43,6 +42,7 @@
mode: "textareas",
theme: "advanced",
plugins: "[{if $cfg->getConfigParam("bTinyMCE_autolink")}]autolink,[{/if}][{if $cfg->getConfigParam("bTinyMCE_lists")}]lists,[{/if}][{if $cfg->getConfigParam("bTinyMCE_pagebreak")}]pagebreak,[{/if}][{if $cfg->getConfigParam("bTinyMCE_style")}]style,[{/if}][{if $cfg->getConfigParam("bTinyMCE_layer")}]layer,[{/if}][{if $cfg->getConfigParam("bTinyMCE_table")}]table,[{/if}][{if $cfg->getConfigParam("bTinyMCE_save")}]save,[{/if}][{if $cfg->getConfigParam("bTinyMCE_advhr")}]advhr,[{/if}][{if $cfg->getConfigParam("bTinyMCE_advimage")}]advimage,[{/if}][{if $cfg->getConfigParam("bTinyMCE_advlink")}]advlink,[{/if}][{if $cfg->getConfigParam("bTinyMCE_emotions")}]emotions,[{/if}][{if $cfg->getConfigParam("bTinyMCE_iespell")}]iespell,[{/if}][{if $cfg->getConfigParam("bTinyMCE_inlinepopups")}]inlinepopups,[{/if}][{if $cfg->getConfigParam("bTinyMCE_insertdatetime")}]insertdatetime,[{/if}][{if $cfg->getConfigParam("bTinyMCE_preview")}]preview,[{/if}][{if $cfg->getConfigParam("bTinyMCE_media")}]media,[{/if}][{if $cfg->getConfigParam("bTinyMCE_searchreplace")}]searchreplace,[{/if}][{if $cfg->getConfigParam("bTinyMCE_print")}]print,[{/if}][{if $cfg->getConfigParam("bTinyMCE_contextmenu")}]contextmenu,[{/if}][{if $cfg->getConfigParam("bTinyMCE_paste")}]paste,[{/if}][{if $cfg->getConfigParam("bTinyMCE_directionality")}]directionality,[{/if}][{if $cfg->getConfigParam("bTinyMCE_fullscreen")}]fullscreen,[{/if}][{if $cfg->getConfigParam("bTinyMCE_noneditable")}]noneditable,[{/if}][{if $cfg->getConfigParam("bTinyMCE_visualchars")}]visualchars,[{/if}][{if $cfg->getConfigParam("bTinyMCE_nonbreaking")}]nonbreaking,[{/if}][{if $cfg->getConfigParam("bTinyMCE_xhtmlxtras")}]xhtmlxtras,[{/if}][{if $cfg->getConfigParam("bTinyMCE_template")}]template,[{/if}][{if $cfg->getConfigParam("bTinyMCE_wordcount")}]wordcount,[{/if}][{if $cfg->getConfigParam("bTinyMCE_advlist")}]advlist,[{/if}][{if $cfg->getConfigParam("bTinyMCE_autosave")}]autosave,[{/if}][{if $cfg->getConfigParam("bTinyMCE_visualblocks")}]visualblocks[{/if}][{if $cfg->getConfigParam("sTinyMCE_customplugins")}][{$cfg->getConfigParam("sTinyMCE_customplugins")}][{/if}]",
// Theme options
theme_advanced_buttons1: "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect",
theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
@ -62,6 +62,6 @@
//media_external_list_url : "lists/media_list.js",
});
</script>
<textarea id='editor_[{$sField}]' style='width:[{$iWidth}]; height:[{$iHeight}];'>[{$sContent}]</textarea>
<textarea id='editor_[{$sField}]' name="content" style='width:[{$iWidth}]; height:[{$iHeight}];'>[{$sContent}]</textarea>
[{assign var=tinyMCE value=1 }]
<!-- /TinyMCE -->

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB