On 2022/02/10 08:27 AM, Alexis PM via tde-devels wrote:
Hello
Added HTML5 support to Quanta via
https://mirror.git.trinitydesktop.org/gitea/Alexis/tdewebdev/pulls/1
With this contribution is possible in Quanta to select HTML5 as DTD (Menu DTD > Change
DTD > HTML5) and the new toolbars
will be displayed with new icons that will insert the corresponding tag. The templates
are also ready. The names used
for the toolbars were already in the translation file, it is not necessary to add new
translations to have it e.g. in
Spanish.
Things to do:
* The "dtep" need to be improved (traces of HTML4 have remained). I can do it
little by little in my spare time, of
course help is welcome to speed it up.
* "Source editor" mode is fully functional. "Preview" mode works
(actually only the common tags between HTML4 and HTML5
work but it encompasses all the most used ones, the HTML engine I guess doesn't
support HTML5). The "VPL editor" mode
refuses to activate if HTML5 is selected as DTD (no crash, just not activatable). It may
take some (perhaps a lot of)
work to achieve this (and unfortunately it is beyond my current capabilities).
* With HTML4 as default DTD, opening a new tab with the new document (HTML4) adds the
HTML4 toolbars to the HTML5
toolbars (9 toolbars in total). I'm not sure why, it may be easy to fix. With Menu
DTD > Change DTD > HTML5, the extra
HTML4 toolbars disappear.
Best regards!
Hi Alexis,
that is great. Would you mind creating a proper PR on tdewebdev for this?
Please take note that we use a "shared contribution" model rather than a
"fork contribution" one, for various good
reason. You can read how to contribute using such model here:
https://wiki.trinitydesktop.org/TDE_Gitea_Workspace#To_contribute_code_chan…
I have already made you a contributor in TGW, so you should have no problems in following
the instructions and creating
a PR. Otherwise just reach to us here.
Thanks for your work, looking forward to add it to TDE!!
Cheers
Michele