Bug #22899
Some options are not available when no content is in the RTE
| Status: | Needs Feedback | Start date: | 2010-06-16 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | rtehtmlarea | |||
| Target version: | - | |||
| TYPO3 Version: | 6.1 | Complexity: | ||
| PHP Version: | ||||
| Votes: | 0 |
Description
When you open a new RTE window, you cannot set the font size, font family or alignment.
These options are not available before hitting enter (no matter how much text you type before).
Tested in Firefox.
(issue imported from #M14747)
History
Updated by Stanislas Rolland about 3 years ago
This is normal behaviour. For the font options to be enabled, the cursor must be inside some element or some text must be selected.
In the case of alignment, the cursor or the selection must be inside a block element, because the option does not apply to text or inline elements.
Updated by Chris topher about 3 years ago
Hmm...It is just confusing that you cannot set these values (even when you already wrote one long line of text).
After writing the first line, when I press Enter, I get the text wrapped in p tags and the selectors become active.
What about inserting a standard tag (a p tag?), if the RTE is still empty?
Then the styles could be applied there.
Updated by Stanislas Rolland about 3 years ago
This is a difficult issue. The problem is that browsers do not render empty paragraphs. In the RTE, you cannot position your cusor in an empty paragraph. That is why the RTE transformation puts a non-breaking space in them. Therefore, we would have to do the same when the RTE opens empty. But I don't think that authors would like to have such a leading (or trailing) space before entering anything else.
When editing in the RTE, you can create empty paragraphs by pressing ENTER multiple times. You can see them only because the RTE puts a br tag in each of them. But these br tags are removed as soon as you save or toggle to text mode.
Updated by Chris topher about 3 years ago
Would it be possible to insert a p tag with one nbsp in it and then to automatically replace this nbsp, when the author types the first sign into the paragraph?
Updated by Stanislas Rolland about 3 years ago
There would be no way to know if the space was not inserted there by the author.
Updated by Chris topher almost 3 years ago
Hmm... But didn't this work with TYPO3 4.3.x?
Let me guess: The way it was realized there is not compatible with extJS?
Updated by Stanislas Rolland almost 3 years ago
Well, it worked the same way, except maybe that the toolbar was not correctly updated.
Perhaps we could initialize the content with a br inside a paragraph when the RTE is opened with no content and RTE.default.disableEnterParagraph is not set. Will need to do some tests.
Updated by Susanne Moog almost 2 years ago
- Category set to rtehtmlarea
- Target version deleted (
0) - TYPO3 Version set to 4.4
Updated by Alexander Opitz about 1 month ago
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Chris topher 2 days ago
- TYPO3 Version changed from 4.4 to 6.1
Still present in TYPO3 4.5 up to 6.x.