Improve toolbar and editor interactions
This brings 2 main things:
-
The toolbar actions are now checked based on what the cursor is hovering/the selected text. Unchecking those actions will remove the related delims. And checking them will add the delims. Note: Non-block delims (bold, italic, ...) won't be added if no text is selected.
-
tabandreturnhandling in the editor have been move to fully use the acces to the QTextDocument. As a bonus, pressingshift+returnwill result in a<br>\nand pressingalt+returnwill add a horizontal rule after the block of text.
Edited by Louis Schul