actually,
I placed this block in the file ‘app/design/adminhtml/default/default/template/page/footer.phtml’
(at first I put it into the ‘head.phtml’ but then I thought putting it in the footer would make more sense sine the content would be in the textareas by that point, but perhaps I’m confused as to when JS actions are triggered. its probably moot as to head or footer.)
First, I tried to follow the instructions for TinyMCE
For products, add the code around line 54 of app/design/adminhtml/defaut/default/template/catalog/product/edit.phtml.
I can’t find the exact place where to insert the code
For the CMS add the code at around line 52 of lib/Varien/Data/Form/Element/Editor.php, inside the $html variable and after the the <textarea> tag.
It shows me the empty screen you will find below. Nothing appears on the CMS edit page (and nothing also on the catalog edit page). Then I tried to replace the part code :
I also tried the FCK Editor way. I upload the fckeditor folder under magento/js folder.
As told by the wiki, I replace the parts of code in the following files :
- /app/code/core/Mage/Adminhtml/Block/CMS/Page/Edit/Tab/Main.php
- /lib/Varien/Data/Form/Element/Editor.php
This time I get my regular edit page, but nowhere I can see FCK Editor…
var productForm = new varienForm('product_edit_form', '<?php echo $this->getValidationUrl() ?>'); function saveAndContinueEdit(){ productForm.submit($('product_edit_form').action+'back/edit/tab/' + product_info_tabsJsTabs.activeTab.id); } function setSettings(baseUrl, setElement, typeElement){ var url = baseUrl+'set/'+$F(setElement)+'/type/'+$F(typeElement)+'/'; setLocation(url); }
function setSuperSettings(baseUrl, attributesClass, validateField){ var attributesFields = $$('.' + attributesClass); var attributes = Form.serializeElements(attributesFields, true).attribute; if(typeof attributes == 'string') { attributes = [attributes]; }
thanks a lot for your help!
ps: i’m a new in menalto
Looks like some javascript disables the textarea when it is activated. I tried to play with it and identify the cause, but with no success. It would help a lot if we could get a clear answer from dev staff why they didn’t give us the option to enable HTML editor somewhere from the admin.
I they also don’t know why it is disabled, it would be great if they give us some hints
Okay, so I finally got the FCKeditor working, however when looking at a product description on the front end, it’s adding extra line-break tags to every paragraph tag or <li> tag. Is there a way to stop this? It makes the description longer than it needs to be with too many spaces. I’ve managed to fix some of this with css, but why is it adding br/ tags when the source code in the FCKeditor doesn’t show any break tags?
Okay, so I finally got the FCKeditor working, however when looking at a product description on the front end, it’s adding extra line-break tags to every paragraph tag or <li> tag. Is there a way to stop this? It makes the description longer than it needs to be with too many spaces. I’ve managed to fix some of this with css, but why is it adding br/ tags when the source code in the FCKeditor doesn’t show any break tags?
Hi guys, It’s been a while since I’ve posted in here. I’ve been working on a new set of problems with FCKEditor. I’m not sure what the cause is, but I’m sure it’s not FCK.
I’m using version 1.0.19700 with the CompareProducts patch. The fckeditor folder is in the root of the magento folder (I also tried putting in in the js folder). I’m calling fck in head.phtml under app/design/adminhtml/default/default/template/page/.
What happens is when I create a new product using FCK, it tells me the textarea is blank when I go to Save. Has anyone else had this problem? I tried changing permissions and placement of the code calling FCK.