Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

How to pass parameters to cleditor + dl link

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
viewparametershtmlcleditor
8 Replies
7079 Tampilan
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
Buang
Fabrice Henrion (fhe)

You should publish this to OpenERP Apps.

Thierry Godin
Penulis

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
Penulis

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

Thank you.

Petar Najman

Thierry, great job man!

Avatar
Dr Obx
Jawaban Terbai

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
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
How to pass parameters to cleditor ?
view parameters html cleditor
Avatar
1
Mar 15
7865
[15 Community] E-Mail Marketing - No HTML view for all messages
view marketing html E-mail
Avatar
0
Jan 23
2173
address with ampersand in qweb Diselesaikan
xml view qweb html
Avatar
Avatar
1
Okt 22
9188
Creating a dynamic url and execute it
form view html metabase
Avatar
0
Mei 22
3976
translate knowledge articles tabs
knowledge xml view html body
Avatar
1
Jun 23
2672
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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