Was able to get failure with the Full Featured Demo.  However, problem was related to running No-Script plug in Firefox.  Even with all scripts enabled I received the error popup.  As soon as I disabled the No-Script pop-up I the Demo worked fine.

Note: I used the "Allow Clipboard Helper" to add the sites.   

Also, using the Edit->Paste, Edit->Cut etc out of the FireFox main menu works with No-Script enabled. 
I'll try to notify NoScript people as well

No real reason.  In the real world the value is generated by the program which builds the page and the value changes depending on how its called.   Since its a variable in the program I put it into a variable in the script.  I think at one point I was hoping to modify that variable rather than the approach I was shown here.

Bill

Thanks, I have it working now.  I added lines:

 ed.settings.external_link_list_url  = "./linklist1.pl//home/cszhtml/csz.com:www.csz.com:"+graphicsDirectory+val;
        ed.settings.media_external_list_url = "./medialist1.pl//home/cszhtml/csz.com:www.csz.com:"+graphicsDirectory+val;

Which extends it to media and links.

Bill

4

(8 replies, posted in News)

clinton wrote:

Hi all

The Perl compressor can now be downloaded from http://github.com/clintongormley/tinymc … /downloads
Docs can be found at: http://wiki.github.com/clintongormley/t … ompressor/

thanks

Clint

In FF: using Web Developer I get the following error:
Error: syntax error
Source File: https://secure2.csz.com/cNcwork/tjscrip … ce_gzip.js
Line: 143
Source Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

Clicking on the 143 points to:
                                eval(co, w); // Firefox 3.0

The test harness is at:
https://secure2.csz.com/cNcwork/test2.htm

cache directory is empty.
In the tiny_mce directory I have
drwx------  2 apache keygroup   2048 2010-05-21 11:24 cache
drwxr-xr-x  2 root   root       2048 2010-05-07 13:04 langs
-rw-r--r--  1 root   root      26931 2010-05-07 13:04 license.txt
drwxr-xr-x 38 root   root       2048 2010-05-14 09:58 plugins
drwxr-xr-x  4 root   root       2048 2010-05-07 13:04 themes
-rw-r--r--  1 root   root       4989 2010-05-21 11:20 tiny_mce_gzip.js
-rwxr-xr-x  1 apache root      10593 2010-05-21 11:21 tiny_mce_gzip.pl
-rw-r--r--  1 root   root     177889 2010-05-07 13:04 tiny_mce.js
-rw-r--r--  1 root   root       5189 2010-05-07 13:04 tiny_mce_popup.js
-rw-r--r--  1 root   root     355134 2010-05-07 13:04 tiny_mce_src.js
drwxr-xr-x  2 root   root       2048 2010-05-07 13:04 utils

Any thoughts?

Sorry, I've created a "working version"  it lives at https://secure2.csz.com/cNcwork/test1.htm
BTW, thanks for taking the time to try and help me.

<html>
<head>
<title>CyberStrategies, Inc.:  Content Management</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<LINK REL="stylesheet" HREF="/cNc/csz/admin.css" type="text/css">
<script language="javascript" type="text/javascript" src="./tjscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
        var graphicsDirectory = "cNcgraphics";
        myEditor = tinyMCE.editors["PCContent"];
        tinyMCE.init({
        // General options
        mode : "specific_textareas",
    editor_selector : "mceEditor",
        forced_root_block : "",    
        theme : "advanced",
        plugins : "safari,spellchecker,style,layer,table,save,advhr,advimage,advlink,inlinepopups,directionality,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
theme_advanced_styles : "fileName=filename;important=important;marginal=marginal;Popup body=popup_body;Popup code=popup_code;Popup table=popup_table;Popup table alt=popup_table_alt;Popup title=popup_title;userInput=userinput;warning=warning", 
        plugin_insertdate_dateFormat : "%b %d, %Y",
        plugin_insertdate_timeFormat : "%I:%M %p",
spellchecker_languages : "+English=en,Spanish=es_US",
        // Theme options
        theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect,fullscreen,spellchecker",
        theme_advanced_buttons2 : "cut,copy,pastetext,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,forecolor,backcolor,preview,insertdate",
        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,advhr,|,nonbreaking,|,ltr,rtl,|,inserttime",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,
                content_css : "www.csz.com/cNcgraphics/css/live1.css"
                
            ,external_image_list_url : "./imageslist1.pl//home/cszhtml/csz.com:www.csz.com:"+graphicsDirectory
            ,external_link_list_url : "./linklist1.pl//home/cszhtml/csz.com:www.csz.com:"+graphicsDirectory
            ,media_external_list_url : "./medialist1.pl//home/cszhtml/csz.com:www.csz.com:"+graphicsDirectory
       });
       function changeDir(val){
            graphicsDirectory = val;
            alert("New graphics Directory Value is: "+ val);
            myEditor.settings.external_image_list =
            "./imageslist1.pl//home/cszhtml/csz.com:www.csz.com:"+graphicsDirectory;
        }
