Posted - 01/28/2022 : 02:37:35
Thanks Gary, unfortunately users often don't do this and the product descriptions get really messy when they paste from Word etc. It would be great to have the editor use the 'pastePlain' behaviour by default. With CKeditor there is config.js where you can put such things. I need to move to Froala for other reasons though, so was hoping to find the place where Froala is invoked, or where config options can be specified. Any ideas?
The example code given on the link I gave is this:
new FroalaEditor('.selector', {
pastePlain: true
});
There is another useful looking property "pasteAllowedStyleProps" which could be used to specify the list of allowed CSS attributes to be used for tags on paste.
Thank you Ellen
Edited by - EllenD on 01/28/2022 02:39:19
|