gladiators Posted September 27, 2013 Share Posted September 27, 2013 i am use prestashop version 1.5.4.1 but my editor don't have media icon to add video. how can fix it ? i am iranian in demo of prestashop i see media icon but i don't have????? Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 extend tinymce editor features. you're talking about CMS page editor, or about product page editor? Link to comment Share on other sites More sharing options...
gladiators Posted September 27, 2013 Author Share Posted September 27, 2013 all of editor in all page in my presta don't have media icon Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 try with this, cms page tinymce editor extended features product page - tinymce editor extended features 1 Link to comment Share on other sites More sharing options...
gladiators Posted September 27, 2013 Author Share Posted September 27, 2013 thank you but when edit my file like that link my editor removed see here Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 it mean that you changed something wrong, are you 100% sure that you use correct modification? Link to comment Share on other sites More sharing options...
gladiators Posted September 27, 2013 Author Share Posted September 27, 2013 yes i am sure . i used prestashop 1.5.4.1 persian version and i don't now if iranian change any thing Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 can you show code that you've got in product template file? i will test it on my own Link to comment Share on other sites More sharing options...
gladiators Posted September 27, 2013 Author Share Posted September 27, 2013 (edited) this is my file form.tpl and Validate.php form.zip Edited September 27, 2013 by gladiators (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 hello, form.tpl is not modified, it is original one Link to comment Share on other sites More sharing options...
gladiators Posted September 28, 2013 Author Share Posted September 28, 2013 (edited) this is my file when i edit Validate.php the moderate page is white and can not go in the my moderate page .can you edit my file? form change.zip formnot change.zip Edited September 28, 2013 by gladiators (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 28, 2013 Share Posted September 28, 2013 in your validate file you've got: public static function isCleanHtml($html){ //* $events = 'onmousedown|onmousemove|onmmouseup|onmouseover|onmouseout|onload|onunload|onfocus|onblur|onchange'; $events .= '|onsubmit|ondblclick|onclick|onkeydown|onkeyup|onkeypress|onmouseenter|onmouseleave|onerror|onselect|onreset|onabort|ondragdrop|onresize|onactivate|onafterprint|onmoveend'; $events .= '|onafterupdate|onbeforeactivate|onbeforecopy|onbeforecut|onbeforedeactivate|onbeforeeditfocus|onbeforepaste|onbeforeprint|onbeforeunload|onbeforeupdate|onmove'; $events .= '|onbounce|oncellchange|oncontextmenu|oncontrolselect|oncopy|oncut|ondataavailable|ondatasetchanged|ondatasetcomplete|ondeactivate|ondrag|ondragend|ondragenter|onmousewheel'; $events .= '|ondragleave|ondragover|ondragstart|ondrop|onerrorupdate|onfilterchange|onfinish|onfocusin|onfocusout|onhashchange|onhelp|oninput|onlosecapture|onmessage|onmouseup|onmovestart'; $events .= '|onoffline|ononline|onpaste|onpropertychange|onreadystatechange|onresizeend|onresizestart|onrowenter|onrowexit|onrowsdelete|onrowsinserted|onscroll|onsearch|onselectionchange'; $events .= '|onselectstart|onstart|onstop'; return (!preg_match('/<[ \t\n]*script/ims', $html) && !preg_match('/('.$events.')[ \t\n]*=/ims', $html) && !preg_match('/.*script\:/ims', $html)); **/ use there /** instead of //* Link to comment Share on other sites More sharing options...
the_raven Posted November 8, 2013 Share Posted November 8, 2013 i have this problem too, and i need Table bottom.i did all the instruction on your links dear Vekia but finally i couldn't did any changes.i really appreciate if you help me about that. Link to comment Share on other sites More sharing options...
vekia Posted November 9, 2013 Share Posted November 9, 2013 i have this problem too, and i need Table bottom.i did all the instruction on your links dear Vekia but finally i couldn't did any changes.i really appreciate if you help me about that. what ps version you use? this may be the main problem in this case Link to comment Share on other sites More sharing options...
Angelita Posted November 9, 2013 Share Posted November 9, 2013 I am experiencing difficulty as well. I am using Prestashop 1.5.6. In the product short description section under product information, I am attempting to upload a photo of a product logo. I uploaded the logo via FTP and placed it into the img folder for the template I am using. When I click on the add picture icon in Tiny MCE it gives me a pop-up window that asks for the URL of the photo. I pasted the URL listed in my FTP program into the window, but the photo does not upload. /public_html/valdivia-optical.com/themes/Oyama/img/myfile.png There is an icon to the right of the URL window that when pressed also gives a pop-up window, but I am unsure how to use it. Ángela Link to comment Share on other sites More sharing options...
the_raven Posted November 9, 2013 Share Posted November 9, 2013 what ps version you use? this may be the main problem in this case Im using ver 1.5.4.1 . i changed the form.tpl as you said on your article but the editor got disappeared after changing the code , the default code is : $(document).ready(function(){ {block name="autoload_tinyMCE"} tinySetup({ editor_selector :"autoload_rte", }); {/block} }); and then i try to edit the javascript file (tinymce.inc.js) and remove the comments and add this line instead theme : 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 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak", i can add or remove some items such as "newdocument" bottun but Table Controls (theme_advanced_buttons3 : "tablecontrols) on line 3 that i need it doesn't appear. Link to comment Share on other sites More sharing options...
Recommended Posts