VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: ldv1825 on November 16, 2016, 21:10:37 PM

Title: Product description problems
Post by: ldv1825 on November 16, 2016, 21:10:37 PM
Hi,
Just started filling the product's description in virtuemart (3) and was shocked that it does not save the text's paragraph, does not save text's attributes. Means I make copy-paste the text, with some paragraph, with some headers, marked with italic or bold text, but browser show it all without anything, only symbols.
The same happen with tables, which pasted in description.

Thanks
Title: Re: Product description problems
Post by: jenkinhill on November 16, 2016, 23:27:32 PM
What are you copying and pasting from? If from Word and you use JCE editor then you get all the MS crap formatting code included but paragraphs etc are retained, TinyMCE can screw up completely and codemirror will accept the text with no formatting. This is standard Joomla stuff, nothing specific to VM. The simplest solution is to get into the habit of always copying and pasting your text into Notepad first. This will remove all formatting and allow you to paste from Notepad to Joomla without problems. Alternatively, you can save your Word document as a text file (.txt.) to remove unwanted formatting that way.

But with JCE you can remove most of the Word junk. Open the JCE component and In Editor Profiles, click on "Default", then on Plugin Parameters -> Clipboard. Set "Microsoft Word® cleanup" to "Always".  I also enable Strip Class Attributes, Remove all SPANS and Remove all Styles.

With JCE set to clean Word junk then HTML tables can be entered and should be reasonable, or add them as HTML code if you switch the editor to code mode.