Bug #22466
closedRTE does not load for IRRE fields when in fe-editing mode
0%
Description
If using feediti-advanced, the IRRE-fields with RTE do not load the RTE.
Problem seems to be here: I get a JS-error on line 347: field is NULL
fieldChanged_fName: function(fName,el) {
340 var idx=2+TBE_EDITOR.prependFormFieldNamesCnt;
341 var table = TBE_EDITOR.split(fName, "[", idx);
342 var uid = TBE_EDITOR.split(fName, "[", idx+1);
343 var field = TBE_EDITOR.split(fName, "[", idx+2);
344
345 table = table.substr(0,table.length-1);
346 uid = uid.substr(0,uid.length-1);
347 field = field.substr(0,field.length-1);
348 TBE_EDITOR.fieldChanged(table,uid,field,el);
349 },
350
JS stack at line 347:
fName
"data[tx_frm2newpm_person]4[function]"
field
null
idx
3
table
"4"
uid
"function"
So it seems like line 340 must take feedinting into accoutn and change the fixed 2 accordingly.
(issue imported from #M14126)
Files
Updated by Björn Pedersen over 14 years ago
Changing : in jsfunc_tbe_editor.js
fieldChanged_fName: function(fName,el) {
if (TYPO3.configuration && TYPO3.configuration.TYPO3_Mode=='BE') {
var offset=2;
}
else {
var offset=1;
}
var idx=offset+TBE_EDITOR.prependFormFieldNamesCnt;
and backend.php:
$t3Configuration = array(
'siteUrl' => t3lib_div::getIndpEnv('TYPO3_SITE_URL'),
'PATH_typo3' => $pathTYPO3,
'PATH_typo3_enc' => rawurlencode($pathTYPO3),
'username' => htmlspecialchars($GLOBALS['BE_USER']->user['username']),
'uniqueID' => t3lib_div::shortMD5(uniqid('')),
'securityLevel' => $this->loginSecurityLevel,
'TYPO3_mainDir' => TYPO3_mainDir,
'pageModule' => $pageModule,
'condensedMode' => $GLOBALS['BE_USER']->uc['condensedMode'] ? 1 : 0 ,
'inWorkspace' => $GLOBALS['BE_USER']->workspace !== 0 ? 1 : 0,
'workspaceFrontendPreviewEnabled' => $GLOBALS['BE_USER']->user['workspace_preview'] ? 1 : 0,
'veriCode' => $GLOBALS['BE_USER']->veriCode(),
'denyFileTypes' => PHP_EXTENSIONS_DEFAULT,
'moduleMenuWidth' => $this->menuWidth - 1,
'showRefreshLoginPopup' => isset($GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup']) ? intval($GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup']) : FALSE,
'TYPO3_Mode'=>TYPO3_MODE,
);
allows the RTE to load partially. There are still path issues left, as the RTE button images are not found and the RTE-wizard links to somedomain.domain.tld instead of somedomain.domain.tld /typo3
Updated by Björn Pedersen over 14 years ago
Debugging RTEArea gave the following:
ajax0 0
ajax1 data-1189-tx_frm2newpm_person-4-function-tx_frm2newpm_functions-4
ajax2 /index.php?eID=feeditadvanced&TSFE_EDIT%5Brecord%5D=tx_frm2newpm_person%3A4&TSFE_EDIT%5Bpid%5D=1188&TSFE_EDIT[cmd]=edit&pid=1188
Source
ajaxID=t3lib_TCEforms_inline%3A%3AgetRecordDetails&ajax%5B0%5D=0&ajax%5B1%5D=data-1189-tx_frm2newpm_person-4-function-tx_frm2newpm_functions-4&ajax%5B2%5D=%2Findex.php%3FeID%3Dfeeditadvanced%26TSFE_EDIT%255Brecord%255D%3Dtx_frm2newpm_person%253A4%26TSFE_EDIT%255Bpid%255D%3D1188%26TSFE_EDIT%5Bcmd%5D%3Dedit%26pid%3D1188
{"data":"<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" style=\"margin-right: 5px; \">\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"2\"><img src=\"clear.gif\" width=\"1\" height=\"5\" alt=\"\" \/><\/td>\n\t\t\t<\/tr>\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"2\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"border:solid 1px black;\">\n\t\t\t<tr bgcolor=\"#CBC7C3\">\n\t\t\t\t<td><span class=\"nbsp\"> <\/span><\/td>\n\t\t\t\t<td width=\"99%\"><span style=\"color:;\"><b>Language:<\/b><\/span><\/td>\n\t\t\t<\/tr>\n\t\t\t<tr bgcolor=\"#E4E0DB\">\n\t\t\t\t<td nowrap=\"nowrap\"><img name=\"req_tx_frm2newpm_functions_4_sys_language_uid\" src=\"clear.gif\" class=\"t3-TCEforms-reqImg\" alt=\"\" \/><img name=\"cm_tx_frm2newpm_functions_4_sys_language_uid\" src=\"clear.gif\" class=\"t3-TCEforms-contentchangedImg\" alt=\"\" \/><\/td>\n\t\t\t\t<td valign=\"top\"><input type=\"hidden\" name=\"data[tx_frm2newpm_functions]4[sys_language_uid]_selIconVal\" value=\"0\" \/><select id=\"tceforms-select-4bcc856a47aae\" name=\"data[tx_frm2newpm_functions]4[sys_language_uid]\" onchange=\"if (this.options[this.selectedIndex].value=='--div--') {this.selectedIndex=0;} TBE_EDITOR.fieldChanged('tx_frm2newpm_functions','4','sys_language_uid','data[tx_frm2newpm_functions]4[sys_language_uid]');\"><option value=\"-1\" selected=\"selected\">[All]<\/option>\n<option value=\"0\">Default<\/option>\n<option value=\"1\">English<\/option>\n<\/select><\/td>\n\t\t\t<\/tr><\/table><\/td>\n\t\t\t<\/tr>\n\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"2\"><img src=\"clear.gif\" width=\"1\" height=\"5\" alt=\"\" \/><\/td>\n\t\t\t<\/tr>\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"2\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"border:solid 1px black;\">\n\t\t\t<tr bgcolor=\"#CBC7C3\">\n\t\t\t\t<td><span class=\"nbsp\"> <\/span><\/td>\n\t\t\t\t<td width=\"99%\"><span style=\"color:;\"><b>function<\/b><\/span><\/td>\n\t\t\t<\/tr>\n\t\t\t<tr bgcolor=\"#E4E0DB\">\n\t\t\t\t<td nowrap=\"nowrap\"><img name=\"req_tx_frm2newpm_functions_4_function\" src=\"clear.gif\" class=\"t3-TCEforms-reqImg\" alt=\"\" \/><img name=\"cm_tx_frm2newpm_functions_4_function\" src=\"clear.gif\" class=\"t3-TCEforms-contentchangedImg\" alt=\"\" \/><\/td>\n\t\t\t\t<td valign=\"top\"><input type=\"text\" id=\"tceforms-textfield-4bcc856a4a1c3\" class=\" tceforms-textfield\" name=\"data[tx_frm2newpm_functions]4[function]_hr\" value=\"\" style=\"width: 384px; \" maxlength=\"256\" onchange=\"typo3form.fieldGet('data[tx_frm2newpm_functions]4[function]','','',0,'');TBE_EDITOR.fieldChanged('tx_frm2newpm_functions','4','function','data[tx_frm2newpm_functions]4[function]');inline.handleChangedField('data[tx_frm2newpm_functions]4[function]','data-1189-tx_frm2newpm_person-4-function-tx_frm2newpm_functions-4');\" \/><input type=\"hidden\" name=\"data[tx_frm2newpm_functions]4[function]\" value=\"Elektrik\" \/><\/td>\n\t\t\t<\/tr><\/table><\/td>\n\t\t\t<\/tr>\n\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"2\"><img src=\"clear.gif\" width=\"1\" height=\"5\" alt=\"\" \/><\/td>\n\t\t\t<\/tr>\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"2\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"border:solid 1px black;\">\n\t\t\t<tr bgcolor=\"#CBC7C3\">\n\t\t\t\t<td><span class=\"nbsp\"> <\/span><\/td>\n\t\t\t\t<td width=\"99%\"><span style=\"color:;\"><b>description<\/b><\/span><\/td>\n\t\t\t<\/tr>\n\t\t\t<tr bgcolor=\"#E4E0DB\">\n\t\t\t\t<td nowrap=\"nowrap\"><img name=\"req_tx_frm2newpm_functions_4_description\" src=\"clear.gif\" class=\"t3-TCEforms-reqImg\" alt=\"\" \/><img name=\"cm_tx_frm2newpm_functions_4_description\" src=\"clear.gif\" class=\"t3-TCEforms-contentchangedImg\" alt=\"\" \/><\/td>\n\t\t\t\t<td valign=\"top\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td><input type=\"hidden\" name=\"data[tx_frm2newpm_functions]4[_TRANSFORM_description]\" value=\"RTE\" \/>\n\t\t\t\t<div id=\"pleasewaitdata[tx_frm2newpm_functions]4[description]\" class=\"pleasewait\" style=\"display: block;\" >The editor is being loaded. Please wait...<\/div>\n\t\t\t\t<div id=\"editorWrapdata[tx_frm2newpm_functions]4[description]\" class=\"editorWrap\" style=\"visibility: hidden; width:99%; height:100%;\">\n\t\t\t\t<textarea id=\"RTEareadata[tx_frm2newpm_functions]4[description]\" name=\"data[tx_frm2newpm_functions]4[description]\" style=\"position:relative; left:0px; top:0px; height:380px; width:656px; border: 1px solid black; padding: 2px 2px 2px 2px;\">\n<\/textarea>\n\t\t\t\t<\/div><div id=\"HTMLAreaLog\"><\/div>\n\t\t\t\t<\/td><td><table border=\"0\" cellpadding=\"2\" cellspacing=\"2\"><tr><td><a href=\"wizard_rte.php?&P[params]=&P[exampleImg]=&P[table]=tx_frm2newpm_functions&P[uid]=4&P[pid]=1189&P[field]=description&P[flexFormPath]=&P[md5ID]=ID0d33ac1097&P[returnUrl]=%2Ftypo3%2Fajax.php\" onclick=\"this.blur();return !TBE_EDITOR.isFormChanged();\"><img src=\"gfx\/wizard_rte2.gif\" width=\"18\" height=\"15\" border=\"0\" alt=\"Full screen Rich Text Editing\" title=\"Full screen Rich Text Editing\" \/><\/a><\/td><\/tr><\/table><\/td><\/tr><\/table><\/td>\n\t\t\t<\/tr><\/table><\/td>\n\t\t\t<\/tr>\n\t\t\t<\/table><input type=\"hidden\" name=\"cmd[tx_frm2newpm_functions]4[delete]\" value=\"1\" disabled=\"disabled\" \/>","scriptCall":["inline.domAddRecordDetails('data-1189-tx_frm2newpm_person-4-function-tx_frm2newpm_functions-4','data-1189-tx_frm2newpm_person-4-function-tx_frm2newpm_functions',0,json.data);","\n\t\t\tinline.addToDataArray({\"map\":{\"data[tx_frm2newpm_person]4[function]\":\"data-1189-tx_frm2newpm_person-4-function\"}});\n\t\t\t\n\t\t\tTBE_EDITOR.addActionChecks(\"submit\", \"if (RTEarea[\\\"data[tx_frm2newpm_functions]4[description]\\\"]) { document.editform[\\\"data[tx_frm2newpm_functions]4[description]\\\"].value = RTEarea[\\\"data[tx_frm2newpm_functions]4[description]\\\"].editor.getHTML(); } else { OK = 0; };\");\n\t\t\t\n\n\t\t\tif (typeof(configureEditorInstance) \"undefined\") {\n\t\t\t\tconfigureEditorInstance = new Object();\n\t\t\t}\n\t\t\tconfigureEditorInstance[\"data[tx_frm2newpm_functions][4][description]\"] = function() {\n\t\t\t\tif (typeof(RTEarea) \"undefined\" || typeof(HTMLArea) \"undefined\") {\n\t\t\t\t\twindow.setTimeout(\"configureEditorInstance['data[tx_frm2newpm_functions][4][description]']();\", 40);\n\t\t\t\t} else {\n\t\t\teditornumber = \"data[tx_frm2newpm_functions][4][description]\";\n\t\t\tRTEarea[editornumber] = new Object();\n\t\t\tRTEarea[editornumber].RTEtsConfigParams = \"&RTEtsConfigParams=tx_frm2newpm_functions%3A4%3Adescription%3A1189%3A0%3A1189%3A\";\n\t\t\tRTEarea[editornumber].number = editornumber;\n\t\t\tRTEarea[editornumber].deleted = false;\n\t\t\tRTEarea[editornumber].textAreaId = \"data[tx_frm2newpm_functions][4][description]\";\n\t\t\tRTEarea[editornumber].id = \"RTEarea\" + editornumber;\n\t\t\tRTEarea[editornumber].RTEWidthOverride = \"\";\n\t\t\tRTEarea[editornumber].RTEHeightOverride = \"\";\n\t\t\tRTEarea[editornumber].fullScreen = false;\n\t\t\tRTEarea[editornumber].showStatusBar = true;\n\t\t\tRTEarea[editornumber].enableWordClean = true;\n\t\t\tRTEarea[editornumber].htmlRemoveComments = true;\n\t\t\tRTEarea[editornumber].disableEnterParagraphs = false;\n\t\t\tRTEarea[editornumber].disableObjectResizing = false;\n\t\t\tRTEarea[editornumber].removeTrailingBR = true;\n\t\t\tRTEarea[editornumber].useCSS = false;\n\t\t\tRTEarea[editornumber].keepButtonGroupTogether = true;\n\t\t\tRTEarea[editornumber].disablePCexamples = false;\n\t\t\tRTEarea[editornumber].showTagFreeClasses = false;\n\t\t\tRTEarea[editornumber].useHTTPS = false;\n\t\t\tRTEarea[editornumber].tceformsNested = [[\"inline\",\"data-1189-tx_frm2newpm_person-4-function\"],[\"inline\",\"data-1189-tx_frm2newpm_person-4-function-tx_frm2newpm_functions-4\"]];\n\t\t\tRTEarea[editornumber].dialogueWindows = new Object();\n\t\t\tRTEarea[editornumber].dialogueWindows.defaultPositionFromTop = 100;\n\t\t\tRTEarea[editornumber].dialogueWindows.defaultPositionFromLeft = 100;\n\t\t\tRTEarea[editornumber].dialogueWindows.doNotResize = false;\n\t\t\tRTEarea[editornumber].dialogueWindows.doNotCenter = false;\n\t\t\tRTEarea[editornumber].sys_language_content = \"0\";\n\t\t\tRTEarea[editornumber].typo3ContentLanguage = \"\";\n\t\t\tRTEarea[editornumber].typo3ContentCharset = \"utf-8\";\n\t\t\tRTEarea[editornumber].userUid = \"BE_32\";\n\t\t\tRTEarea[editornumber].plugin = new Object();\n\t\t\tRTEarea[editornumber].pathToPluginDirectory = new Object();\n\t\t\tRTEarea[editornumber].plugin.EditorMode = true;\n\t\t\tRTEarea[editornumber].plugin.InlineElements = true;\n\t\t\tRTEarea[editornumber].plugin.BlockElements = true;\n\t\t\tRTEarea[editornumber].plugin.BlockStyle = true;\n\t\t\tRTEarea[editornumber].plugin.CharacterMap = true;\n\t\t\tRTEarea[editornumber].plugin.TextStyle = true;\n\t\t\tRTEarea[editornumber].plugin.TYPO3Image = true;\n\t\t\tRTEarea[editornumber].plugin.TYPO3Link = true;\n\t\t\tRTEarea[editornumber].plugin.TextIndicator = true;\n\t\t\tRTEarea[editornumber].plugin.FindReplace = true;\n\t\t\tRTEarea[editornumber].plugin.RemoveFormat = true;\n\t\t\tRTEarea[editornumber].plugin.DefaultClean = true;\n\t\t\tRTEarea[editornumber].plugin.TableOperations = true;\n\t\t\tRTEarea[editornumber].plugin.AboutEditor = true;\n\t\t\tRTEarea[editornumber].plugin.ContextMenu = true;\n\t\t\tRTEarea[editornumber].plugin.UndoRedo = true;\n\t\t\tRTEarea[editornumber].plugin.CopyPaste = true;\n\t\t\tRTEarea[editornumber].plugin.TYPO3Color = true;\n\t\t\tRTEarea[editornumber].buttons = new Object();\n\t\t\tRTEarea[editornumber].buttons.toggleborders = {\"setOnTableCreation\":\"1\"};\n\t\t\tRTEarea[editornumber].buttons.bold = {\"hotKey\":\"b\"};\n\t\t\tRTEarea[editornumber].buttons.italic = {\"hotKey\":\"i\"};\n\t\t\tRTEarea[editornumber].htmlRemoveTags = \/^(center|font|o:p|sdfield|strike|u)$\/i;\n\t\t\tRTEarea[editornumber].htmlRemoveTagsAndContents = \/^(link|meta|script|style|title)$\/i;\n\t\t\tRTEarea[editornumber].defaultPageStyle = \"..\/typo3temp\/rtehtmlarea\/defaultPageStyle_7c0778ba82a63f80e136.css\";\n\t\t\tRTEarea[editornumber].pageStyle = \"sysext\/rtehtmlarea\/res\/contentcss\/default.css?1271331220\";\n\t\t\tRTEarea[editornumber].classesTag = new Object();\n\t\t\tRTEarea[editornumber].classesTag.span = \"important,name-of-person,detail\";\n\t\t\tRTEarea[editornumber].classesTag.div = \"align-left,align-center,align-right,csc-frame-frame1,csc-frame-frame2\";\n\t\t\tRTEarea[editornumber].classesTag.img = null;\n\t\t\tRTEarea[editornumber].classesTag.table = \"csc-frame-frame1,csc-frame-frame2\";\n\t\t\tRTEarea[editornumber].classesTag.a = \"external-link,external-link-new-window,internal-link,internal-link-new-window,download,mail\";\n\t\t\tRTEarea[editornumber].classesTag.td = \"align-left,align-center,align-right\";\n\t\t\tRTEarea[editornumber].classesUrl = \"..\/typo3temp\/rtehtmlarea\/classes__41ccaa6602fe9409c310.js\";\n\t\t\tRTEarea[editornumber].buttons.chMode = new Object();\n\t\t\tRTEarea[editornumber].buttons.formatblock = new Object();\n\t\t\tRTEarea[editornumber].buttons.formatblock.options = [[\"No block format\",\"none\"],[\"Container\",\"div\"],[\"Heading 1\",\"h1\"],[\"Heading 2\",\"h2\"],[\"Heading 3\",\"h3\"],[\"Heading 4\",\"h4\"],[\"Heading 5\",\"h5\"],[\"Heading 6\",\"h6\"],[\"Paragraph\",\"p\"],[\"Quotation\",\"blockquote\"]];\n\t\t\tRTEarea[editornumber].buttons.blockstyle = new Object();\n\t\t\tRTEarea[editornumber].buttons.textstyle = new Object();\n\t\t\tRTEarea[editornumber][\"buttons\"][\"image\"] = new Object();\n\t\t\tRTEarea[editornumber].buttons.image.pathImageModule = \"sysext\/rtehtmlarea\/mod4\/select_image.php\";\n\t\t\tRTEarea[editornumber].buttons.link = new Object();\n\t\t\tRTEarea[editornumber].buttons.link.pathLinkModule = \"sysext\/rtehtmlarea\/mod3\/browse_links.php\";\n\t\t\tRTEarea[editornumber].buttons.link.classesAnchorUrl = \"..\/typo3temp\/rtehtmlarea\/classesAnchor_0_cdc39287595ab7b2691f.js\";\n\t\t\tRTEarea[editornumber].buttons.link.additionalAttributes = \"external,rel\";\n\t\t\tRTEarea[editornumber].disableColorPicker = false;\n\t\t\tRTEarea[editornumber].buttons.cleanword = new Object();\n\t\t\tRTEarea[editornumber].buttons.cleanword = {\"hotKey\" : \"0\"};\n\t\t\t\t\tRTEarea[editornumber].buttons.table = new Object();\n\t\t\t\t\tRTEarea[editornumber].buttons.table.removeFieldsets = \"alignment,borders,color,layout,spacing\";\n\t\t\t\t\tRTEarea[editornumber].buttons.tableproperties = new Object();\n\t\t\t\t\tRTEarea[editornumber].buttons.tableproperties.removeFieldsets = \"alignment,borders,color,layout,spacing\";\n\t\t\t\t\tRTEarea[editornumber].buttons.rowproperties = new Object();\n\t\t\t\t\tRTEarea[editornumber].buttons.rowproperties.removeFieldsets = \"alignment,borders,color,layout,spacing\";\n\t\t\t\t\tRTEarea[editornumber].buttons.cellproperties = new Object();\n\t\t\t\t\tRTEarea[editornumber].buttons.cellproperties.removeFieldsets = \"alignment,borders,color,layout,spacing\";\n\t\t\tRTEarea[editornumber].hideTableOperationsInToolbar = false;\n\t\t\tRTEarea[editornumber].buttons.paste = new Object();\n\t\t\tRTEarea[editornumber].buttons.paste.mozillaAllowClipboardURL = \"https:\/\/addons.mozilla.org\/firefox\/downloads\/latest\/852\/addon-852-latest.xpi\";\n\t\t\tRTEarea[editornumber].toolbar = [[[\"CleanWord\"]],[[\"I[Block style label]\",\"BlockStyle\",\"space\",\"I[text_style]\",\"TextStyle\"]],[[\"Bold\",\"Italic\",\"Subscript\",\"Superscript\"],[\"space\"],[\"FormatBlock\"],[\"InsertOrderedList\",\"InsertUnorderedList\",\"Outdent\",\"Indent\"],[\"TextIndicator\"],[\"InsertCharacter\",\"CreateLink\",\"InsertImage\",\"InsertTable\"],[\"FindReplace\"],[\"TextMode\",\"RemoveFormat\"],[\"Undo\",\"Redo\"],[\"About\"]],[[\"TO-toggle-borders\"],[\"TO-table-prop\"],[\"TO-row-prop\",\"TO-row-insert-above\",\"TO-row-insert-under\",\"TO-row-delete\",\"TO-row-split\"],[\"TO-col-insert-before\",\"TO-col-insert-after\",\"TO-col-delete\",\"TO-col-split\"],[\"TO-cell-prop\",\"TO-cell-insert-before\",\"TO-cell-insert-after\",\"TO-cell-delete\",\"TO-cell-split\",\"TO-cell-merge\"]]];\n\t\t\tRTEarea[editornumber].convertButtonId = {\"ShowHelp\":\"showhelp\",\"space\":\"space\",\"separator\":\"bar\",\"linebreak\":\"linebreak\",\"TextMode\":\"chMode\",\"FormatText\":\"formattext\",\"BiDiOverride\":\"bidioverride\",\"Big\":\"big\",\"Bold\":\"bold\",\"Citation\":\"citation\",\"Code\":\"code\",\"Definition\":\"definition\",\"DeletedText\":\"deletedtext\",\"Emphasis\":\"emphasis\",\"InsertedText\":\"insertedtext\",\"Italic\":\"italic\",\"Keyboard\":\"keyboard\",\"MonoSpaced\":\"monospaced\",\"Quotation\":\"quotation\",\"Sample\":\"sample\",\"Small\":\"small\",\"Span\":\"span\",\"StrikeThrough\":\"strikethrough\",\"Strong\":\"strong\",\"Subscript\":\"subscript\",\"Superscript\":\"superscript\",\"Underline\":\"underline\",\"Variable\":\"variable\",\"FormatBlock\":\"formatblock\",\"Indent\":\"indent\",\"Outdent\":\"outdent\",\"Blockquote\":\"blockquote\",\"InsertParagraphBefore\":\"insertparagraphbefore\",\"InsertParagraphAfter\":\"insertparagraphafter\",\"JustifyLeft\":\"left\",\"JustifyCenter\":\"center\",\"JustifyRight\":\"right\",\"JustifyFull\":\"justifyfull\",\"InsertOrderedList\":\"orderedlist\",\"InsertUnorderedList\":\"unorderedlist\",\"InsertHorizontalRule\":\"line\",\"I[Block style label]\":\"blockstylelabel\",\"BlockStyle\":\"blockstyle\",\"InsertCharacter\":\"insertcharacter\",\"I[text_style]\":\"textstylelabel\",\"TextStyle\":\"textstyle\",\"InsertImage\":\"image\",\"CreateLink\":\"link\",\"UnLink\":\"unlink\",\"ForeColor\":\"textcolor\",\"HiliteColor\":\"bgcolor\",\"TextIndicator\":\"textindicator\",\"FindReplace\":\"findreplace\",\"RemoveFormat\":\"removeformat\",\"CleanWord\":\"cleanword\",\"InsertTable\":\"table\",\"TO-toggle-borders\":\"toggleborders\",\"TO-table-prop\":\"tableproperties\",\"TO-table-restyle\":\"tablerestyle\",\"TO-row-prop\":\"rowproperties\",\"TO-row-insert-above\":\"rowinsertabove\",\"TO-row-insert-under\":\"rowinsertunder\",\"TO-row-delete\":\"rowdelete\",\"TO-row-split\":\"rowsplit\",\"TO-col-prop\":\"columnproperties\",\"TO-col-insert-before\":\"columninsertbefore\",\"TO-col-insert-after\":\"columninsertafter\",\"TO-col-delete\":\"columndelete\",\"TO-col-split\":\"columnsplit\",\"TO-cell-prop\":\"cellproperties\",\"TO-cell-insert-before\":\"cellinsertbefore\",\"TO-cell-insert-after\":\"cellinsertafter\",\"TO-cell-delete\":\"celldelete\",\"TO-cell-split\":\"cellsplit\",\"TO-cell-merge\":\"cellmerge\",\"About\":\"about\",\"Undo\":\"undo\",\"Redo\":\"redo\",\"Copy\":\"copy\",\"Cut\":\"cut\",\"Paste\":\"paste\"};\n\t\t\tRTEarea.initEditor(editornumber);\n\t\t\t\t}\n\t\t\t};\n\t\t\tconfigureEditorInstance[\"data[tx_frm2newpm_functions][4][description]\"]();\ntypo3form.fieldSet('data[tx_frm2newpm_functions][4][function]','','',0,'');\n\t\t\tTBE_EDITOR.loginRefreshed();\n\t\t","typo3form.fieldSet('data[tx_frm2newpm_functions][4][function]','','',0,'');"],"headData":[{"name":"LINK","attributes":{"rel":"alternate stylesheet","type":"text\/css","href":"sysext\/rtehtmlarea\/res\/contentcss\/default.css","title":"htmlArea RTE Content CSS"},"innerHTML":false},{"name":"LINK","attributes":{"rel":"stylesheet","type":"text\/css","href":"sysext\/rtehtmlarea\/htmlarea\/skins\/default\/htmlarea-edited-content.css","title":""},"innerHTML":false},{"name":"LINK","attributes":{"rel":"stylesheet","type":"text\/css","href":"sysext\/rtehtmlarea\/htmlarea\/skins\/default\/htmlarea.css","title":""},"innerHTML":false},{"name":"SCRIPT","attributes":{"type":"text\/javascript","src":"..\/typo3temp\/rtehtmlarea\/htmlarea_cumulative_2f75035cc2cbd4ec7f15.js"},"innerHTML":""},{"name":"SCRIPT","attributes":{"type":"text\/javascript"},"innerHTML":"\n\nif (typeof(RTEarea) \"undefined\") {\nRTEarea = new Object();\nRTEarea0 = new Object();\nRTEarea0.version = \"1.9.2\";\nRTEarea0.editorUrl = \"sysext\/rtehtmlarea\/htmlarea\/\";\nRTEarea0.editorCSS = \"sysext\/rtehtmlarea\/htmlarea\/skins\/default\/htmlarea.css?1271331232\";\nRTEarea0.editorSkin = \"sysext\/rtehtmlarea\/htmlarea\/skins\/default\/\";\nRTEarea0.editedContentCSS = \"sysext\/rtehtmlarea\/htmlarea\/skins\/default\/htmlarea-edited-content.css?1271331232\";\nRTEarea0.hostUrl = \"http:\/\/wwwtest.admin.frm2\/typo3\/\";\nRTEarea0.enableDebugMode = true;\nRTEarea.init = function() {\nif (typeof(HTMLArea) \"undefined\" || !Ext.isReady) {\nwindow.setTimeout(\"RTEarea.init();\", 40);\n} else {\nExt.QuickTips.init();\nHTMLArea.init();\n}\n};\nRTEarea.initEditor = function(editorNumber) {\nif (typeof(HTMLArea) \"undefined\") {\nRTEarea.initEditor.defer(40, null, [editorNumber]);\n} else {\nHTMLArea.initEditor(editorNumber);\n}\n};\n}\n\n"},{"name":"SCRIPT","attributes":{"type":"text\/javascript"},"innerHTML":"\n\n\n\nRTEarea.init();\n\n\n"}]}
http://wwwtest.admin.frm2/typo3/ajax.php
[debug] in file user variable debug > Variable scope report
Length Type Name Value
2 String TYPO3_MODE BE
[debug] in file user variable debug > Variable scope report
Length Type Name Value
25 String siteRelPath typo3/sysext/rtehtmlarea/
[debug] in file user variable debug ==> Variable scope report
Length Type Name Value
19 String extRelPath sysext/rtehtmlarea/
So, the ajax always assumes to be called from the BE, and sets TYPO3_MODE accordingly. But feeditadvanced calls everything trough a eID-script, so the mode should still be 'FE'.
Updated by Björn Pedersen over 14 years ago
- offset for field parsing in IRRE /fe-editing
- absolute path for RTE-files to be independent of FE/BE mode
Updated by Björn Pedersen over 14 years ago
with the latest patch I still have problems:
[HTMLArea.Iframe::createHead]: Iframe baseURL set to: http://wwwtest.admin.frm2/
[HTMLArea.Iframe::createHead]: Skin CSS set to: sysext/t3skin/rtehtmlarea/htmlarea-edited-content.1271331121.css
[HTMLArea.Iframe::createHead]: Override CSS set to: ../typo3temp/rtehtmlarea/defaultPageStyle_fe30a6e4fa31d1f55431.1275028725.css
[HTMLArea.Iframe::createHead]: Content CSS set to: sysext/rtehtmlarea/res/contentcss/default.1271331220.css
[HTMLArea.Iframe::createHead]: Editor iframe document head successfully built.
Updated by Stanislas Rolland over 14 years ago
What version of TYPO3 are we talking about?
Updated by Stanislas Rolland over 14 years ago
Could you provide a test extension that would allow to reproduce this issue?
Updated by Björn Pedersen over 14 years ago
Version: 4.4 trunk
I will hpoefully create a test extension today.
Updated by Björn Pedersen over 14 years ago
extension frm2_newpm is now uploaded. Fe-editing a person entry e.g. the free text function field shows this behaviour.
Updated by Björn Pedersen over 14 years ago
fixed with latest trunk (4.4.RC1).
Thanks a lot.
Updated by Chris topher over 14 years ago
Resolved, fixed in 4.4RC1.
Thanks for keeping us updated!