I don't find anything on google if there is a way to use on a textarea in a website form the same text editor that is in the back end for html fields.
Is it possible to use that WYSIWYG text editor in a website form? If it's possible, how to use it?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I don't find anything on google if there is a way to use on a textarea in a website form the same text editor that is in the back end for html fields.
Is it possible to use that WYSIWYG text editor in a website form? If it's possible, how to use it?
Had to copy paste the js code from website_forum module for the textarea.load_editor. Then add the js to assets_frontend.
After that I just added the class load_editor to textarea and summernote started working.
<textarea class="form_control load_editor"
Yes, we can.The best example is, odoo using the
WYSIWYG editor here in the forum. https://summernote.org/ you can integrate other editors also.<field name="body_html" widget="html_frame"/>
Thanks... I'm looking at the website_forum and web_editor addons. Is there a simpler web addon than the forum to figure out how summernote works? I don't know js so I'm a bit out of my zone here.
I updated the answer.
Not in the back end... I need in a website template for a <textarea></textarea>. In the back_end I know to just add widget=html to the Text fields
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
5
thg 2 24
|
24182 | ||
|
0
thg 7 21
|
1846 | ||
|
0
thg 7 18
|
2665 | ||
|
2
thg 7 18
|
3070 | ||
|
2
thg 11 17
|
4554 |