Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

How to pass parameters to cleditor + dl link

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
viewparametershtmlcleditor
8 Replies
7059 Rodiniai
Portretas
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
Portretas
Atmesti
Fabrice Henrion (fhe)

You should publish this to OpenERP Apps.

Thierry Godin
Autorius

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
Autorius

@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
Autorius

Thank you.

Petar Najman

Thierry, great job man!

Portretas
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
Portretas
Atmesti
Enjoying the discussion? Don't just read, join in!

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

Registracija
Related Posts Replies Rodiniai Veikla
How to pass parameters to cleditor ?
view parameters html cleditor
Portretas
1
kov. 15
7849
[15 Community] E-Mail Marketing - No HTML view for all messages
view marketing html E-mail
Portretas
0
saus. 23
2151
address with ampersand in qweb Solved
xml view qweb html
Portretas
Portretas
1
spal. 22
9160
Creating a dynamic url and execute it
form view html metabase
Portretas
0
geg. 22
3954
translate knowledge articles tabs
knowledge xml view html body
Portretas
1
birž. 23
2647
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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