Opened 9 years ago

Closed 9 years ago

#212 closed New Feature (fixed)

Paragraph/return marks

Reported by: wim.dewijngaert@… Owned by: martinkou
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: General Version:
Keywords: SD-COE Cc: pkdille, Jyhem, 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@… 9 years ago.
Paragraph/new line marks in Word

Download all attachments as: .zip

Change History (15)

comment:1 Changed 9 years ago by fredck

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

Changed 9 years ago by wim.dewijngaert@…

Paragraph/new line marks in Word

comment:2 Changed 9 years ago by fredck

#329 has been marked as DUP

comment:3 Changed 9 years ago by fredck

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

comment:4 Changed 9 years ago by fredck

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

comment:5 Changed 9 years ago by fredck

  • Cc pkdille Jyhem nyloth added; Pascal.KUSTNER@… jean-marc.libs@… patrice.weber@… removed

comment:6 Changed 9 years ago by martinkou

  • Owner set to martinkou
  • Status changed from new to assigned

comment:7 follow-up: Changed 9 years ago by martinkou

  • Resolution set to fixed
  • Status changed from assigned to closed

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 9 years ago by alfonsoml

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 9 years ago by fredck

  • Milestone set to 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 follow-up: Changed 9 years ago by 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.

comment:11 in reply to: ↑ 7 ; follow-up: Changed 9 years ago by fredck

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 9 years ago by fredck

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 9 years ago by fredck

  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopened due to comment 11.

comment:14 Changed 9 years ago by martinkou

  • Resolution set to fixed
  • Status changed from reopened to closed

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 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy