reenadak

custom function in MATE

Mar 17th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. $javascript1 = '   
  2.             <script type="text/javascript">
  3.                     function md1()
  4.                     {
  5.                         alert("Mukesh");
  6.                     }
  7.             </script>';
  8. echo $javascript1;
  9.  
  10. $userButtons[] = array(
  11.     'button_html' => '<button onclick="md1();">Custom Button</button>'
  12. );
  13.  
  14. $this->Editor->setConfig('userButtons',$userButtons);
Advertisement
Add Comment
Please, Sign In to add comment