Bug 41248 - styleWithCSS true does not work (always produce <b>, etc)
Summary: styleWithCSS true does not work (always produce <b>, etc)
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://stackoverflow.com/questions/30...
Keywords: HTML5
Depends on:
Blocks:
 
Reported: 2010-06-26 07:33 PDT by charuru2009
Modified: 2010-06-27 14:25 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Alexey Proskuryakov 2010-06-27 14:25:48 PDT
>        document.execCommand('bold', false, "styleWithCSS", true);

That's not how execCommand works. Bold and styleWithCSS are two separate commands that need to be invoked separately:

        document.execCommand("styleWithCSS", false, "true");
        document.execCommand('bold', false, null);