hi,

i try to include the following into the header.cs:

<head>
 ....
 <?cs include "wikiwyg.cs" ?>
</head>

wikiwyg.cs contains:

<link rel="stylesheet" type="text/css" href="<?cs var:htdocs_location
?>traciwyg/wikiwyg.css" />
<script type="text/javascript" src="<?cs var:htdocs_location
?>traciwyg/Wikiwyg.js"></script>
<script type="text/javascript" src="<?cs var:htdocs_location
?>traciwyg/Toolbar.js"></script>
<script type="text/javascript" src="<?cs var:htdocs_location
?>traciwyg/Wysiwyg.js"></script>
<script type="text/javascript" src="<?cs var:htdocs_location
?>traciwyg/Wikitext.js"></script>
<script type="text/javascript" src="<?cs var:htdocs_location
?>traciwyg/Preview.js"></script>
<script type="text/javascript" src="<?cs var:htdocs_location
?>traciwyg/Trac.js"></script>
<script type="text/javascript">
onload = function() {
  var wiki = document.getElementById('wikipage');
  Wikiwyg.Trac.setup_wikiwyg_section(wiki, '<?cs var:htdocs_location ?>');
  }
</script>


how do i get that into a plugin? i.e.:
* how do i state that wikiwyg.cs is only loaded into the header if the
plugin is installed?
* what path do i use so it finds wikiwyg.cs?
* what path do i use inside wikiwyg.cs so it finds the javascripts?

-solo
_______________________________________________
Trac-dev mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to