Opened 17 years ago

Closed 17 years ago

#212 closed New Feature (fixed)

Paragraph/return marks

Reported by: wim.dewijngaert@… Owned by: Martin Kou
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: General Version:
Keywords: SD-COE Cc: pkdille, Jean-Marc Libs, Nyloth

Description

It would be nice if you could show paragraph and/or new line marks, just like in Word.

Attachments (1)

paragraph.gif (1.9 KB) - added by wim.dewijngaert@… 17 years ago.
Paragraph/new line marks in Word

Download all attachments as: .zip

Change History (15)

comment:1 Changed 17 years ago by Frederico Caldeira Knabben

Do you have a screenshot from Word, with all its related features?

Changed 17 years ago by wim.dewijngaert@…

Attachment: paragraph.gif added

Paragraph/new line marks in Word

comment:2 Changed 17 years ago by Frederico Caldeira Knabben

#329 has been marked as DUP

comment:3 Changed 17 years ago by Frederico Caldeira Knabben

Cc: Pascal.KUSTNER@… added
Keywords: SD-COE added

comment:4 Changed 17 years ago by Frederico Caldeira Knabben

Cc: jean-marc.libs@… patrice.weber@… added

comment:5 Changed 17 years ago by Frederico Caldeira Knabben

Cc: pkdille Jean-Marc Libs Nyloth added; Pascal.KUSTNER@… jean-marc.libs@… patrice.weber@… removed

comment:6 Changed 17 years ago by Martin Kou

Owner: set to Martin Kou
Status: newassigned

comment:7 Changed 17 years ago by Martin Kou

Resolution: fixed
Status: assignedclosed

Fixed with [701] and [702].

Notice that displaying line breaks done by <br> tags is not implemented yet. It seems there is no simple method of making a <br> tag visible - modifying CSS attributes don't work, hacks like wrapping the <br> with <span> tags introduces many complications, etc.

So, for the time being, only block tags like <p>, <div>, <h1>, <address> are displayed, and <br> tag displays wouldn't be implemented in 2.5. Unless a simple, clean way of displaying <br> tags is found.

comment:8 Changed 17 years ago by Alfonso Martínez de Lizarrondo

I looked at the <br> sometime ago, but I only found a nice solution for Opera. In theory it should work in all the browsers, but unfortunately we know that their implementation of standards is far from complete.

Just adding

br:before
{content: "\B6 ";}

will make the line breaks appear nicely

comment:9 Changed 17 years ago by Frederico Caldeira Knabben

Milestone: FCKeditor 2.5

The idea of CSS selectors passed in m mind in the past too... but then I've thought about IE, and just left it behind.

In any case, even if it is a Opera only feature for now, I don't see problems on adding the CSS style proposed by Alfonso. It will be a "plus" for Opera users, and it will be ready for other browsers, as soon as they get selectors running for <br>.

Is it the case to open a ticket at Mozilla's Bugzilla for it?

comment:10 Changed 17 years ago by Alfonso Martínez de Lizarrondo

It is open since some years ago (searching bugzilla is how I found the "\B6" idea). Now I can't find it, but I know that it is there.

comment:11 in reply to:  7 ; Changed 17 years ago by Frederico Caldeira Knabben

Replying to martinkou:

Fixed with [701] and [702].

Notice that displaying line breaks done by <br> tags is not implemented yet. It seems there is no simple method of making a <br> tag visible - modifying CSS attributes don't work, hacks like wrapping the <br> with <span> tags introduces many complications, etc.

So, for the time being, only block tags like <p>, <div>, <h1>, <address> are displayed, and <br> tag displays wouldn't be implemented in 2.5. Unless a simple, clean way of displaying <br> tags is found.

I've loved the "Show Blocks" feature Martin.

I've reworked it with [706], making the following changes:

  • Moved the styles to fck_internal.css. In this way our code is much simpler (almost ridiculous :)). It also makes it clearer when customizing it.
  • Corrected the icon position and included it in the Office2003 and Silver skins.

Please give us your opinion about it.

Things still to be done:

  • Introduce the "StartupShowBlocks" config to indicate the feature state when loading the editor.
  • The state should persist when moving back and forth to the source view.

comment:12 in reply to:  10 Changed 17 years ago by Frederico Caldeira Knabben

Replying to alfonsoml:

It is open since some years ago (searching bugzilla is how I found the "\B6" idea). Now I can't find it, but I know that it is there.

I've found the following, that could be related:

Well... not much activity for it.

comment:13 in reply to:  11 Changed 17 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: closedreopened

Reopened due to comment 11.

comment:14 Changed 17 years ago by Martin Kou

Resolution: fixed
Status: reopenedclosed

The approach in [706] is the way to go, it works just as well and it is smaller and more efficient.

I've added the "StartupShowBlocks" config option and made the Show Blocks state persistent across mode switches in [712].

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy