Failed to execute 'querySelectorAll' on 'Document': 'p style="margin-left:20px;"' is not a valid selector.
If you have a feature suggestion, please add it on the Feature List instead. Expected behavior. Indent is decreased again AKA no indenting but unordered list remains on canvas
Actual behavior. Following error:
Failed to execute 'querySelectorAll' on 'Document': 'p style="margin-left:20px;"' is not a valid selector. at new E (froala_editor.pkgd.min.js:7:466864) Steps to reproduce the problem. Try following in https://froala.com/wysiwyg-editor/examples/toolbar-buttons-2/
Enter some text Click the increase indent toolbar button Click the unordered list button Click the decrease indent button. Editor version. 4.3.1
OS. Mac Os 15.3
Browser. Version 132.0.6834.162
The Demo also have the issue
Can repro on Windows too, and I assume since the demo is on their site, that the version is 4.4.0 as well as 4.3.1?
And worth noting that once the editor is in this state you cant remove the unordered list option, or decrease the indent. You just have to do delete the text and start again :(
We get errors like this quite often, but have never had a reproducible sequence - so hopefully they can push out a fix quickly.
It seems that we are having the same issue, but I couldn't repro it using the steps you provided. @tmpravinkumar , @steve-tapley , could you share a reproducible example? We are holders of Froala license, so we could poke Froala team via their support channel. But they will to need a decent repro.
@earshinov I can't reproduce this particular case either - so it looks like it has been fixed. We suffer from many other similar issues like this when using Froala, but they don't seem to care about fixing them.