#1606 - Check add folder & upload-functionality in tinymce

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44594 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-11-11 22:30:01 +00:00
parent 853a3e1616
commit 34aa13ccbf

View File

@ -347,6 +347,17 @@ class HtmlEditorField_Toolbar extends ViewableData {
new FieldSet( new FieldSet(
new LiteralField('Heading', '<h2><img src="cms/images/closeicon.gif" alt="close" title="close" />Image</h2>'), new LiteralField('Heading', '<h2><img src="cms/images/closeicon.gif" alt="close" title="close" />Image</h2>'),
new TreeDropdownField("FolderID", _t('HtmlEditorField.FOLDER', "Folder"), "Folder"), new TreeDropdownField("FolderID", _t('HtmlEditorField.FOLDER', "Folder"), "Folder"),
new LiteralField('AddFolderOrUpload',
'<div style="clear:both;"></div><div id="AddFolderGroup" style="display:inline">
<a style="" href="#" id="AddFolder" class="link">' . _t('HtmlEditorField.CREATEFOLDER','create folder') . '</a>
<input style="display: none;margin-left: 2px;width: 94px;" id="NewFolderName" class="addFolder" type="text">
<a style="display: none;" href="#" id="FolderOk" class="link addFolder">' . _t('HtmlEditorField.OK','ok') . '</a>
<a style="display: none;" href="#" id="FolderCancel" class="link addFolder">' . _t('HtmlEditorField.FOLDERCANCEL','cancel') . '</a>
</div>|
<div id="UploadGroup" class="group" style="display: inline;margin-top:2px;">
<a href="#" id="UploadFiles" class="link">' . _t('HtmlEditorField.UPLOAD','upload') . '</a>
</div>
'),
new ThumbnailStripField("Image", "FolderID", "getimages"), new ThumbnailStripField("Image", "FolderID", "getimages"),
new TextField("AltText", _t('HtmlEditorField.ALTTEXT', "Description"), "", 80), new TextField("AltText", _t('HtmlEditorField.ALTTEXT', "Description"), "", 80),
new DropdownField("CSSClass", _t('HtmlEditorField.CSSCLASS', "Alignment / style"), array( new DropdownField("CSSClass", _t('HtmlEditorField.CSSCLASS', "Alignment / style"), array(