Next Webinar: Maximizing Magento - Get the Most out of Promotions. Register Today!

Magento

Open Source eCommerce Evolved

Magento Forum

   
WYSIWYG for CMS
 
winzippy
Member
 
Avatar
Total Posts:  75
Joined:  2008-02-08
Fairport, NY, USA
 

@bkimura: try changing these lines

<script language="javascript" type="text/javascript" src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK,$secure).'home/httpd/vhosts/revacomm.net/subdomains/magento/httpdocs/magento/js/fckeditor/fckeditor.js"></script>

fcke.BasePath "'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK,$secure).'home/httpd/vhosts/revacomm.net/subdomains/magento/httpdocs/magento/js/fckeditor/" ;

to these:

<script language="javascript" type="text/javascript" src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK,$secure).'js/fckeditor/fckeditor.js"></script>

fcke.BasePath "'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK,$secure).'js/fckeditor/" ;

If all else fails just use the absolute path to the *.js file you need. That should definitely fix the problem.

 Signature 

Ifolo Media

 
Magento Community Magento Community
Magento Community
Magento Community
 
mediacrea
Member
 
Total Posts:  38
Joined:  2008-02-06
 

Hi,

If you think the WYSIWYG is too small in the CMS section, you can try to add this in skin/adminhtml/default/default/boxes.css

Tested on magento 1.0 release

...
#page_base_fieldset .form-list td.value{
width740px;
}
...
It works for using fckeditor and Tinymce.

Someone have an issue using Tinymce on firefirefox ? It seems that when tinymce is activate we can’t edit the textarea.

(sorry for my bad english, i’m french)

Another thing I would like to do, is adding plugin to tinymce for filemanager. Someone has tried it ?

I don’t know how to deal with authentification for the plugin and how to make it work.

Thank

 
Magento Community Magento Community
Magento Community
Magento Community
 
Romain Fluttaz
Jr. Member
 
Avatar
Total Posts:  27
Joined:  2007-09-20
Chambery, France
 
Sean Yeomans - 07 April 2008 08:51 AM

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.)

notice the ‘elements’:

<script language="javascript" type="text/javascript" src="/magento/www/js/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
    
tinyMCE.init({
        mode 
"exact",
        
theme "advanced",
        
elements "page_content,description,short_description",
        
theme_advanced_toolbar_location "top",
        
theme_advanced_toolbar_align "left",
        
theme_advanced_path_location "bottom",
        
extended_valid_elements "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
        
theme_advanced_resize_horizontal "true",
        
theme_advanced_resizing "true",
        
apply_source_formatting "true",
        
convert_urls "false",
        
force_br_newlines "true",
    
});              
</script>

anyways, I got this to work, the textareas are affected, however the contents of the textarea aren’t showing, and I get a js error saying
this.getDoc() has no properties

any clue as to why the JS wouldn’t see the textarea content object?

edit:  I get the same JS error when I do it the way you described. As in, the textarea affected but no content shows, just grey box like attachment

hi ! I got the same error on firefox ... but if i’m using ie7 it works ... !?
Any ideas to fix this ?
Thanks

 Signature 

</r.fluttaz>
Site en dev : http://www.fleurshop.fr - http://www.parapluieshop.com - http://www.bougieshop.fr - http://www.produitsdesavoie.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
sysk
Member
 
Total Posts:  31
Joined:  2008-04-14
 

Exact same problem here… tinyMCE is loaded but I get a grey box with no content… like in the screenshots… anyone was able to solve this ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Romain Fluttaz
Jr. Member
 
Avatar
Total Posts:  27
Joined:  2007-09-20
Chambery, France
 

then i’ve tried with fckeditor, and no probleme ...
And i’ve tried to upgrade tinymce with the last version ... and it allmost works ...

 Signature 

</r.fluttaz>
Site en dev : http://www.fleurshop.fr - http://www.parapluieshop.com - http://www.bougieshop.fr - http://www.produitsdesavoie.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
sysk
Member
 
Total Posts:  31
Joined:  2008-04-14
 

I just installed fckeditor and it works fine. I also updated the wiki for people willing to install it.

http://www.magentocommerce.com/wiki/wysiwyg/a_how-to#getting_it_working_with_cms_pages

 
Magento Community Magento Community
Magento Community
Magento Community
 
