Skip to Content
Menu
This question has been flagged
2 Replies
691 Views

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,
Avatar
Discard
Author Best Answer

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


Avatar
Discard
Best Answer

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

Avatar
Discard