1/* DOKUWIKI:include behave.js */ 2 3var plugin_behave = (function () { 4 5 // public vars/methods 6 var pub = {}; 7 8 pub.editor = null; 9 10 pub.init = function () { 11 editor = new Behave({ 12 textarea: document.getElementById('wiki__text'), 13 replaceTab: true, 14 softTabs: true, 15 tabSize: 4, 16 autoOpen: true, 17 overwrite: true, 18 autoStrip: true, 19 autoIndent: false, 20 fence: false 21 }); 22 }; 23 24 // return only public methods/properties 25 return pub; 26})(); 27 28 29jQuery(function() { 30 plugin_behave.init(); 31}); 32