Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
set default pasteTextHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
ycrao committed Dec 26, 2017
1 parent a2b41a4 commit 72e666b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ function we_config($editor_id = 'wangeditor')
{
$uploadImgServer = config('wang-editor.uploadImgServer', '/laravel-wang-editor/upload');
$pasteFilterStyle = config('wang-editor.pasteFilterStyle', 'false');
$pasteTextHandle = 'function (content) { return content; }';
if ($pasteFilterStyle == 'false') {
$pasteTextHandle = config('wang-editor.pasteTextHandle', 'function (content) { return content; }');
} else {
$pasteTextHandle = '';
}
$token = csrf_token();
$showLinkImg = config('wang-editor.showLinkImg', 'false');
Expand Down

0 comments on commit 72e666b

Please sign in to comment.