</script>
</head>
<body>
                  <table width="100%" border="0" cellpadding="5" cellspacing="0" class="tableShade02">
<form method="POST" action="https://secure2.csz.com/cNcwork/managecontent.plx" name="form1">
<input type=hidden name=hasdata value=1>
<input type=hidden name="pword" value="...">
<input type=hidden name="uname" value="...">
<input type=hidden name="db" value="csz">
<input type=hidden name="table" value="ClientPages">
              <tr> 
                <td class="tableShade00"><table width="100%" border="0" cellpadding="5" cellspacing="0" class="tableShade00">
                    <tr> 
                      <td width="100">Content:</td>

                      <td width="100%"><span class="smallText"><a href="/cNcwork/" target="_self" onclick="window.open('http://www.csz.com/cgi-bin/cNc/showPage.plx?db=Content_Catalog&pid=24','Help','width=800,height=300,scrollbars=yes,resizable=yes');return false;"><img src="/cszstd/icon_help.gif" border="0"></a> 

<span style='font-size:90%;'>Graphics Directory <select name="currentDir"
onchange="changeDir(this.value);">
<option value="cNcgraphics">Default</option>
<option value="cNcgraphics/css">css</option><option value="cNcgraphics/testDir">testDir</option><option
value="cNcgraphics/ComplexImages">ComplexImages</option><option
value="cNcgraphics/newSite">newSite</option><option value="cNcgraphics/bkgrds">bkgrds</option><option
value="cNcgraphics/cNc">cNc</option></select></span>
<span style='font-size:90%; font-family: arial,sans;font-style: oblique;'>Changing directory will cause page refresh</span>
                        <input type="radio" name="PCType" value="S" checked> SIMPLE -
                        <input type="radio" name="PCType" value="H"> HTML</span>

                      </td>
                    </tr>
                    <tr>
                      <td colspan='2'><textarea name="PCContent" cols="85" rows="15" class="mceEditor"></textarea></td>
                    </tr>
                  </table></td>
              </tr>
</form>
           </table>
</body>
</html>

Thanks, I have multiple areas in one version of the CMS so I'll have to setup for each I guess. 
However, in the test htm file I'm working with there is only one.  (Walk before you run)

I have only one tinyMCE.init so I thought I should be naming that.

Well it didn't work.
In HEAD section:
myEditor = tinyMCE.editors["PCContent"];


In body:
<textarea name="PCContent" cols="85" rows="15" class="mceEditor"></textarea>

What am I missing.  I added

alert("New graphics Directory Value is: "+ val);

to the function changeDir(val) so I know the function is being called with the correct value for Val.

Felix Riesterer wrote:

The string value gets stored in the editor's settings property which is an object itself and has a property called external_link_list_url. So you could try this:

var myEditor;
myEditor = tinyMCE.editors["id_of_my_editor"];
myEditor.settings.external_link_list = "my/path/to/a/js/file.js";

Please excuse my ignorance but how do you determine the "id_of_my_editor" ?
I have a have a input type select set to call a java script function to change the external_link_lst

        var graphicsDirectory = "cNcgraphics";
        myEditor = tinyMCE.editors["id_of_my_editor"];
        tinyMCE.init({
...
,external_image_list_url : "./imageslist1.pl//home/cszhtml/csz.com:www.csz.com:"+graphicsDirectory
...
});
function changeDir(val){
            graphicsDirectory = val;
            alert("New graphics Directory Value is: "+ val);
            myEditor.settings.external_link_list =
            "./linklist1.pl//home/cszhtml/csz.com:www.csz.com:"+graphicsDirectory;
        }

And in the body:

