Loading ...
Sorry, an error occurred while loading the content.

Re: TinyMCE and tabview

Expand Messages
  • romano_nl_2000
    Well, I tried FCKeditor and this one wonderfully works!!! Great, got it going within 30 minutes! All of a sudden even the weather here in Holland seems fine
    Message 1 of 2 , May 30, 2007
    • 0 Attachment
      Well, I tried FCKeditor and this one wonderfully works!!! Great, got
      it going within 30 minutes!

      All of a sudden even the weather here in Holland seems fine ;-)

      Ciao,
      Romano


      --- In ydn-javascript@yahoogroups.com, "romano_nl_2000" <romano@...>
      wrote:
      >
      > Hi all,
      >
      > Hope anyone can help me ou here.
      >
      > I've set up a tabview. On it i'd like to use the TinyMCE rich text
      > editor for any textareas on the page, or rather, for textares on the
      > tab contents.
      > However, none of the textareas renders as rich text editor.
      >
      > If I add a textarea to the page outside the tabview, then indeed the
      > TinyMCE editor appears. So things appear to go wrong only for html
      > added dynamically to the tabs. I have a feeling things have to do with
      > the tabcontent not being available yet when TinyMCE.init() is called,
      > though I'm not sure.
      >
      > Has anyone else successfully used TinyMCE on tabs?
      >
      > Any help is very much appreciated!
      > Best regards,
      > Romano
      >
      >
      >
      > Here's the code, combined with PHP:
      >
      >
      >
      > function init() {
      >
      > var tabView = new YAHOO.widget.TabView( { id: 'maintabset' } );
      >
      > tabView.addTab( new YAHOO.widget.Tab({
      > label: 'HTML bestanden',
      > content: '<?= ( $maintab == 0 ) ? $content_for_layout : "" ?>',
      > active: <?= ( $maintab == 0 ) ? "true" : "false" ?>
      > }));
      >
      > tabView.addTab( new YAHOO.widget.Tab({
      > label: 'Upload bestanden',
      > content: '<?= ( $maintab == 1 ) ? $content_for_layout : "" ?>',
      > active: <?= ( $maintab == 1) ? "true" : "false" ?>
      > }));
      >
      > YAHOO.util.Event.onContentReady( 'maintabset', function() {
      > tabView.appendTo( this ); /* append to #doc */
      > });
      >
      > }
      >
      >
      > ---------------------------
      > This is placed at the end of the page body:
      >
      >
      >
      > <script language="javascript" type="text/javascript">
      > tinyMCE.init({
      > mode : "textareas",
      > theme : "advanced",
      > content_css : "lcms_html/content.css",
      > plugins :
      > "table,save,advhr,advimage,advlink,searchreplace,print,contextmenu",
      > theme_advanced_buttons1_add_before : "save,separator",
      > theme_advanced_buttons1_add : "fontselect,fontsizeselect",
      > theme_advanced_buttons2_add : "forecolor,backcolor",
      > theme_advanced_buttons2_add_before:
      > "cut,copy,paste,separator,search,replace,separator",
      > theme_advanced_buttons3_add_before : "tablecontrols,separator",
      > theme_advanced_buttons3_add : "advhr,separator,print",
      > theme_advanced_toolbar_location : "top",
      > theme_advanced_toolbar_align : "left",
      > extended_valid_elements :
      > "a[name|href|target|title|onclick],img[class|src|border=0|
      > alt|title|hspace|vspace|width|height|align|
      > onmouseover|onmouseout|name],hr[class|width|size|noshade],
      > font[face|size|color|style],span[class|align|style]"
      > });
      > </script>
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.