Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 13. október 2026

Rozdiely pre phpMyEdit/extensions/phpMyEdit-mce-cal.class.php medzi verziami 1.9 a 1.10

verzia 1.9, 2008/05/21 17:06:52 verzia 1.10, 2008/05/21 17:28:17
Riadok 31 
Riadok 31 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/extensions/phpMyEdit-mce-cal.class.php,v 1.8 2008-05-19 12:16:12 ajh Exp $ */  /* $Platon: phpMyEdit/extensions/phpMyEdit-mce-cal.class.php,v 1.9 2008-05-21 17:06:52 ajh Exp $ */
   
 /*  /*
     OVERVIEW      OVERVIEW
Riadok 77 
Riadok 77 
                 <script language="javascript" type="text/javascript" src="js/<path to TinyMCE>"></script>                  <script language="javascript" type="text/javascript" src="js/<path to TinyMCE>"></script>
                 <script language="javascript" type="text/javascript">                  <script language="javascript" type="text/javascript">
                 tinyMCE.init({                  tinyMCE.init({
                 mode : "specific_textareas",                  editor_selector : "mceEditor",
                 auto_reset_designmode : true                  auto_reset_designmode : true
                 });                  });
                 </script>                  </script>
Riadok 86 
Riadok 86 
         where 'js/<path to TinyMCE>' is the path to the javascript code          where 'js/<path to TinyMCE>' is the path to the javascript code
   
                 NOTES:                  NOTES:
                 A.  The PME implementation uses the "specific_textareas" mode - this                  A.  Previous versions of this extension used "specific_textareas" mode - this
                     must always be set                      has now been deprecated in favour of "editor_selector". "editor_selector" must
                           always be set, by default it should be set to "mceEditor".
   
                 B.      Due to a bug in Mozilla, if any of the textareas being used as HTML                  B.      Due to a bug in Mozilla, if any of the textareas being used as HTML
                         editors are in tabs and are initially hidden, the width and height                          editors are in tabs and are initially hidden, the width and height
Riadok 95 
Riadok 96 
                         'auto_reset_designmode' must be set to 'true':                          'auto_reset_designmode' must be set to 'true':
   
                         tinyMCE.init({                          tinyMCE.init({
                         mode : "specific_textareas",                          editor_selector : "mceEditor",
                         auto_reset_designmode : true,                          auto_reset_designmode : true,
                         width: "800",                          width: "800",
                         height: "200"                          height: "200"
Riadok 141 
Riadok 142 
                 'html' is set to true.                  'html' is set to true.
   
                                 tinyMCE.init({                                  tinyMCE.init({
                                         mode : "specific_textareas",                                          editor_selector : "mceEditor",
                                         auto_reset_designmode : true                                          auto_reset_designmode : true
                                 });                                  });
   
                 This second example has an extra parameter, 'textarea_trigger', which is                  This second example uses a different "editor_selector". Instead of setting the
                   'html' option to true, you should set it to your chosed "editor_selector"
                 set to the text tag given to the textarea in PME with 'mce_' prepended                  set to the text tag given to the textarea in PME with 'mce_' prepended
                 to it.                  to it.
   
                         tinyMCE.init({                          tinyMCE.init({
                                 mode : "specific_textareas",                                  editor_selector : "mceFormat1",
                                 auto_reset_designmode : true,                                  auto_reset_designmode : true,
                                 textarea_trigger : "mce_format1",                                  theme : "advanced",
                                 theme : "advanced",  
                                 width: "800",                                  width: "800",
                                 height: "200",                                  height: "200",
                                 plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print",                                  plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print",
Riadok 174 
Riadok 175 
                 });                  });
   
                 So:                  So:
                         'html' => 'format1'     maps to     textarea_trigger : "mce_format1"                          'html' => true             maps to     editor_selector : "mceEditor"
                         'html' => 'foo'         maps to     textarea_trigger : "mce_foo"                          'html' => 'mceFormat1'     maps to     editor_selector : "mceFormat1"
             'html' => 'bar'                 maps to     textarea_trigger : "mce_bar"                          'html' => 'foo'            maps to     editor_selector : "foo"
                           'html' => 'bar'            maps to     editor_selector : "bar"
   
                 You can initialize TinyMCE as many times as you need to give you as many                  You can initialize TinyMCE as many times as you need to give you as many
                 editor formats as you need.                  editor formats as you need.
Riadok 332  class phpMyEdit_mce_cal extends phpMyEdi
Riadok 334  class phpMyEdit_mce_cal extends phpMyEdi
   
         function htmlTextarea($name, $css, $k, $value = null, $js = NULL)          function htmlTextarea($name, $css, $k, $value = null, $js = NULL)
         {          {
                   // mce_cal mod start
                   if (isset($this->fdd[$k]['textarea']['html'])) {
                           $mce_tag = 'mceEditor';
                           if (is_string($this->fdd[$k]['textarea']['html'])) {
                               $mce_tag = $this->fdd[$k]['textarea']['html'];
                           };
                           $css .= ' '.$mce_tag.' ';
           };
           // mce_cal mod end
                 $ret = '<textarea class="'.$css.'" name="'.$name.'"';                  $ret = '<textarea class="'.$css.'" name="'.$name.'"';
                 $ret .= ($this->readonly($k) ? ' disabled' : '');                  $ret .= ($this->readonly($k) ? ' disabled' : '');
                 if (intval($this->fdd[$k]['textarea']['rows']) > 0) {                  if (intval($this->fdd[$k]['textarea']['rows']) > 0) {

Legend:
Odstranené z verzie1.9  
zmenené riadky
  Pridané vo verzii1.10

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok