Bug 204110

Summary: [GTK] Extend WebKitEditorState capabilities
Product: WebKit Reporter: Milan Crha <mcrha>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Milan Crha
Reported 2019-11-12 04:41:09 PST
I consider WebKitEditorState a very handy thing, it can avoid unnecessary calls to the WebKitWebProcess side and some asynchronous calls as well, but it's current state is very limited. I'd like to ask you to extend it to: a) make all the webkit_editor_state_is_XXXX_available () also properties with proper GObject notifications; b) add more flags into the WebKitEditorTypingAttributes. For the b) it currently supports only bold/italic/underline/strikethrough, but the editing commands can influence more. For me, adding at least Subscript and Superscript would be handy. I have my own javascript code to reach to these, thus I (at least right now) do not rely on WebKitEditorState, but checking for style value when the selection is not collapsed seems to be tricky (I always try only the Selection::baseNode style, not selection's content; basically because I'm not sure how to do it properly).
Attachments
Note You need to log in before you can comment on or make changes to this bug.