So I tried to use OW::getDocument()->addOnloadScript() function. But I dont now hoe exactly to use, it works but still have problems with the new console.
(function(_scope) { $('#post_body').get(0).htmlarea = function(){ $(this).htmlarea( {"toolbar":["image","video","html","bold","italic","underline","link","orderedlist","unorderedlist"],"size":170} );}; $('#post_body').get(0).htmlareaFocus = function(){this.jhtmlareaObject.iframe[0].contentWindow.focus();}; $('#post_body').get(0).htmlareaRefresh = function(){if(this.jhtmlareaObject){this.jhtmlareaObject.dispose();$(this).htmlarea( {"toolbar":["image","video","html","bold","italic","underline","link","orderedlist","unorderedlist"],"size":170} );}}; })(window);(function(_scope) {$('#post_body').htmlarea( {"toolbar":["image","video","html","bold","italic","underline","link","orderedlist","unorderedlist"],"size":170} );})(window);
and delete them using javascript. Without this lines it works, may some of you guys have a little tip for me to do it better.
just calling scripts and append the document.ready part:
OW::getDocument()->addScript($bbs); OW::getDocument()->addScript($ccs); OW::getDocument()->appendBody($tinymce);
thx for any little hint