atlantide
Sr. Member
 
Avatar
Total Posts:  162
Joined:  2008-02-16
France
 

I followed the wiki http://www.magentocommerce.com/wiki/wysiwyg/a_how-to but I can’t make it work !

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 :

src="path/to/magento/js/tiny_mce/tiny_mce.js"
by
src="/js/tiny_mce/tiny_mce.js"
and by
src="http://www.myexactURL.com/js/tiny_mce/tiny_mce.js"

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…

Could anyone help me please ?

Image Attachments
02.05.2008 à 12h 46m 39s 765'.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
postitat
Jr. Member
 
Total Posts:  5
Joined:  2008-03-31
 

hello 2 all!

i have some problemes to put the fck-editor in the produkts (edit.phtml)
it works still in the (Editor.php)

maybe you can help me with the code. where shold i copy (which) code in the edit.phtml

<form action="<?php echo $this->getSaveUrl() ?>" method="post" id="product_edit_form" enctype="multipart/form-data">
<
input type="hidden" name="links[related]" id="_related_products" value="" />
<
input type="hidden" name="links[upsell]" id="_up_sell_products" value="" />
<
input type="hidden" name="links[crosssell]" id="_cross_sell_products" value="" />
<
input type="hidden" name="links[grouped]" id="_super_group_product" value="" />
</
form>
<
script type="text/javascript" language="javascript">

    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(baseUrlsetElementtypeElement){
        
var url baseUrl+'set/'+$F(setElement)+'/type/'+$F(typeElement)+'/';
        
setLocation(url);
    
}

     
function setSuperSettings(baseUrlattributesClassvalidateField){
        
var attributesFields = $$('.' attributesClass);
        var 
attributes Form.serializeElements(attributesFieldstrue).attribute;
        if(
typeof attributes == 'string'{
            attributes 
[attributes];
        
}

thanks a lot for your help!
ps: i’m a new in menalto

i know this thread: http://www.magentocommerce.com/wiki/wysiwyg/a_how-to
but i need more help confused

greetings, heli

 
Magento Community Magento Community
Magento Community
Magento Community
 
atlantide
Sr. Member
 
Avatar
Total Posts:  162
Joined:  2008-02-16
France
 

Could anyone help me to find where to insert around line 54 the FCK editor code ?

“For products, add the code around line 54 of app/design/adminhtml/defaut/default/template/catalog/product/edit.phtml.”

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tomislav Bilic
Member
 
Avatar
Total Posts:  44
Joined:  2007-11-17
Osijek, Croatia
 
sysk - 24 April 2008 09:44 AM

Exact same problem here… tinyMCE is loaded but I get a grey box with no content… like in the screenshots… anyone was able to solve this ?

Same problem here also. Does anyone have a clue? Dev staff?

 Signature 

Owner of Inchoo Ltd., partner of Surgeworks

 
Magento Community Magento Community
Magento Community
Magento Community
 
atlantide
Sr. Member
 
Avatar
Total Posts:  162
Joined:  2008-02-16
France
 

I care that nobody will give us the answer…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tomislav Bilic
Member
 
Avatar
Total Posts:  44
Joined:  2007-11-17
Osijek, Croatia
 

Hehe… FCKeditor works good, but I prefer TinyMCE.

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 wink

 Signature 

Owner of Inchoo Ltd., partner of Surgeworks

 
Magento Community Magento Community
Magento Community
Magento Community
 
I'm Done
Member
 
Total Posts:  32
Joined:  2008-05-08
 

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?

 
Magento Community Magento Community
Magento Community
Magento Community
 
I'm Done
Member
 
Total Posts:  32
Joined:  2008-05-08
 
Cadan - 15 May 2008 12:03 PM

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?

I think I found my own answer. For anybody else in need, refer to:
http://www.snapsis.com/DotNetNuke/Support/tabid/560/forumid/11/postid/7184/view/topic/Extra-Page-Break-in-FCKEditor-Output.aspx

 
Magento Community Magento Community
Magento Community
Magento Community
 
winzippy
Member
 
Avatar
Total Posts:  75
Joined:  2008-02-08
Fairport, NY, USA
 

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.

 Signature 

Ifolo Media

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
39648 users|732 users currently online|85468 forum posts