Skip to content

Commit

Permalink
Restrict PfLO only to content recognized by generator metatag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer committed Feb 12, 2020
1 parent bee39bb commit 405c0bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/pastefromlibreoffice/plugin.js
Expand Up @@ -48,8 +48,7 @@

generatorName = CKEDITOR.plugins.pastetools.getContentGeneratorName( textHtml );

// The filter will be run also for a regular content, as there is no way to detect apropriate source under IE11 and Safari.
return generatorName ? generatorName === 'libreoffice' : true;
return generatorName === 'libreoffice';
},

handle: function( evt, next ) {
Expand Down

0 comments on commit 405c0bc

Please sign in to comment.