Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

How to pass parameters to cleditor + dl link

Naroči se

Get notified when there's activity on this post

This question has been flagged
viewparametershtmlcleditor
8 Odgovori
7063 Prikazi
Avatar
Thierry Godin

Hi all,

Sometimes ago I worked to pass parameters to cleditor to get this :

cleditor enhanced

Now, I made it a module that overrides openerp's cleditor :

Cleditor enhanced :

Allows to pass parameters to cleditor as examples below :

  • editor_width (string) : "500" or "30%%"
  • editor_height (string) : "500" or "30%%"
  • editor_controls (string) : "bold italic underline strikethrough subscript superscript | font size style | color highlight removeformat | bullets numbering | outdent indent | alignleft center alignright justify | undo redo | rule image link unlink | cut copy paste pastetext | print source"
  • editor_colors (string) : short Css colors space separated : "FFF FCC FC9 FF9 FFC 9F9 9FF CFF CCF FCF " ...
  • editor_fonts (string) : font name comma separated : "Arial,Arial Black,Comic Sans MS,Courier New,Narrow,Garamond" ...
  • editor_sizes (string) : font size comma separated : "1,2,3,4,5,6,7"
  • editor_docType (string) : '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'
  • editor_styles (string pairs as array name/tag) : "Paragraph,<p>;Header 1,<h1>"
  • editor_useCSS (string but not managed to make it work)
  • editor_docCSSFile (string but not managed to make it work)
  • editor_bodyStyle (string) : "margin:4px; color:#4c4c4c; font-size:13px; "

Example:

<field name="content" 
       placeholder="e.g. Once upon a time..." 
       widget="html" 
       class="oe_edit_only" 
       options='{"safe": True}'
       editor_width="100%%"
       editor_height="500"
       editor_controls="bold italic underline strikethrough subscript superscript | font size style | color highlight removeformat | bullets numbering | outdent indent | alignleft center alignright justify | undo redo | rule image link unlink | cut copy paste pastetext | print source"
       editor_styles="Paragraph,&lt;p&gt;;Header 1,&lt;h1&gt;"
       />

editor_styles has to be writen like this : style_name1,tag1;style_name2,tag2;style_name3,tag3; ...etc

(each pair name,tag = semicolon separated)

Download link : tg_cleditor

Best regard

0
Avatar
Opusti
Fabrice Henrion (fhe)

You should publish this to OpenERP Apps.

Thierry Godin
Avtor

Ok Fabrice, but how to ???

Fabrice Henrion (fhe)

Here: https://apps.openerp.com/admin/#view_type=form&model=loempia.repo&menu_id=148&action=137 (You have to be logged in at accounts.openerp.com)

Thierry Godin
Avtor

@Fabrice Thanks. Do I have to create a bzr account first ? Is there some doc somewhere ?

Fabrice Henrion (fhe)

You have to create a launchpad.net account an push your branch there as specified in the link. Launchpad;s doc is here: https://help.launchpad.net/

Thierry Godin
Avtor

Thank you.

Petar Najman

Thierry, great job man!

Avatar
Dr Obx
Best Answer

I just found it, searching for how to add tables into cleditor. So downloaded your plugin/addon, installed and ..... nothing happend. Why ?

It doesn't work with Odoo v8.0 ?

I can't see additional icons at all :(

Do I have to change anything in files ?

0
Avatar
Opusti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
How to pass parameters to cleditor ?
view parameters html cleditor
Avatar
1
mar. 15
7854
[15 Community] E-Mail Marketing - No HTML view for all messages
view marketing html E-mail
Avatar
0
jan. 23
2152
address with ampersand in qweb Solved
xml view qweb html
Avatar
Avatar
1
okt. 22
9162
Creating a dynamic url and execute it
form view html metabase
Avatar
0
maj 22
3955
translate knowledge articles tabs
knowledge xml view html body
Avatar
1
jun. 23
2650
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now