haxtheweb / issues

Issue queue for hax, haxcms, elmsln, lrnwebcomponents, wcfactory, websites and more.
Apache License 2.0
11 stars 1 forks source link

paragraph with a span in it does not allow editing via contenteditable operations #1970

Closed btopro closed 5 months ago

btopro commented 5 months ago

contenteditable is applied correctly to the paragraph but not the span. This allows for selection of the P but not select and editing of the SPAN just within it.

we should be safe to unwrap a SPAN if its immediate parent is a P and there are no other children... gotta explore

btopro commented 5 months ago

2 fold. Now we allow for contenteditable (the real problem) but we've also normalized the behavior of the Clear Formatting with Clean formatting buttons. Clear formatting is inline while Clean formatting is on View Source. The Clean formatting was running a stripMSWord magic function which cleans up all kind of crapolla from word style systems but inline it was only used to remove bold / italic that sorta thing. Now clicking this button in an active paragraph will strip things out.

A work around for now is to load it in View Source and Clear Formatting.