564 564 fossil open ../tinymce.fsl
565 565 fossil add javascript
566 566 fossil commit -m "added timymce to the project"
567 567 fossil ui
568 568 </pre>
569 569 Select admin/headers add after the </link>
570 570 <pre class="verbatim">
571 - <script type="text/javascript"
572 - src="/doc/tip/javascript/tinymce/jscripts/tiny_mce/tiny_mce.js">
573 - </script>
574 -</pre>
575 -and save
576 -select admin/footer add above the first line
577 -<pre class="verbatim">
578 - <script type='text/javascript'>
579 - var m = document.getElementsByTagName('textarea')
580 - var l = m.length
581 - var n
582 - for(var i=0 ;i < l;i++){
583 - <nowiki>n = m[i].name</nowiki>
584 - if( 'comment' == n || 'cmappnd' == n || "w" == n){
585 - tinyMCE.init({ mode : 'exact' , elements : n, theme: 'advanced'
586 - ,width : '90%' } );
587 - }
588 - }
589 - </script>
571 + <th1>
572 + if { "tktnew" eq $current_page
573 + || "tktedit" eq $current_page
574 + || "wikiedit" eq $current_page
575 + || "wikiappend" eq $current_page } {
576 + html "<script type='text/javascript'\n"
577 + html "src='/doc/tip/javascript/tinymce/jscripts/tiny_mce/tiny_mce.js'>\n"
578 + html "</script>\n"
579 + html " <script type='text/javascript'>\n"
580 + puts "tinyMCE.init({ mode : 'specific_textareas' , editor_selector : 'wikiedit', theme: 'advanced',width : '90%' } );"
581 + html "</script>\n"
582 + }
583 +</th1>
590 584 </pre>
591 -
592 -
585 +and save.
593 586 <a name="markitup"><h3>markitup!</h3></a>
594 587 <p>
595 588 Source: <a href="http://markitup.jaysalvat.com/home/"> Markitup </a>
596 589 </p>
597 590 <h5> Example</h5>
598 591 <pre class="verbatim">
599 592 mkdir markitup