Bug 24746

Summary: [Qt] Additional editing related QWebPage WebActions
Product: WebKit Reporter: Erik L. Bunce <elbunce>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Enhancement CC: hausmann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Adds editing related WebActions and improves selection / editing tests.
none
Adds editing related WebActions and improves selection / editing tests. hausmann: review+

Description Erik L. Bunce 2009-03-21 21:58:23 PDT
Some additional editing related QWebPage WebActions would make Qt WebKit more useful as an embedded editor.
 * Clipboard: PasteAndMatchStyle
 * Formatting: RemoveFormat, ToggleStrikethrough, ToggleSubscript, and ToggleSuperscript
 * List Editing: InsertUnorderedList, InsertOrderedList, Indent, Outdent
 * Paragraph Justification: AlignCenter, AlignJustified, AlignLeft, AlignRight 

Also the selection / editing related ports of the qwebpage test harness could use some enhancement.
Comment 1 Erik L. Bunce 2009-03-21 22:03:37 PDT
Created attachment 28829 [details]
Adds editing related WebActions and improves selection / editing tests.

Adds the following WebActions:
+ PasteAndMatchStyle - Paste content from the clipboard with current style.
+ RemoveFormat - Removes formatting and style.
+ ToggleStrikethrough - Toggle the formatting between strikethrough and normal style.
+ ToggleSubscript - Toggle the formatting between subscript and baseline.
+ ToggleSuperscript - Toggle the formatting between supercript and baseline.
+ InsertUnorderedList - Toggles the selection between an ordered list and a normal block.
+ InsertOrderedList - Toggles the selection between an ordered list and a normal block.
+ Indent - Increases the indentation of the currently selected format block by one increment.
+ Outdent - Decreases the indentation of the currently selected format block by one increment.
+ AlignCenter - Applies center alignment to content.
+ AlignJustified - Applies full justification to content.
+ AlignLeft - Applies left justification to content.
+ AlignRight - Applies right justification to content.

Improved selection and editing tests.
Comment 2 Erik L. Bunce 2009-03-26 18:13:13 PDT
Created attachment 28996 [details]
Adds editing related WebActions and improves selection / editing tests.

Adjusted to separate out the other test case fix, as per Simon's request.
Comment 3 Simon Hausmann 2009-03-27 04:51:04 PDT
Comment on attachment 28996 [details]
Adds editing related WebActions and improves selection / editing tests.

Thanks Erik :)
Comment 4 Simon Hausmann 2009-03-27 04:54:33 PDT
Landed in r42032