Bug #23120
closednew rte 2.0.2 (typo3 4.4.0) does not work in frontend plugins
Added by d-nik no-lastname-given about 14 years ago. Updated almost 6 years ago.
0%
Description
Hi everybody,
The new rtehtmlarea does not work within frontend plugins, f.e. meta_feedit oder cal.
The whole form seems to be built twice: the button row, butI think also the edit area.
Only a view buttons are functioning, "bold", "italic" or "link" wont work.
Issue is independet from Browsers (tested with FF3.6.6, IE 8, Opera 9.6, Safari)
I guess it is connected to the new design with ExtJs? IE tells:
" 'document.documentElement' ist Null oder kein Objekt
Zeile: 608
Zeichen: 3
Code: 0
URI: .../typo3temp/rtehtmlarea/htmlarea_cumulative_2278ea09137ed4c26143.js?1278514691"
Can anybody reproduce this or have a hint?
Thanks in advance,
d-nik
(issue imported from #M15033)
Files
rtehtmlarea_x4_defunct.jpg (22.1 KB) rtehtmlarea_x4_defunct.jpg | Administrator Admin, 2010-07-08 21:13 | ||
rtehtmlarea_debug.txt (17.5 KB) rtehtmlarea_debug.txt | Administrator Admin, 2010-07-08 21:20 |
Updated by Stanislas Rolland about 14 years ago
Please test patch attached to issue #14896.
Updated by d-nik no-lastname-given about 14 years ago
Hi,
i've tested the patch "rtehtmlarea_bugfix_14896_v2_trunk.patch", but it did not work.
Updated by d-nik no-lastname-given about 14 years ago
Hi,
I am not shure if it is th same issue as 0014896 - as the description is different - but I guess you know it better. The attached .jpg and the debug output show that
a) "Iframe baseURL set to: http:// ": no domain is added
b) the script tries to load stylesheet 4 times by re-initializing the rte, resulting in 4 rtes - am I right?
thanks for your help
(unfortunately it is not possibly to downgrade to rtehtmlarea 1.8.9 because then the backend rte crashes)
d-nik
Updated by Stanislas Rolland about 14 years ago
Please explain how to reproduce this issue.
Updated by d-nik no-lastname-given about 14 years ago
-typo2 4.4.0
-rtehtmlarea 2.0.2, default settings
1.: meta_feedit 0.1.7:
build a meta_feedit form with bodytext field on a page
2.: cal 1.3.2:
build a frontend-editing page with plugin.tx_cal_controller.rights.create.event.enableRTE = 1 (default)
- regarding the first problem of my post 0040101 I found out that Iframe baseURL is set correctly for IE8, but for firefox it is not; functionality of buttons also vary for different browsers
-I cannot really find out, when and how many rte-forms and button rows are built
thats all for the moment
thanks,
d-nik
Updated by Stanislas Rolland about 14 years ago
meta_feedit gives me php fatal error. I uninstalled. Sorry I do not have time to debug user extensions.
Updated by Stanislas Rolland about 14 years ago
The RTE is being invoked four times with the same field name.
Updated by Stanislas Rolland about 14 years ago
Please test attached patch after applying v3 of patch for issue #14896.
Updated by d-nik no-lastname-given about 14 years ago
I've tested the patch, but it did not change much.
IE8 shows two instances of rte, debug-output seems to be ok ("[HTMLArea.Editor::start]: Editor ready.") but IE8 tells "Failue:
Details
Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Zeitstempel: Sun, 11 Jul 2010 12:11:01 UTC
Meldung: 'document.documentElement' ist Null oder kein Objekt
Zeile: 608
Zeichen: 3
Code: 0
URI: http://localhost:8503/typo3temp/rtehtmlarea/htmlarea_cumulative_10c74c21a0887d55aed0.js?1278849734"
In FF3.6.6 , rte debug output continues to give this error:
"[HTMLArea.Iframe::createHead]: Iframe baseURL set to: http://
[...]
[HTMLArea.Iframe::getStyleSheets]: Stylesheets not yet loaded ([Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "http://localhost:8503/typo3temp/rtehtmlarea/htmlarea_cumulative_de000f4cdfddf048d88c.js?1278849550 Line: 973"]). Retrying..."
(The last action is repeated on and on ...)
Thanks a lot for your help!
d-nik
Updated by d-nik no-lastname-given about 14 years ago
More info:
rtehtmlarea_bugfix_15033_trunk.patch did only apply a "-1" to "[HTMLArea::initEditor]: Initializing editor with editor Id: FE[tt_news][bodytext]". Problems persist.
(+) Meanwhile,Iframe baseURL is set right in FF 3.6.6.
The problems are still:
(1) Firefox: "[HTMLArea.Iframe::getStyleSheets]: Stylesheets not yet loaded ([Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "http://mydomain.com/typo3temp/rtehtmlarea/htmlarea_cumulative_e81a05a009c32d96f8a4.js?1278936912 Line: 973"]). Retrying..." (endless)
[17:31: --> I could handle this one with uncommenting this lines:
"function is_FE() {
return true;
}"
in class.tx_rtehtmlarea_pi2.php (line 310...)]
(2) Regardless of the success of loading the stylesheet and regardless of the editor id the RTE gets initialized two or more times.:
- rtehtmlarea debug output in IE8: ###################
[HTMLArea::init]: Editor url set to: typo3/sysext/rtehtmlarea/htmlarea/
[HTMLArea::init]: Editor skin CSS set to: typo3/sysext/t3skin/rtehtmlarea/htmlarea.css?1278932582
[HTMLArea::init]: Editor content skin CSS set to: typo3/sysext/t3skin/rtehtmlarea/htmlarea-edited-content.css?1278932278
[HTMLArea::initEditor]: Initializing editor with editor Id: FE[tt_news][bodytext]-1.
[HTMLArea.Editor::registerPlugin]: Plugin EditorMode was successfully registered.
[HTMLArea.Config::registerHotKey]: A hotkey with key b was registered for toolbar item Bold.
[HTMLArea.Config::registerHotKey]: A hotkey with key i was registered for toolbar item Italic.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultInline was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultLink was successfully registered.
[HTMLArea.Config::registerHotKey]: A hotkey with key 0 was registered for toolbar item CleanWord.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultClean was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin ContextMenu was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin CopyPaste was successfully registered.
[HTMLArea::initEditor]: Initializing editor with editor Id: FE[tt_news][bodytext]-1.
[HTMLArea.Editor::registerPlugin]: Plugin EditorMode was successfully registered.
[HTMLArea.Config::registerHotKey]: A hotkey with key b was registered for toolbar item Bold.
[HTMLArea.Config::registerHotKey]: A hotkey with key i was registered for toolbar item Italic.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultInline was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultLink was successfully registered.
[HTMLArea.Config::registerHotKey]: A hotkey with key 0 was registered for toolbar item CleanWord.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultClean was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin ContextMenu was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin CopyPaste was successfully registered.
[HTMLArea::initEditor]: Initializing editor with editor Id: FE[tt_news][bodytext]-1.
[HTMLArea.Editor::registerPlugin]: Plugin EditorMode was successfully registered.
[HTMLArea.Config::registerHotKey]: A hotkey with key b was registered for toolbar item Bold.
[HTMLArea.Config::registerHotKey]: A hotkey with key i was registered for toolbar item Italic.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultInline was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultLink was successfully registered.
[HTMLArea.Config::registerHotKey]: A hotkey with key 0 was registered for toolbar item CleanWord.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultClean was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin ContextMenu was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin CopyPaste was successfully registered.
[HTMLArea::initEditor]: Initializing editor with editor Id: FE[tt_news][bodytext]-1.
[HTMLArea.Editor::registerPlugin]: Plugin EditorMode was successfully registered.
[HTMLArea.Config::registerHotKey]: A hotkey with key b was registered for toolbar item Bold.
[HTMLArea.Config::registerHotKey]: A hotkey with key i was registered for toolbar item Italic.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultInline was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultLink was successfully registered.
[HTMLArea.Config::registerHotKey]: A hotkey with key 0 was registered for toolbar item CleanWord.
[HTMLArea.Editor::registerPlugin]: Plugin DefaultClean was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin ContextMenu was successfully registered.
[HTMLArea.Editor::registerPlugin]: Plugin CopyPaste was successfully registered.
[HTMLArea.Iframe::createHead]: Iframe baseURL set to: http://localhost:8503/
[HTMLArea.Iframe::createHead]: Skin CSS set to: typo3/sysext/t3skin/rtehtmlarea/htmlarea-edited-content.css?1278932278
[HTMLArea.Iframe::createHead]: Override CSS set to: typo3temp/rtehtmlarea/defaultPageStyle_3b806c8aced6931c43bf.css?1278936912
[HTMLArea.Iframe::createHead]: Content CSS set to: typo3/sysext/rtehtmlarea/res/contentcss/default.css?1277220974
[HTMLArea.Iframe::createHead]: Editor iframe document head successfully built.
[HTMLArea.Iframe::getStyleSheets]: Stylesheets successfully accessed.
[HTMLArea.Editor::setMode]: The HTML document is not well-formed.
[HTMLArea.Iframe::createHead]: Iframe baseURL set to: http://localhost:8503/
[HTMLArea.Iframe::createHead]: Override CSS set to: typo3temp/rtehtmlarea/defaultPageStyle_3b806c8aced6931c43bf.css?1278936912
[HTMLArea.Iframe::createHead]: Content CSS set to: typo3/sysext/rtehtmlarea/res/contentcss/default.css?1277220974
[HTMLArea.Iframe::createHead]: Editor iframe document head successfully built.
[HTMLArea.Iframe::getStyleSheets]: Stylesheets successfully accessed.
[HTMLArea.Editor::setMode]: The HTML document is not well-formed.
[HTMLArea.Iframe::createHead]: Iframe baseURL set to: http://localhost:8503/
[HTMLArea.Iframe::createHead]: Override CSS set to: typo3temp/rtehtmlarea/defaultPageStyle_3b806c8aced6931c43bf.css?1278936912
[HTMLArea.Iframe::createHead]: Content CSS set to: typo3/sysext/rtehtmlarea/res/contentcss/default.css?1277220974
[HTMLArea.Iframe::createHead]: Editor iframe document head successfully built.
[HTMLArea.Iframe::getStyleSheets]: Stylesheets successfully accessed.
[HTMLArea.Editor::setMode]: The HTML document is not well-formed.
[HTMLArea.Iframe::createHead]: Iframe baseURL set to: http://localhost:8503/
[HTMLArea.Iframe::createHead]: Override CSS set to: typo3temp/rtehtmlarea/defaultPageStyle_3b806c8aced6931c43bf.css?1278936912
[HTMLArea.Iframe::createHead]: Content CSS set to: typo3/sysext/rtehtmlarea/res/contentcss/default.css?1277220974
[HTMLArea.Iframe::createHead]: Editor iframe document head successfully built.
[HTMLArea.Iframe::getStyleSheets]: Stylesheets successfully accessed.
[HTMLArea.Editor::generatePlugins]: All plugins successfully generated.
[HTMLArea.Editor::start]: Editor ready.
so long ...
d-nik
Updated by Stanislas Rolland about 14 years ago
rtehtmlarea_bugfix_15033_trunk.patch did only apply a "-1" to "[HTMLArea::initEditor]: Initializing editor with editor Id: FE[tt_news][bodytext]". Problems persist.
The problem is that your extension is invoking the RTE four times with the same id. Anyways I am not able to reproduce such problem. I don't think that it is a problem of the RTE.
Updated by Stanislas Rolland about 14 years ago
(1) Firefox: "[HTMLArea.Iframe::getStyleSheets]: Stylesheets not yet loaded ([Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "http://mydomain.com/typo3temp/rtehtmlarea/htmlarea_cumulative_e81a05a009c32d96f8a4.js?1278936912 [^] Line: 973"]). Retrying..." (endless)
[17:31: --> I could handle this one with uncommenting this lines:
"function is_FE() {
return true;
}"
You did not apply the patches correctly. After applying
rtehtmlarea_bugfix_14896_v3_trunk.patch
and
rtehtmlarea_bugfix_15033_trunk.patch,
those lines do not exist. You should start over from a clean RTE.
Updated by Stanislas Rolland about 14 years ago
(1) Firefox: "[HTMLArea.Iframe::getStyleSheets]: Stylesheets not yet loaded ([Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "http://mydomain.com/typo3temp/rtehtmlarea/htmlarea_cumulative_e81a05a009c32d96f8a4.js?1278936912 [^] Line: 973"]). Retrying..." (endless)
As you can see, this is a security error. The stylesheets are not on the same domain as the script. Firefox raises a security error in such case.
Updated by d-nik no-lastname-given about 14 years ago
You're right, I did a mistake by manually patching files. Within the cal base extension I get only one instance of rte now. Thanks a lot.
Unfortunately the issue 14896 remains - regadless of USER_INT or USER implementation of the plugin.
I do not understand the security error, as I did not change anything on the standard installation .
But I guess we can close this issue now.
THANKS A LOT FOR YOUR WORK ON THIS!
Updated by Stefan Froemken about 14 years ago
I just get the same error and only find this bug report.
After testing a lot with my both domain records I write an additional line in my .htaccess:
RewriteRule ^typo3temp/.*$ - [L]
This line is not documentated in realurl:
http://typo3.org/documentation/document-library/extension-manuals/realurl/1.9.3/view/1/5/
now it works.
Stefan
Updated by Stanislas Rolland about 14 years ago
@Stefan:
See misc/advanced.htaccess in the TYPO3 package. There you will find the recommended rule:
RewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]
Updated by Stanislas Rolland about 14 years ago
@d-nik no-lastname-given: is this issue resolved or not?
Updated by d-nik no-lastname-given about 14 years ago
Hi (and sorry for the delay (I could not find any computer at my holidays - great!),
i've tested rtehtmlarea 2.0.3 with typo3 4.4.2: now the rte works within calendar base (cal), but not within the extension meta_feedit.
so I guess you can close this issue and I have to talk to the developer of meta_feedit (or simply implement tinymce_rte by adding/changing four lines :-) )
THANKS AGAIN and Greetings,
d-nik
Updated by Benni Mack almost 6 years ago
- Status changed from Resolved to Closed