Ticket #4067 (closed New Feature: fixed)

Opened 8 months ago

Last modified 3 months ago

Fullpage support

Reported by: garry.yao Owned by: fredck
Priority: Normal Milestone: CKEditor 3.1
Component: Core : Output Data Version:
Keywords: Confirmed Review+ Cc:

Description

The editor don't actually have full page support yet despite of the existence of fullPage config entry.

Attachments

4067.patch Download (20.7 KB) - added by garry.yao 5 months ago.
4067_2.patch Download (21.5 KB) - added by garry.yao 5 months ago.
4067_3.patch Download (23.1 KB) - added by garry.yao 4 months ago.
4067_4.patch Download (26.9 KB) - added by garry.yao 4 months ago.

Change History

  Changed 8 months ago by fredck

  • keywords Confirmed added
  • component changed from Core : Output Data to General
  • milestone changed from CKEditor 3.0 to CKEditor 3.1

This setting is still not active.

  Changed 8 months ago by fredck

  • type changed from Bug to New Feature

  Changed 5 months ago by garry.yao

  • owner set to garry.yao
  • status changed from new to assigned

Changed 5 months ago by garry.yao

  Changed 5 months ago by garry.yao

  • keywords Review? added
  • component changed from General to Core : Output Data

Please note that I'll open new ticket for full page support in preview plugin as well as document property dialog, this ticket has dedicated to data I/O features.

  Changed 5 months ago by garry.yao

  • keywords Review- added; Review? removed
  1. Filter rules related to design mode should be moved into 'wysiwyg' plugin
  2. 'toHtml/toDataFormat' should be editor ignorant.

Changed 5 months ago by garry.yao

  Changed 5 months ago by garry.yao

  • keywords Review? added; Review- removed

  Changed 5 months ago by fredck

  • keywords Review- added; Review? removed

Let's try making this solution a bit simpler. It would be also nice to have it as a separate plugin.

Changed 4 months ago by garry.yao

follow-up: ↓ 10   Changed 4 months ago by garry.yao

  • keywords Review? added; Review- removed

Move around 200 LOC into a dedicated 'fullpage' plugin make changes to the core much smaller.

in reply to: ↑ 9   Changed 4 months ago by szczap

Replying to garry.yao:

Move around 200 LOC into a dedicated 'fullpage' plugin make changes to the core much smaller.

Patched the HEAD revision today with 4067_3.patch. It works, except that the editor does not load stylesheets in the <head> section (both <link rel="stylesheet" ... > and <style>...</style>).

There also seems to be a problem if the entered markup contains anything before the opening <html> tag (eg. comments, <!doctype). CKeditor fails to detect the opening <html> tag and puts everything in its own <html> and <body> tags in such case.

  Changed 4 months ago by fredck

  • keywords Review- added; Review? removed
  • Typo in the wysiwyg area plugin line 18 (:?) instead of (?:).
  • Please fix the spelling from $noneBodyContent to $nonBodyContent.
  • We don't need an additional docType method in the basicWriter. The "write" method can be used for that.
  • The fragment in fact should not really care if the document is full page or not. It must simply parse any HTML. The data processor should take care of the differences instead.
  • In the wysiwyg plugin, in getData, editor.config.fullPage can be cached in a local var.
  • Always in getData, there is some additional processing that's always happening, even if fullPage == false. The documentElement and docTypeAttr values are being calculated even if not needed.
  • The shelveTags can be more generic use. It can be also split with the unshelveTags.
  • The doctype should be handled into the fullpage plugin actually. We must try concentrating all full page stuff there.

Changed 4 months ago by garry.yao

  Changed 4 months ago by garry.yao

Ticket test updated.

  Changed 4 months ago by captwheeler

Checked out SVN and built it, but still not submitting the whole page. There is a DOCTYPE on the page. config.fullPage = true; is in the config. I'll try the nightly tomorrow.

  Changed 4 months ago by captwheeler

Nightly build 4536 didn't work. Thanks for working on this.

  Changed 3 months ago by fredck

  • keywords Review? added; Review- removed
  • owner changed from garry.yao to fredck
  • status changed from assigned to new

I've opened a feature branch for this feature:
 http://svn.fckeditor.net/CKEditor/branches/features/fullpage/

  Changed 3 months ago by garry.yao

  • keywords Review+ added; Review? removed

Ticket TCs updated.

  Changed 3 months ago by fredck

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

Fixed with [4636].

  Changed 3 months ago by fredck

#4769 has been marked as DUP.

Note: See TracTickets for help on using tickets.