551 551 mkdir tiny
552 552 mkdir tiny/javascript
553 553 fossil new tinymce.fsl
554 554 fossil ui tinymce.fsl {configure the project)
555 555 download tinymce
556 556 unzip in tiny/javascript
557 557 cd tiny
558 - fossil open ../tinymce/fsl
558 + fossil open ../tinymce.fsl
559 559 fossil add javascript
560 560 fossil commit -m "added timymce to the project"
561 561 fossil ui
562 562 </pre>
563 563 Select admin/headers add after the </link>
564 564 <pre class="verbatim">
565 565 <script type="text/javascript"
................................................................................
570 570 select admin/footer add above the first line
571 571 <pre class="verbatim">
572 572 <script type='text/javascript'>
573 573 var m = document.getElementsByTagName('textarea')
574 574 var l = m.length
575 575 var n
576 576 for(var i=0 ;i < l;i++){
577 - n = m[i].name
578 - if( 'header' != n && 'footer' != n && 'css' != n){
577 + <nowiki>n = m[i].name</nowiki>
578 + if( 'comment' == n || 'cmappnd' == n || "w" == n){
579 579 tinyMCE.init({ mode : 'exact' , elements : n, theme: 'advanced'
580 580 ,width : '90%' } );
581 581 }
582 582 }
583 583 </script>
584 584 </pre>
585 585
................................................................................
618 618 select admin/footer add above the first line
619 619
620 620 <pre class="verbatim">
621 621 <script type='text/javascript'>
622 622 var m = document.getElementsByTagName('textarea')
623 623 var l = m.length
624 624 var n
625 - var mySettings = {
625 + <nowiki>var mySettings = {
626 626 nameSpace: "html", // Useful to prevent multi-instances CSS conflict
627 627 onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
628 628 onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>\n'},
629 629 onTab: {keepDefault:false, openWith:' '},
630 630 markupSet: [
631 631 {name:'Heading 1', key:'1', openWith:'<h1(!( class="[![Class]!]")!)>', closeWith:'</h1>', placeHolder:'Your title here...' },
632 632 {name:'Heading 2', key:'2', openWith:'<h2(!( class="[![Class]!]")!)>', closeWith:'</h2>', placeHolder:'Your title here...' },
................................................................................
650 650 {name:'Clean', replaceWith:function(h) { return h.selection.replace(/<(.*?)>/g, "") } },
651 651 {name:'Preview', call:'preview', className:'preview' }
652 652 ]
653 653 }
654 654 for(var i=0 ;i < l;i++){
655 655 n = m[i].name
656 656 if( 'comment' == n || 'cmappnd' == n || "w" == n){
657 - m[i].id = n
657 + m[i].id = n</nowiki>
658 658 $(document).ready(function() {
659 659 $("#" + n).markItUp(mySettings);
660 660 });
661 661 }
662 662 }
663 663 </script>
664 664 </pre>