Call-back icon  Sales: Call 800.374.8146 (N America)|757.278.0920 (International)

Magento

Open Source eCommerce Evolved

Magento Forum

   
WYSIWYG for CMS
 
dwdonline
Jr. Member
 
Total Posts:  22
Joined:  2008-03-06
 

I have fckeditor installed, but it does not work on the product page. The field that I have it on, “description” becomes blank. Any help would be great.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Yoke Lee
Member
 
Avatar
Total Posts:  71
Joined:  2008-05-08
China
 

Hi Guys !

@Atlantide :
are you still working on TinyMCE? I give up. I’m still having that blank grey uneditable textarea.
I use FCK instead.

About the edit.phtml that you see around line 54 :
I put it between the form and javascript code that already exists there.

so it’ll be like this:

<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" src="http://localhost/magento/js/fckeditor/fckeditor.js"></script>

<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor'description' ) ;
oFCKeditor.BasePath "http://localhost/magento/js/fckeditor/" ;
oFCKeditor.Height "300";
oFCKeditor.Width "500";
oFCKeditor.ReplaceTextarea() ;
var 
oFCKeditor2 = new FCKeditor'short_description' ) ;
oFCKeditor2.BasePath "http://localhost/magento/js/fckeditor/" ;
oFCKeditor2.ReplaceTextarea() ;
oFCKeditor2.Height "300";
oFCKeditor2.Width "500";
}
</script>                         

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

and .... HEEEEYYYYYYY!!!!!!

i found a working PHP command to put in the .js file in src attribute !!!!!!!

try this !! it solves the index.php problem in URL for latest Magento release.

<script type="text/javascript" src="'.dirname($this->getForm()->getBaseUrl()).'/js/fckeditor/fckeditor.js"></script>

Hope it helps !!

 Signature 

Hope it helps ! And please share with us if it is ! Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Yoke Lee
Member
 
Avatar
Total Posts:  71
Joined:  2008-05-08
China
 

@dwdonline:

maybe you can post it here your code.
it’ll make everybody easier to help ...

 Signature 

Hope it helps ! And please share with us if it is ! Thanks.

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

I came up with a quick javascript workaround for the empty textarea problem (my previous post). I simply set the textarea.value to something before initiating fck and it worked just fine.

@Caden: If you’re getting actual <br /> tags added to your stuff it’s NOT fckeditor. It’s Magento. For instance, if you disable fck and use a plain textarea and type stuff in and hit return a bunch of times, you’re not adding in the <br /> tag. Magento does that for you.

I think that might be one of the wysiwyg settings. I’ll post later if I find anything out.

 Signature 

Ifolo Media

 
Magento Community Magento Community
Magento Community
Magento Community
 
SwiftCol
Member
 
Total Posts:  74
Joined:  2008-05-22
 

So can I get a summary: Have we figured out to get TinyMCE working in the latest version or not? Is your wiki page up-to-date with this process?
Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Sr. Member
 
Avatar
Total Posts:  256
Joined:  2008-04-03
England
 

after hours of banging my head into my keyboard i have figured out have to fix tinymce!

well i say fix. what i mean is make it work.

put the following code into app\design\adminhtml\default\default\template\page\footer.phtml

<script language="javascript" type="text/javascript" src="<?php echo $this->getUrl('js/tiny_mce') ?>tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
var 
id setTimeout(function(){ tinyMCE.init({mode "textareas"}); }1000);
</script>

thats all there is to it.

It seems that the javascript that sets things out messes up tinymce as they run at the same time. This code simply delays the running of the tinymce javascript and everything then works. Its not ideal but maybe someone can come up with a better way.

 Signature 

If someone tells you its impossible, try anyway or you will never know.

Currently removing bugs from my blog extension.

 
Magento Community Magento Community
Magento Community
Magento Community
 
e
Jr. Member
 
Total Posts:  3
Joined:  2008-05-18
 

wink
can someone please update the wiki please…

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Sr. Member
 
Avatar
Total Posts:  256
Joined:  2008-04-03
England
 

did it work for you too?

 Signature 

If someone tells you its impossible, try anyway or you will never know.

Currently removing bugs from my blog extension.

 
Magento Community Magento Community
Magento Community
Magento Community
 
AngelEyes
Jr. Member
 
Total Posts:  20
Joined:  2008-02-25
 

Winzippy,

Many thanks for the Wiki, I managed to get FCK working in CMS pages (yet to try products) but have the problem with not being able to create new items.

Can you explain where exactly and in what file the additional javascript needs to go. I couldn’t code my way out of a wet paper bag, so specific instructions that may seem obvious to you guys just go over my head red face

Thanks,

Adam

 
Magento Community Magento Community
Magento Community
Magento Community
 
Victor Nicollet
Jr. Member
 
Total Posts:  1
Joined:  2008-06-25
 
lazzymonk - 08 June 2008 05:45 PM

put the following code into app\design\adminhtml\default\default\template\page\footer.phtml

I have attempted this modification. The page becomes white and the firebug javascript console shows two “tinyMCE is not defined” errors at en.js (line 3 : tinyMCE.addToLang) and editor_template.js (line 1 : tinyMCE.importThemeLanguagePack).

I admit that I’m a bit lost.

 
Magento Community Magento Community
Magento Community
Magento Community
 
focusnet
Jr. Member
 
Total Posts:  5
Joined:  2008-06-13
 

I have a solution for the problem in Firefox with the grey non-editable TinyMCE.

Add the following parameter to the tiny-loading-sequence:
strict_loading_mode : true

And it works in Firefox too!

Greets from Switzerland

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bockbertil
Member
 
Total Posts:  32
Joined:  2007-11-18
 

@focusnet good job! I’ve was trying to solve this issue a while back, gave up after a while though. Thank you for the fix wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
norbolig
Sr. Member
 
Total Posts:  272
Joined:  2008-03-15
 

I am waiting for a built in WYSIWYG editor in Magento (any will be better than none). This will save much time, especially by adding new product description.

Magento indicated in September 2007 that this will be available in upcoming releases. For those that have installed the 1.1 Alpha, is it any signs of this for the upcoming version?

I also noticed that doing a clean installation of Magento ver. 1.0.19870.4, tiny mce is not longer part of the installation (at least the files are no longer located under /js/tiny_mce/tiny_mce.js).

 
Magento Community Magento Community
Magento Community
Magento Community
 
Crucial
Guru
 
Avatar
Total Posts:  412
Joined:  2007-11-07
Scottsdale, AZ
 
norbolig - 04 July 2008 12:46 PM

For those that have installed the 1.1 Alpha, is it any signs of this for the upcoming version?

Just checked, and I’m not seeing a WYSIWYG editor in the CMS area.

 Signature 

Crucial Web Hosting
Are you ready to Split-Shared™ hosting?
Magento Containers lets you run your business, we’ll do the rest.

 
Magento Community Magento Community
Magento Community
Magento Community
 
nabuhonodozor
Member
 
Avatar
Total Posts:  38
Joined:  2008-03-27
 

Hi , after much struggle Ive finally manage to use fckEditor.
The problem is it simply dont recognize <div>’s
If You try to save code with divs it will mess things up.
So after much struggle I finally have to switch off fckEditor.
For me it isnt big deal -Ill use plain html but for my wife it would be great help (specially uploading/ managing pictures)
Is there any working alternative to FCK? (I couldnt force tinyMCE to worK)

Best regards,
Piotr

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 800.374.8146 (North America) 757.278.0920 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
33538 users|410 users currently online|74467 forum posts