ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.61k stars 3.7k forks source link

Custom Header and Footer to page #1759

Open shahabaz opened 5 years ago

shahabaz commented 5 years ago

🆕 Feature request 💻 Version ckeditor5

📋 Steps

  1. Custom header and Footer.
  2. This header and footer can be generically stored and loaded whenever required to all the pages
  3. This should be added based on user preference. If not required user should be able to disable to all the document or specific pages of the document.
Mgsy commented 5 years ago

Hello, thanks for the report. I'll confirm it as a feature request.

If you'd like to see it in CKEditor 5, please add 👍 to the first post, so we'll be able to track the popularity of this request.

Reinmar commented 5 years ago

I'm not sure I understand this feature. What problem is it supposed to solve?

shahabaz commented 5 years ago

I'm not sure I understand this feature. What problem is it supposed to solve?

This could be a feature which is similar in word. Adding header and footer to the document.

Reinmar commented 5 years ago

But Word is a document editor (targetted at printing). There are pages and every page can have a header and a footer. CKEditor is web content editor. There are no pages in this medium, so that's why I don't understand what header and footer could be here.

In some cases people use CKEditor for printed content too, but there's usually a step involved where HTML is converted to PDF and at this stage some specific markup can be treated as a header/footer, but this is specific to that PDF generator.

That's why I'd like to learn as much about your usecase as possible. Let us know if you had something specific in your mind.

shahabaz commented 5 years ago

You have exactly pointed the same use case printing the document or creating PDF. I was thinking this can add brand value for the customers who uses this feature in the application where the header allows logo and other formatted content can go in. If you think there are work around ways to achieve I am open to that as well.

tbredin commented 5 years ago

I can add to use case examples — we have clients who craft documents on the web, for print (detached editor). Usually these have a company-specific or project-specific header and footer attached. Users need to be able to see these while editing — it is a confusing user experience for them to only see this when it is later converted to PDF — we will have users who are spending time looking for how to add the header and footer using the ckeditor toolbar.

jswiderski commented 4 years ago

Perhaps such header/footer could be defined in CKEditor and used together with the Pagination (and/or Page Break) feature - https://ckeditor.com/docs/ckeditor5/latest/features/pagination.html (doesn't work in FF yet if anyone wants to test it)?

Whenever new page is inserted a page break styled with header and footer styles could be inserted. 

That way users would have the ability to define footers/headers and see them in the editor before printing the document.

mathieu-dufour commented 1 year ago

I can add to use case examples — we have clients who craft documents on the web, for print (detached editor). Usually these have a company-specific or project-specific header and footer attached. Users need to be able to see these while editing — it is a confusing user experience for them to only see this when it is later converted to PDF — we will have users who are spending time looking for how to add the header and footer using the ckeditor toolbar.

^^ This is precisely our use case (documents drafted on the web, and then exported to pdf/word). Are there any updates on this matter? @tbredin , did you end up implementing a custom plugin?

Sh3ldoris commented 2 months ago

Is there any update please?