Graphics Directory <select name="currentDir"
onchange="changeDir(this.value);">
<option value="">Default</option>
<option value="css">css</option><option value="testDir">testDir</option></select>

BTW: shouldn't it be "external_image_list_url

8

(8 replies, posted in News)

Version of tinyMCE: tinymce_3_3_2

Missing from docs (I think) change tiny_mce_gzip.js line: 7 to call .pl vs .php
made pl file executable (ok, ok, I should have known to do that).
cache directory is still empty.

drwxrwxrwx  2 wwwsec cszcgi   2048 2010-04-02 17:10 cache
-rwxr--r--  1 wwwsec root    10593 2010-04-02 17:14 tiny_mce_gzip.pl
-rw-r--r--  1 wwwsec root     4989 2010-04-05 11:46 tiny_mce_gzip.js

<script type="text/javascript" src="tjscripts/tiny_mce/tiny_mce_gzip.js"></script>
<script type="text/javascript">
    tinyMCE_GZ.init({
        plugins : "safari,spellchecker,style,layer,table,save,advhr,advimage,advlink,inlinepopups,directionality,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
        themes : 'advanced',
        languages   : 'en',
        disk_cache  : true
    });
</script>

In FF 3.6.3 no fatal errors reported by Developer plugin.  (just normal FF complaints about syntax errors in tiny_mce.  Do get a bunch of secure2.csz.com : potentially vulnerable to CVE-2009-3555

9

(8 replies, posted in News)

Link appears dead.  Does anyone have a copy?

10

(73 replies, posted in Tips, Tricks & HowTo's)

forced_root_block : "",
Seems to work for me.   However, <p> are still inserted within paragraph table elements.  So its a partial solution at best. <sigh /> Thanks.

Bill

Does this work with tinymce_3_2_1_1? I think it needs an update.

Bill

12

(73 replies, posted in Tips, Tricks & HowTo's)

OK, I'm in the current  tinymce_3_2_1_1

It seems much improved.  However when I set force_p_newlines : 'false
but its still putting a <p> at the top of the block.  I understand paragaph tags when you hit Enter vs. Shift-enter but I haven't hit anything.

13

(14 replies, posted in News)

I am running under https:// all scripts, graphics, pugins etc. are on the secure server.  However under IE (win xp sp 2) I get 'This page contains both secure and non-secure items' alerts from ID whenever a plug in opens a pop-up.  I've tried setting IE to accept mixed content and 'trusted' the site, but this still persists. 

Any thoughts?

Below is the init:
        mode : "specific_textareas",
        theme : "advanced",
plugins : "table,save,advhr,advimage,advlink,preview,zoom,searchreplace,print,paste,fullscreen,noneditable,contextmenu",
           theme_advanced_styles : "largetext=largetext;newsCell=newscell;regText=regtext;smallText=smalltext;tableBorder=tableborder;tableBorder02=tableborder02;text=text",
        theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,preview,separator,forecolor,backcolor",
        theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
        theme_advanced_buttons3_add_before : "tablecontrols,separator",
        theme_advanced_buttons3_add : "advhr,separator,print,separator,fullscreen",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        content_css : "https://secure1.csz.com/cjuhsd2/assets/ … _style.css",
    plugin_preview_width : "500",
    plugin_preview_height : "600",
browsers : "msie,gecko",
visual : true,
//debug : true,
        theme_advanced_path_location : "top",
    fullscreen_settings : {
        theme_advanced_path_location : "top"
    },
                        valid_elements: "*[*]",
                        extended_valid_elements: "*[*]",

external_image_list_url : "./imageslist1.plx//home/pwda/markete/cjuhsd;http://chhs.csz.com;media/Category"
,external_link_list_url : "./linklist1.plx//home/pwda/markete/cjuhsd;http://chhs.csz.com;media/Category"
        ,paste_use_dialog : false,
        theme_advanced_resizing : true,
        theme_advanced_resize_horizontal : false
    });
</script>

The problem with limiting table element backgrounds to use of pre-defined styles is that the styles must be built in advance and there must be a style for every contingency.  At the very least this means that the content editor must stop what they are doing and build a style before they can use it rather than just clicking on the background and picking a background.  I'm also unclear as to the 'visual aid plug in' to which you refer. 

Great package, but I'm still learning it.
:?:
Question
Found workaround in another post:

visual: false,
visual_table_style : "",