Skip to content

Commit

Permalink
Merge pull request #198 from bOnepain/file_picker_callback
Browse files Browse the repository at this point in the history
Manage file_picker_callback option
  • Loading branch information
LogansUA committed May 18, 2016
2 parents 998761a + b402dec commit a23ff96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Twig/Extension/StfalconTinymceExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,12 @@ public function tinymceInit($options = array())
$tinymceConfiguration = preg_replace(
array(
'/"file_browser_callback":"([^"]+)"\s*/',
'/"file_picker_callback":"([^"]+)"\s*/',
'/"paste_preprocess":"([^"]+)"\s*/',
),
array(
'file_browser_callback:$1',
'file_picker_callback:$1',
'"paste_preprocess":$1',
),
json_encode($config)
Expand Down

0 comments on commit a23ff96

Please sign in to comment.