Hi,
i am trying to get ckeditor to work dymanically by having PHP call "ckeditor.js" from html.
basically, i have a function that call the link to header
| Function: | echo "<script type='".$tmp11."' src='".chmava_site_content_get($i)."'></script>"."\n"; |
| HTML Result: |
<script type='application/javascript' src='http://localhost/external-call/content/third-party-addon/ckeditor/ckeditor/'></script> |
and the php code that echo/include it. (text/javascript does nothing)
| Type1 |
header('Content-Type: application/javascript;'); include_once ($chmava->sSite['siteBaseDir'].'/ckeditor/ckeditor.js'); |
| Type2 |
header('Content-Type: application/javascript;'); echo file_get_contents($chmava->sSite['siteBaseDir'].'/ckeditor/ckeditor.js'); |
when you view source, and click on the link, it show the full content of js.
but the textarea box show nothing. i have use the same function and called css just fine.
i follow the instruction here, http://stackoverflow.com/questions/1045845/how-to-call-a-javascript-function-from-php
Has anyone else attempt this and succeed?
