View Single Post
Old 01-07-2013, 12:41 PM   PM User | #2
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
Give that initializer function a name and then call it:
PHP Code:
    <script type="text/javascript">
    $(
document).ready(
    function 
yourFunctionName()
    {
    $(
'#redactor').redactor({
    
plugins: ['fullscreen''advanced']
    });    
    }
    );
    
</script>

<button onClick="yourFunctionName()">CLICK ME TO INTIALIZE</button> 
__________________
For professional Hosting and Web design.....


NetEssentials.co.uk
Redcoder is offline   Reply With Quote