[-] BO : #PSTEST-583 - Add translation for the button "Edit this mail templates", and fixed tinyMCE area not shown on mail translation page
This commit is contained in:
@@ -1404,7 +1404,7 @@ class AdminTranslationsControllerCore extends AdminController
|
||||
</div><!-- .label-subject -->';
|
||||
$str_return .= '
|
||||
<iframe style="background:white;border:1px solid #DFD5C3;" border="0" src ="'.$url.'?'.(rand(0, 1000000000000)).'" width="565" height="497"></iframe>
|
||||
<a style="display:block;margin-top:5px;width:130px;" href="#" onclick="$(this).parent().hide(); displayTiny($(this).parent().next()); return false;" class="button">Edit this mail template</a>
|
||||
<a style="display:block;margin-top:5px;width:130px;" href="#" onclick="$(this).parent().hide(); displayTiny($(this).parent().next()); return false;" class="button">'.$this->l('Edit this mail template').'</a>
|
||||
</div>
|
||||
<textarea style="display:none;" class="rte mailrte" cols="80" rows="30" name="'.$group_name.'[html]['.($name_for_module ? $name_for_module.'|' : '' ).$mail_name.']">'.(isset($content[$lang]) ? Tools::htmlentitiesUTF8(stripslashes($content[$lang])) : '').'</textarea>
|
||||
</div><!-- .mail-form -->
|
||||
@@ -1439,9 +1439,12 @@ class AdminTranslationsControllerCore extends AdminController
|
||||
<script type="text/javascript" src="'.__PS_BASE_URI__.'js/tiny_mce/tiny_mce.js"></script>
|
||||
<script type="text/javascript" src="'.__PS_BASE_URI__.'js/tinymce.inc.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
tinySetup();
|
||||
});
|
||||
function displayTiny(obj) {
|
||||
tinyMCE.get(obj.attr(\'name\')).show();
|
||||
}
|
||||
tinyMCE.get(obj.attr(\'name\')).show();
|
||||
}
|
||||
</script>';
|
||||
}
|
||||
public function initFormMails($lang, $noDisplay = false)
|
||||
|
||||
Reference in New Issue
Block a user