Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Tuesday, October 13, 2026

Diff for phpMyEdit/extensions/phpMyEdit-mce-cal.class.php between version 1.9 and 1.10

version 1.9, 2008/05/21 17:06:52 version 1.10, 2008/05/21 17:28:17
Line 31 
Line 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
Line 77 
Line 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>
Line 86 
Line 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
Line 95 
Line 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"
Line 141 
Line 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",
Line 174 
Line 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.
Line 332  class phpMyEdit_mce_cal extends phpMyEdi
Line 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:
Removed from v.1.9  
changed lines
  Added in v.1.10

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top