avrilev Posted September 6, 2013 Share Posted September 6, 2013 Hello all, Is there a richer text editor more advanced than the one currently used by PS? Like the one we find on Joomla? Thank to all responders, Avri Link to comment Share on other sites More sharing options...
vekia Posted September 6, 2013 Share Posted September 6, 2013 unfortunately it isn't possible to use other "rich editor" engine. Prestashop allows to use only tinyMCE editor. as far as i know joomla uses CKEditor, it's very similar to tinyMCE. what you exactly expect? what features you need in rich editor? maybe there is way to extend it (yes! it is possible) Link to comment Share on other sites More sharing options...
avrilev Posted September 6, 2013 Author Share Posted September 6, 2013 Thank you. even with the tinyMCE in Joomla you can extend it. I would like to know the way to do this in PS. Can you tutor me? Link to comment Share on other sites More sharing options...
vekia Posted September 6, 2013 Share Posted September 6, 2013 this is tutorial for CMS pages: extend cms tinymce features you can also do the same for products, categories etc. but in this case you will have to edit different file. Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2013 Share Posted September 6, 2013 And my contribution http://nemops.com/enable-tinymce-commands-prestashop-1-5/ Link to comment Share on other sites More sharing options...
avrilev Posted September 6, 2013 Author Share Posted September 6, 2013 Again, thank you. Can you point me to those other files, please? Link to comment Share on other sites More sharing options...
vekia Posted September 6, 2013 Share Posted September 6, 2013 here it is: admin_dir/themes/default/template/controllers/products/helpers/form/form.tpl Link to comment Share on other sites More sharing options...
avrilev Posted September 6, 2013 Author Share Posted September 6, 2013 Oh this I did already. It's in the link you specify earlier... Link to comment Share on other sites More sharing options...
vekia Posted September 6, 2013 Share Posted September 6, 2013 nope in the tutorial i described how to do it for: _ADMIN_DIR_/themes/default/template/helpers/form/form.tpl and for products is: _ADMIN_DIR_/themes/default/template/controllers/products/helpers/form/form.tpl Link to comment Share on other sites More sharing options...
avrilev Posted September 6, 2013 Author Share Posted September 6, 2013 Right, you are correct of course. Sorry. Link to comment Share on other sites More sharing options...
avrilev Posted September 6, 2013 Author Share Posted September 6, 2013 I got another issue: Some of the command buttons are missing after updating the code as you implied, such as rtl and ltr... Do you know what to do to re-enable them? Link to comment Share on other sites More sharing options...
vekia Posted September 6, 2013 Share Posted September 6, 2013 can you show screenshot about what tinymce feature you're talking? by default it looks like: where is ltr / rtl feature? Link to comment Share on other sites More sharing options...
avrilev Posted September 6, 2013 Author Share Posted September 6, 2013 (edited) This is the whole point. They are missing from the tabs that you see, but in the code lines you gave me, they exist. theme_advanced_buttons1 : "save,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,codemagic,insertdate,inserttime,preview,forecolor,backcolor", theme_advanced_buttons3 : "code,tablecontrols,hr,removeformat,visualaid,sub,sup,charmap,emotions,iespell,media,advhr,print,ltr,rtl,fullscreen", theme_advanced_buttons4 : "styleprops,cite,abbr,acronym,del,ins,attribs,visualchars,nonbreaking,template,pagebreak,restoredraft,visualblocks", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : false, extended_valid_elements: 'pre[*],script[*],style[*]', valid_children: "+body[style|script],pre[script|div|p|br|span|img|style|h1|h2|h3|h4|h5],*[*]", valid_elements : '*[*]', force_p_newlines : false, cleanup: false, forced_root_block : false, force_br_newlines : true Edited September 6, 2013 by avrilev (see edit history) Link to comment Share on other sites More sharing options...
avrilev Posted September 6, 2013 Author Share Posted September 6, 2013 By the way, lots of features are missing from the display... not only "rtl" & "ltr" Link to comment Share on other sites More sharing options...
avrilev Posted September 6, 2013 Author Share Posted September 6, 2013 Here's the screenshot Link to comment Share on other sites More sharing options...
vekia Posted September 6, 2013 Share Posted September 6, 2013 thanks for all informations and your attention, i thought that default prestashop tinymce editor has got these features, and after modifications they disappeared. as i can see now, the problem is related to differencies between joomla editor and prestashop editor i need to check joomla sources, you're talking about latest version of joomla engine? Link to comment Share on other sites More sharing options...
avrilev Posted September 6, 2013 Author Share Posted September 6, 2013 yes, I am. Joomla ver 3.x, but these features reside in your suggested code. Please, can you check as for why some of the features DO show while others not? Link to comment Share on other sites More sharing options...
avrilev Posted September 6, 2013 Author Share Posted September 6, 2013 By the way, I tried to embed your code in -- /themes/default/template/helpers/form/form.tpl. with no success what so ever. I did succeed on the products though. Link to comment Share on other sites More sharing options...
yaniv14 Posted September 7, 2013 Share Posted September 7, 2013 Try adding "directionality" in the plugins beside adding "rtl" & "ltr" in the theme_advanced_button Link to comment Share on other sites More sharing options...
avrilev Posted September 8, 2013 Author Share Posted September 8, 2013 (edited) Try adding "directionality" in the plugins beside adding "rtl" & "ltr" in the theme_advanced_button I did. No effect at all. To tell you the truth, adding this made the text area to show in code... thanks any way. I got to draw your attention to the fact that many features are simply not displaying, not only those rtl ltr ones. for ex. the search and replace are missing too although they are mentioned in the second row... What i think is that there is a constriction of some sort that does not allow some features to show. I tried to enter the following code: (after line 60) function updateMCE ( elemId, direction) { var iFrame = document.getElementById(elemId + '_ifr'); if ( iFrame && iFrame.contentWindow ) { iFrame.contentWindow.document.getElementById('tinymce').setAttribute('dir',direction); } } but I don't know if the issue is solved... (I meen showing rtl ltr..); in any case, what happens now is that all rtl are align to the right and are true rtl when choosing the correct language... and it does'nt metter what characters you choose, in a rtl text area, there is going to be always: text-align:ritgh & direction:rtl. To be politically correct ( ) these lines of code belong to a guy from the tinyMCE forum and they were written on April 2009. Thanks a lot ajmas Edited September 8, 2013 by avrilev (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts