File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
crates/wysiwyg/src/dom/parser Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -48,4 +48,4 @@ fn test_contains_style() {
48
48
} ;
49
49
assert ! ( node. contains_style( "font-weight" , "bold" ) ) ;
50
50
assert ! ( !node. contains_style( "font-weight" , "normal" ) ) ;
51
- }
51
+ }
Original file line number Diff line number Diff line change @@ -69,11 +69,13 @@ export function processInput(
69
69
const clipboardData = event . clipboardData ;
70
70
const htmlData = clipboardData ?. getData ( 'text/html' ) ;
71
71
const plainData = clipboardData ?. getData ( 'text/plain' ) ?? '' ;
72
-
72
+
73
73
if ( htmlData && htmlData !== plainData ) {
74
74
const htmlSource = clipboardData ?. types . includes (
75
75
'application/x-vnd.google-docs-document-slice-clip+wrapped' ,
76
- ) ? HtmlSource . GoogleDoc : HtmlSource . UnknownExternal ;
76
+ )
77
+ ? HtmlSource . GoogleDoc
78
+ : HtmlSource . UnknownExternal ;
77
79
return action (
78
80
composerModel . replace_html ( htmlData , htmlSource ) ,
79
81
'replace_html_paste' ,
You can’t perform that action at this time.
0 commit comments