Ticket #212 (closed New Feature: fixed)

Opened 3 years ago

Last modified 3 years ago

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

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

Change History

  Changed 3 years ago by fredck

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

Changed 3 years ago by wim.dewijngaert@…

Paragraph/new line marks in Word

  Changed 3 years ago by fredck

#329 has been marked as DUP

  Changed 3 years ago by fredck

  • cc Pascal.KUSTNER@… added
  • keywords SD-COE added

  Changed 3 years ago by fredck

  • cc jean-marc.libs@…, patrice.weber@… added

  Changed 3 years ago by fredck

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

  Changed 3 years ago by martinkou

  • owner set to martinkou
  • status changed from new to assigned

follow-up: ↓ 11   Changed 3 years ago by martinkou

  • status changed from assigned to closed
  • resolution set to fixed

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.

  Changed 3 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

  Changed 3 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?

follow-up: ↓ 12   Changed 3 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.

in reply to: ↑ 7 ; follow-up: ↓ 13   Changed 3 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.

in reply to: ↑ 10   Changed 3 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.

in reply to: ↑ 11   Changed 3 years ago by fredck

  • status changed from closed to reopened
  • resolution fixed deleted

Reopened due to comment 11.

  Changed 3 years ago by martinkou

  • status changed from reopened to closed
  • resolution set to fixed

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.