Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
730 Vizualizări

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,
Imagine profil
Abandonează
Autor Cel mai bun răspuns

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


Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează