Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
701 Prikazi

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
Opusti
Avtor 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
Opusti
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
Opusti