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

Magento

Open Source eCommerce Evolved

Magento Forum

   
WYSIWYG for CMS
 
furman
Jr. Member
 
Total Posts:  6
Joined:  2008-02-25
 

I am a bit scared to fiddle with the code, had enough with OSC and Actinic.  Will this feature be added to the next release or is there not a possibility of making a patch available?

 
Magento Community Magento Community
Magento Community
Magento Community
 
DDMAN
Sr. Member
 
Total Posts:  84
Joined:  2008-01-08
 

I’m in the same boat as furman. I’d rather wait for this to be coded into an actual release rather then change the code. Anybody have the beta or alpha installed notice that WYSIWYG is going to be ready for next release?

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

I have been waiting for a integrated WYSIWYG in Magento as well - that is working (in both CMS and product descrition). I get the impression that it still is a number of problems with the different solutions that so far has been published as to how to add WYSIWYG by changing the code. Unfortunlately.

WYSIWYG is not mentioned in the most recent roadmap for Magento, although RoyRubin mentioned in the beginning of this thread (September 2007) that WYSIWYG should be available for upcoming releases.

I hope it will make it in rel. 1.1! It is fine if someone can comment on this. wink Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
andreladocruz
Sr. Member
 
Total Posts:  169
Joined:  2008-05-07
Brazil
 

me too!

 Signature 

André Cruz
http://farmadelivery.com
http://www.alexa.com/data/details/traffic_details/farmadelivery.com
http://www.google.com.br/search?q=site:farmadelivery.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  352
Joined:  2008-04-03
England
 

agreed that a WYSIWYG which works without a load of problems would be great as the stores i create are often run by people that dont have a clue about html

 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
 
DDMAN
Sr. Member
 
Total Posts:  84
Joined:  2008-01-08
 

I did some research on editors and based on about 30 minutes of research it appears that TINY MCE is in general more compliant with web standards and a little bit better to work with. I’ve seen people post how to do both as they all have their own preferences but I wanted to maybe understand why Magento chose to include TINYMCE in their code rather then FCKeditor.

I’m probably going to add the editor because I have over 250 pieces of content that need to be updated and I want some help from people who don’t know html

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

So, what appears to be helpful, is if Magento could clarify if they are planning to implement WYSIWYG in the near future. I realize they have a lot of features to implement (and other work to do), so maybe this is not on the top of the list.

If not by Magento, how can we get a working WYSIWYG. Can some of us pay another professional programmer to make a extension? (from the threads, it looks like “we” are pretty close to make it work?)

Could we advertise it on the Job Board? I would be more than happy to contribute (to get it started, I can sponsor the advertisement, if other think this is a good idea). Is this a way to go?

 
Magento Community Magento Community
Magento Community
Magento Community
 
DDMAN
Sr. Member
 
Total Posts:  84
Joined:  2008-01-08
 

Considering that Magento has said this is planned and considering that they’ve included the base code for TINY mce in the files I’m guessing that they’ll include it in a release shortly.

That being said any insight from Magento as far as time frame on this would be helpful because if it isn’t planned for another 6 months then I think it would be worth an extention

 
Magento Community Magento Community
Magento Community
Magento Community
 
andreladocruz
Sr. Member
 
Total Posts:  169
Joined:  2008-05-07
Brazil
 

Sirs,

I tried it and it’s a hard work for me.

A PHP programmer helped me and got some troubles with both solutions.

Why does magento team put it on the next release?

I can understand that they have other priorities to work on. But this kind of help will take magento to a futher place.

Easier always!

 Signature 

André Cruz
http://farmadelivery.com
http://www.alexa.com/data/details/traffic_details/farmadelivery.com
http://www.google.com.br/search?q=site:farmadelivery.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
denath
Jr. Member
 
Total Posts:  1
Joined:  2008-07-22
 
focusnet - 01 July 2008 01:56 AM

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!

great job @focusnet. The guys need to update the how-to of tinymce!! it’s so important having tinymce work properly.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andreas von Studnitz
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2008-05-07
Aachen, Germany
 

I just updated the Howto (http://www.magentocommerce.com/wiki/wysiwyg/a_how-to) for TinyMCE with which worked for me.
I changed the loading behavior so TinyMCE loads after the page has finished loading, plus I added hints for downloading TinyMCE as it doesn’t seem to be included in newer releases.

Hope that helps,
Andreas

 Signature 

team in medias GmbH
Aachen, Hamburg

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

Thanks a lot Andreas. I will try it as soon as ver. 1.1 is released.

 
Magento Community Magento Community
Magento Community
Magento Community
 
indian dude
Jr. Member
 
Avatar
Total Posts:  10
Joined:  2008-06-15
india
 

hi all,

i have done both change as above said in

app\code\core\Mage\Adminhtml\Block\Cms\Page\Edit\Tab\main.php

and

\lib\Varien\Data\Form\Element\editor.php

but nothing is show at cms block?
anybody help me

thank u

 
Magento Community Magento Community
Magento Community
Magento Community
 
indian dude
Jr. Member
 
Avatar
Total Posts:  10
Joined:  2008-06-15
india
 

hi all,

i have done both change as above said in

app\code\core\Mage\Adminhtml\Block\Cms\Page\Edit\Tab\main.php

and

\lib\Varien\Data\Form\Element\editor.php

but nothing is show at cms block?
anybody help me

thank u

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andreas von Studnitz
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2008-05-07
Aachen, Germany
 

Hi Indian Dude,

I got that running now too.

This is my code in /magento/lib/Varien/Data/Form/Element/Editor.php starting from line 45:

public function getElementHtml()
    
{
        
if( $this->getWysiwyg() === true )
        
{
            $element 
= ($this->getState() == 'html') ? '' $this->getHtmlId();

            
$html '
                <textarea name="'
.$this->getName().'" title="'.$this->getTitle().'" id="'.$this->getHtmlId().'" class="textarea '.$this->getClass().'" '.$this->serialize($this->getHtmlAttributes()).' >'.$this->getEscapedValue().'</textarea>
<script language="javascript" type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
Event.observe(window, \'
load\', function() {
    tinyMCE.init({
        mode : "exact",
        theme : "advanced",
        elements : "'
.$this->getHtmlId().'",
        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",
        doctype : \'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\'
    });  
});

</script>'
;

            
$html.= $this->getAfterElementHtml();
            return 
$html;
        
}
        
else
        
{
            
return parent::getElementHtml();
        
}
    }
[
...]

Be sure to check the path of your js file: /js/tiny_mce/tiny_mce.js in my example.

Additionally, you have to set “wysiwyg=true” in /magento/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Main.php:

$fieldset->addField('content''editor', array(
            
'name'      => 'content',
            
'label'     => Mage::helper('cms')->__('Content'),
            
'title'     => Mage::helper('cms')->__('Content'),
            
'style'     => 'width:98%; height:600px;',
            
'wysiwyg'   => true,
            
'required'  => true,
        ));

This works for me now. If it doesn’t work for you, please check the output of the Firefox Error Console which gives you hints about Javascript errors.
I’ll gonna add that to the wiki.

HTH,
Andreas

P.S: I think the WYSIWYG Editor is an important feature and should be added to the next release, if possible.

 Signature 

team in medias GmbH
Aachen, Hamburg

 
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
39726 users|387 users currently online|85595 forum posts