Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Page 10 of 10
WYSIWYG for CMS
 
Richard H
Jr. Member
 
Total Posts:  12
Joined:  2008-04-07
 
firespire - 17 September 2008 01:27 AM

this makes the product description on the front page look upgly as it adds <br> after every line break

you can remove this behavior by removing the nl2br function from your template files

 
Magento Community Magento Community
Magento Community
Magento Community
 
lostbens
Member
 
Total Posts:  31
Joined:  2008-09-05
 

Hey, what’s wrong with sexy guys?! wink

I’ve read a few threads on the whole “CMS in Magento” issue. A WYSIWYG editor is a step forwards, and it looks like its possible *almost* out of the box (I don’t know what a WISSY is, I’m sure its also fantastic).

Unfortunately (as anyone who has more than about 7 pages of content knows) Magento is not a very powerful CMS, eg:

can’t search CMS content
no navigation, magento navigation works well with categories/products/attributes NOT with content
clumsy interface for adding new content (ie add as a page/static block, assign block id, create category, attach block id to category page, rinse repeat… try creating 200 categories with one article per category)
no bulk import of content pages
no real concept of an “article” (rich content) native to magento

I also read, not sure which thread, Roy Rubin saying “we are 100% focussed on eCommerce” so clearly an enhanced CMS is not a priority for Varien at the moment.

We have been wrestling with this issue for a few days now, and I’m sure we are not alone.

Much as it pains us, we have decided to totally separate out our content into its own site and use a dedicated CMS (most likely Joomla). This is a shame as the benefits of keeping everything under one roof are many (consistent interface, global login and language settings, combined search across products and articles, deep-linking between articles and products)

We’re hoping that one day we can get hold of a Joomla add-on and bring everything back into the magento domain. If we get the chance to develope one (not likely with current client) I’ll be sure to make it available. Until then its two horses for two courses…

High-five to Varien, very slick bit of kit! (the eCommerce part anyways smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
magpieradio
Jr. Member
 
Total Posts:  30
Joined:  2008-04-27
 

In 1.1.6 every effort I have made results in no go for WYSIWYG.
I get the editor but there is no data inside the box and I can’t click inside the content boxes.

Can someone please tell me why WYSIWYG is not default on
out of the box?  This is really annoying not to have a simple wysiwyg editor.

One thing that is a bit frustrating to us noobs is when you coders write:

“..add to the end of line 37”

But when an upgrade arrives, (I am running 1.1.6) it appears compleatly wrong and out of sync
to add it in the places you say.

The attached image shows page.phtml and as you can see if I add the suggested
code to the end of line 37 it will probably be wrong… no?

Image Attachments
code-ex.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
speedyss
Jr. Member
 
Total Posts:  24
Joined:  2008-07-02
 

Does anyone know how to delete the text ‘Description*’ and ‘Short Description’ so that you only see the tiny mce text boxes when you click on description. At the moment the full text box can’t be seen and the div needs to be scrolled horizontally to see the full box.

I tried to search where this text might be but got no where...any help?

 
Magento Community Magento Community
Magento Community
Magento Community
 
o0avb0o
Jr. Member
 
Total Posts:  16
Joined:  2008-05-23
 

If you can’t click inside the editor on the cms pages add

strict_loading_mode true
to the tinymce init code.

 
Magento Community Magento Community
Magento Community
Magento Community
 
astronomad
Jr. Member
 
Total Posts:  1
Joined:  2008-06-02
 
lostbens - 17 September 2008 02:00 AM


Much as it pains us, we have decided to totally separate out our content into its own site and use a dedicated CMS (most likely Joomla). This is a shame as the benefits of keeping everything under one roof are many (consistent interface, global login and language settings, combined search across products and articles, deep-linking between articles and products)

We’re hoping that one day we can get hold of a Joomla add-on and bring everything back into the magento domain. If we get the chance to develope one (not likely with current client) I’ll be sure to make it available. Until then its two horses for two courses…

Try the JFusion plugin for Joomla.  Don’t know if it’s compatible with the latest version of Magento, but worth a try: http://www.jfusion.org/

 
Magento Community Magento Community
Magento Community
Magento Community
 
stephenr85
Jr. Member
 
Total Posts:  9
Joined:  2008-07-27
 

The tweak suggested by Moshe did not work for me. Anyone else having that problem? I am running v1.1.2. Here is my block of code…

$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,
         
'theme'        => 'advanced',
        ));

The only difference I see is the “Mage::helper(’cms’)” , which was already there. Any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
stephenr85
Jr. Member
 
Total Posts:  9
Joined:  2008-07-27
 

Ok, figured it out. First, I came across this wiki article: http://www.magentocommerce.com/wiki/wysiwyg/a_how-to

First I needed to download the tinymce package and upload it to my server. Next I had to add a reference to the /js/tiny_mce/tiny_mce.js file, and uncomment tinyMCE.init().

Those were all of the checkpoints, but the text editor still would not appear. Then I looked closer at the code. Even on the wiki page, notice the if statement equivalent operators are “===”, rather than “==”. Deleted one of the characters, uploaded Editor.php, and there it was smile.

This should probably be corrected in the next update.

 
Magento Community Magento Community
Magento Community
Magento Community
 
John R
Sr. Member
 
Total Posts:  87
Joined:  2008-08-21
 

stephenr85: This works for 1.1.6? I didn’t think a solution was found ... the wiki even says it doesn’t work anymore

 
Magento Community Magento Community
Magento Community
Magento Community
 
acstudios
Jr. Member
 
Total Posts:  10
Joined:  2008-08-19
 

I’m also trying to figure out a solution for this with version 1.1.6.

 
Magento Community Magento Community
Magento Community
Magento Community
 
yaani
Member
 
Total Posts:  52
Joined:  2008-08-13
 

Well,

That was a huge 2-day lesson in frustration.

I finally got the TinyMCE to work on both the product pages & CMS pages.

Now I’m wondering why I have it in the CMS pages. The TinyMCE WYSIWYG editor display looks nothing like the Home page. Has anyone else noticed this? It looks like it would be easier to just edit the plain html.

I am attaching a screen shot of the Home page TinyMCE Editor & the Home page

Has anyone been able to edit the Home page (or any CMS page) using a WYSIWYG editor?

Image Attachments
Home_page_screen_shot.jpgTinyMCE_screen_shot.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
CajuCLC
Sr. Member
 
Total Posts:  94
Joined:  2008-09-28
 

It didn’t work with me.
When I go to edit some CMS, this is what I get:

Parse error: syntax error, unexpected T_STRING in /mnt/local/home/username/xxxxxxx.com/lib/Varien/Data/Form/Element/Editor.php on line 61

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 10 of 10
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52171 users|980 users currently online|105395 forum posts