WYSIWYG Editor in OpenERP

         Here I am going to explain how to turn a normal text area into a WYSIWYG(What You See Is What You Get) area in Openerp.Before that let me explain what is WYSIWYG.This may be familiar to web developers, any how WYSIWYG is used in computing to describe a system in which content (text and graphics) displayed onscreen during editing appears in a form closely corresponding to its appearance when printed or displayed as a finished product, which might be a printed document, web page, or slide presentation.

To get a WYSIWYG editor in Openerp, you need to install ‘web_wysiwyg’, 

Next step is to create a text field. When you are writing the view for that field, mention widget=”text_WYSIWYG”.

         eg: <field name=”description” widget=”text_WYSIWYG”/>

Then write the following code just before the text field in view for a button to enable or disable the WYSIWYG area.

  <html>
    <a onclick=”javascript:toggle_ckeditor();” class=”wysiwyg_button wysiwyg_button_off oe_button”>WYSIWYG on</a>
  </html>

          Here I created a WYSIWYG text field and added some html codes(openerp webpage source code) in that field, when I keep the button ‘OFF’, It shows the codes as shown below.

If I keep the button ‘ON’, It shows the html content of web page as shown below.

Comments

Anonymous: I got the solution. web_ckeditor4 module is working in openerp 7 for wysiwyng editor.".

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. jean-charles drubay says:

    It seems that this module is not a module from OpenERP but from Elico Corp.  We are using it and are quite satisfied with it, except when mentioning about the word "object" or any word containing this set of string like objective … Jean-Charles Drubay

  2. Gabriel says:

    I get this error, because it can be?
    toggle_ckeditor is not defined

    1. Jasad Moozhiyan says:

      Hi,

      Please clear the cache of your browser and try.

  3. Anonymous says:

    It is not working in V7

  4. ClarindaBault says:

    Thank you for sharing excellent informations. Your web site is very cool. I'm impressed by the details that you have on this web site. It reveals how nicely you understand this subject. Bookmarked this website page, will come back for more articles. You, my friend, ROCK! I found just the information I already searched everywhere and just could not come across. 

  5. Anonymous says:

    It’s not working in openerp 7.

    1. Jasad Moozhiyan says:

      Hi,

       

      It wont work in openerp 7. Because its openerp 6.1 module. And Openerp 7 alhready has this feature. No need to depend this moudle.

  6. Anonymous says:

    Did u tested it on openerp7?
    its not working in openerp 7.
    if u have solution then please reply.

    1. Jasad Moozhiyan says:

      Hi,

       

      In openerp 7, No need to use this module. Its already having the feature while you create a field. Means you can create a field as 'field.html' instead of 'field.text'.

  7. Anonymous says:

    Where do I have to edit the HTML code? A detailed description would be very nice.

  8. Anonymous says:

    Hi,
    In Html field it’s not provide all features like color, size etc.. which is provided by wysiwyng editor. Do u have any solution regarding that?

    1. Anonymous says:

      I got the solution.
      web_ckeditor4 module is working in openerp 7 for wysiwyng editor.

© 2020 Zesty Beanz Pvt Ltd All Rights Reserved.