News:

Support the VirtueMart project and become a member

Main Menu

Product description problems

Started by ldv1825, November 16, 2016, 21:10:37 PM

Previous topic - Next topic

ldv1825

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

jenkinhill

#1
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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum