if ( !bHasType || aTypes[i][0] == oConnector.ResourceType ) AddSelectOption( cmbTypeObj, aTypes[i][1],aTypes[i][0] ) ;
/*if ( !bHasType || aTypes[i][0] == oConnector.ResourceType )*/ AddSelectOption( cmbTypeObj, aTypes[i][1],aTypes[i][0] ) ;
Yes, thanks for that. The installer for the new plugin for TinyMCE 3.1.x seems to be using a different mcpuk instead of the one in the manager folder, but the modification works. The TinyMCE installer creates and uses /assets/plugins/tinymce3101/mcpuk. Use the frmresourcetype.html file there once you upgrade.
Quote from: sjh_vt at Aug 08, 2008, 12:09 AM
Yes, thanks for that. The installer for the new plugin for TinyMCE 3.1.x seems to be using a different mcpuk instead of the one in the manager folder, but the modification works. The TinyMCE installer creates and uses /assets/plugins/tinymce3101/mcpuk. Use the frmresourcetype.html file there once you upgrade.
Hello,
I have TinyMCE 3101 but there’s no assets/plugins/tinymce3101/mcpuk folder. The only folders below tinymce3101/ are: jscripts and lang. Should I use the mcpuk folder located in manager\media\browser ?
Thanks.
Mc
Yep, i think you have to use manager/media/browser/mcpuk/frmresourcetype.html like i said in previous post ...
However, there’s a problem with the list. For instance, if I insert a new image, the file browser will show all the available images, but the Resource Type at the left will always have Files selected (instead of images). This happens with all file types. Another example: if I Edit and Embedded Media the file browser will display all the media (.swf) files, but the Resource Type at the left will always have Files selected, where it should be Media.
function AddSelectOptionSelected( selectElement, optionText, optionValue, optionSelected ) { var oOption = document.createElement("OPTION") ; oOption.text = optionText ; oOption.value = optionValue ; oOption.setAttribute('selected', 'selected'); selectElement.options.add(oOption) ; return oOption ; }
AddSelectOption( cmbTypeObj, aTypes[i][1],aTypes[i][0] ) ;
if ( !bHasType || aTypes[i][0] == oConnector.ResourceType) // IF type is the same, we have to make the option "selected" { AddSelectOptionSelected( cmbTypeObj, aTypes[i][1],aTypes[i][0] ) ; } else {// IF not, only add this option AddSelectOption( cmbTypeObj, aTypes[i][1],aTypes[i][0] ) ; }