跳至內容
選單
此問題已被標幟
2 回覆
698 瀏覽次數

Hello,

What i would want is the option to add toggles in hml (like in notion). this is supported in html via the summary tag.

<details>
  <summary>Epcot Center</summary>
  <p>Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.</p>
</details
Is it possible to make an extention to the editor to archieve this?
Where would I need to start?

Regards,
頭像
捨棄
作者 最佳答案

Hi, No, that is not what I mean.

I was wondering if it would be hard to add an option to the list when you press "/" in the editor.

That option would be used to insert 

tag.

tag.

Basically I would like to know how hard it would be to extend the editor function with custom options.


Regards,

Remco


頭像
捨棄
最佳答案

Hi,

Are you looking to enable the code view of html field in odoo ? If yes, you can do it by adding options="{'codeview': true}" along with the html field in the view level.

See:  https://www.youtube.com/watch?v=BsErylsHlL0

Thanks

頭像
捨棄