doud18 Posted December 3, 2009 Share Posted December 3, 2009 Bonjour à tous,Voila je suis parti depuis de matin dans l'intégration de l'editeur tinyMCE qui se trouve déja dans Prestashop, dans ma page Administration/catégories/description. Alors pour ce faire j'ai été regardé dans AminProducts.php et j'ai pris ce morceau de code : [removed][removed] [removed] function tinyMCEInit(element) { $().ready(function() { $(element).tinymce({ // Location of TinyMCE script script_url : \''.__PS_BASE_URI__.'js/tinymce/jscripts/tiny_mce/tiny_mce.js\', // General options theme : "advanced", plugins : "safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen", // Theme options theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,pagebreak", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", width : "100", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true, content_css : "'.__PS_BASE_URI__.'themes/'._THEME_NAME_.'/css/global.css", // Drop lists for link/image/media/template dialogs template_external_list_url : "lists/template_list.js", external_link_list_url : "lists/link_list.js", external_image_list_url : "lists/image_list.js", media_external_list_url : "lists/media_list.js", elements : "nourlconvert", convert_urls : false, language : "'.(file_exists(_PS_ROOT_DIR_.'/js/tinymce/jscripts/tiny_mce/langs/'.$iso.'.js') ? $iso : 'en').'" }); }); } tinyMCEInit(\'textarea.rte\'); toggleVirtualProduct(getE(\'is_virtual_good\')); [removed] et je l'ai copié dans AdminCatégories.php avant la fin Mais voila ce n'est pas aussi simple et ca ne fonctionne pas est ce quelqu'un aurait une ideé??Merci Link to comment Share on other sites More sharing options...
doud18 Posted December 3, 2009 Author Share Posted December 3, 2009 Voila j'ai avancé dans le chmilblic : En plus du code de tout a l'heure j'ai coller : <textarea class="rte" cols="100" rows="10" id="description_short_'.$language['id_lang'].'" name="description_short_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'description_short', $language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea> '; dans mon fichier Admincatégories.php en dessous : et j'ai enlever l'ancien.Voila j'ai bien mon éditeur qui apparait dans ma page Admin/Catalogue/Catégories mais qui ne met pas en formes et ne prends pas les imagesUne idée serait vraiment la bien venue. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now