Changes To Cookbook
Not logged in

Changes to "Cookbook" between 2009-10-31 17:10:27 and 2009-11-01 10:42:30

   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 &lt;/link&gt;
   564    564   <pre class="verbatim">
   565    565      &lt;script type="text/javascript"
................................................................................
   570    570   select admin/footer add above the first line
   571    571   <pre class="verbatim">
   572    572    &lt;script type='text/javascript'&gt;
   573    573     var m = document.getElementsByTagName('textarea')
   574    574     var l = m.length
   575    575     var n
   576    576     for(var i=0 ;i &lt; 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    &lt;/script&gt;
   584    584   </pre>
   585    585   
................................................................................
   618    618   select admin/footer add above the first line
   619    619   
   620    620   <pre class="verbatim">
   621    621       &lt;script type='text/javascript'&gt;
   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:'&lt;br /&gt;\n'},
   628    628   	onCtrlEnter:     {keepDefault:false, openWith:'\n&lt;p&gt;', closeWith:'&lt;/p&gt;\n'},
   629    629   	onTab:           {keepDefault:false, openWith:'     '},
   630    630   	markupSet:  [
   631    631   	    {name:'Heading 1', key:'1', openWith:'&lt;h1(!( class="[![Class]!]")!)&gt;', closeWith:'&lt;/h1&gt;', placeHolder:'Your title here...' },
   632    632   	    {name:'Heading 2', key:'2', openWith:'&lt;h2(!( class="[![Class]!]")!)&gt;', closeWith:'&lt;/h2&gt;', placeHolder:'Your title here...' },
................................................................................
   650    650   	    {name:'Clean', replaceWith:function(h) { return h.selection.replace(/&lt;(.*?)&gt;/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       &lt;/script&gt;
   664    664    </pre>