Bug #14434
closedLorem Ipsum can't paste in graphical mode
0%
Description
Maybe the guilty extension is "lorem_ipsum"...
When using the wizard lorem_ipsum in graphical mode with rtehtmlarea no text is inserted into the TextArea.
If you use the Text Mode (plain HTML) the wizard works.
Others features of lorem_ipsum are ok (graphics, input text).
TYPO3 3.7, rtehtmlarea 0.4, lorem_ipsum 1.0, Firefox 1.0 Win.
(issue imported from #M575)
Updated by Stanislas Rolland over 19 years ago
lorem_ipsum inserts the text in the textarea associated with the bodytext field. However, when in wysiwyg mode, the editor is working on an iframe element, ignoring anything contained in the textarea. lorem_ipsum would have to append the same content to the iframe document body.
edited on: 26.02.05 23:19
Updated by Michael Stucki over 19 years ago
Stanislas, can you please give me a short hint how to find out if an RTE is loaded?
I suggest that we don't try to fix this but simply open a warning in an alert box if an RTE is loaded.
Updated by old_gaumondp over 19 years ago
Maybe you're not aware of this old mail found in the DEV archive...
http://typo3.org/documentation/mailing-lists/dev-list-archive/thread/110105766/
Not sure it really helps...
Updated by Stanislas Rolland over 19 years ago
The dev archive thread does not help.
function getHeaderTitleJS in lorem_ipsum would have to generate JavaScript code that inserts the text in the document of the RTE iframe. Such code would probably depend on the specific RTE, unless there is some standard way to identify the RTE iframe. Detecting in which mode the RTE currently is would also be specific to each RTE.
Updated by Michael Stucki over 19 years ago
If I know how to detect if an RTE is loaded, I will add a popup message which tells users that this doesn not work.
Updated by Stanislas Rolland over 19 years ago
On the server side, each loaded RTE will register itself with an entry in $TYPO3_CONF_VARS["BE"]["RTE_reg"]. Therefore, if such an entry exists, a RTE is loaded.
However, RTE may or may not be enabled on the specific field. This depends on the Page TSConfig and User TSConfig.
Moreover, none of the loaded RTE's may be available for the specific client browser. There is a function in the RTE-API to determine that for each registered RTE.
On the client side, I don't know if there is a way to determine if an RTE is enabled on a specific form field.
Finally, I don't know how to detect if the RTE is in wysiwyg or text mode. If in text mode, lorem_ipsum does work.
Updated by Stanislas Rolland over 19 years ago
A solution to this problem could be to create a Lorem Ipsum button in the editor that would call the wizard.
However, for some reason, lorem_ipsum currently displays two buttons and none provides html data. This is not very useful as test data for a html editor.
Updated by Stanislas Rolland over 19 years ago
In version 0.4.56, I have integrated the Lorem Ipsum feature. It may be enabled in the extension installation dialog. The wizard now adds a paragraph even in html mode.
There is a problem however. I had to copy the whole Lorem Ipsum extension. I could not get TYPO3 to use my extended wizard class even after overriding the TCA settings. Gave up after many hours of trials.
Therefore, the Lorem Ipsum extension is not used here.
Would perhaps be simpler to update the lorem_ipsum extension?
edited on: 14.03.05 19:53
Updated by Stanislas Rolland over 19 years ago
Got this correctly resolved in version 0.4.57.
Updated by Michael Stucki over 19 years ago
Reminder sent to stan
Hi Stanislas,
I still have this bug on my todo list. Although you already solved it, I want to fix this in lorem_ipsum directly. I just want to know if you already contacted Kasper or not?
- michael
Updated by Stanislas Rolland over 19 years ago
Reminder sent to stucki
Hi Michael,
No, I did not contact Kasper about this. My solution is specific to htmlArea RTE, since there is no defined API to insert text in RTE's in html mode.
Stanislas
Updated by Michael Stucki over 19 years ago
Reminder sent to stan
I see. So then we better don't change anything but keep it in mind for improving the API one day... Regards, michael