Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3755 Lượt xem

How can I show all toolbars in compose mail text?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I am assuming you mean all the buttons to make text bold, underline it, etc. Am I right?

If this is the case, you just need to make the body field of the message an html one.

_columns = {
    ...
    'body': fields.html('Body of the email'),
    ...
}

and in the xml, by just putting it in the form view, the default widget has this buttons.

Hope this is what you want!

Ảnh đại diện
Huỷ bỏ
Tác giả

Tanx,but I don't understand.

Tác giả

When we want to compose a new message we have a textbox with some toolbar like bold,italic,... I want to add some other toolbar like align ,font. there are in "jquery.cleditor.js".but it was not shown.