Editing Complete HTML Pages Documentation
The full page mode and the optional Document Properties plugin make
it possible to use CKEditor 4 to edit entire HTML pages (from <html>
to </html>
),
including the page metadata like DOCTYPE
, character set encoding, meta tags, text and background color,
or margins.
When the Document Properties plugin is enabled, the
button is automatically added to the toolbar. Once clicked, it opens the Document Properties dialog window that lets you manipulate document metadata.
Both full page editing and the Documentation Properties plugin are only available for
classic editor.
Get Sample Source Code
- Full page editing with Document Properties plugin
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="robots" content="noindex, nofollow"> <title>Full page editing with Document Properties plugin</title> <script src="https://cdn.ckeditor.com/4.25.0-lts/standard-all/ckeditor.js"></script> </head> <body> <textarea cols="80" id="editor1" name="editor1" rows="10"><!DOCTYPE html> <html> <head> <title>Apollo 11</title> <meta content="text/html; charset=utf-8" http-equiv="content-type" /> <meta content="fullpage,docprops,meta,html,head" name="keywords" /> <meta content="CKEditor 4 full page editing with Document Properties plugin sample" name="description" /> <meta content="CKEditor 4" name="author" /> <meta content="CKSource Holding sp. z o.o" name="copyright" /> </head> <body style="margin-left: 40px; margin-right: 40px; background-color: rgb(237, 237, 237);"> <h1><img alt="Saturn V carrying Apollo 11" align="right" src="assets/sample.jpg" /> Apollo 11</h1> <p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p> <p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p> <h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2> <p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p> <blockquote> <p>One small step for [a] man, one giant leap for mankind.</p> </blockquote> <p>Apollo 11 effectively ended the <a href="http://en.wikipedia.org/wiki/Space_Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President <a href="http://en.wikipedia.org/wiki/John_F._Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p> <blockquote> <p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p> </blockquote> <hr /> <p><small>Source: <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a></small></p> </body> </html> </textarea> <script> CKEDITOR.replace('editor1', { fullPage: true, extraPlugins: 'docprops', // Disable content filtering because if you use full page mode, you probably // want to freely enter any HTML content in source mode without any limitations. allowedContent: true, height: 320, removeButtons: 'PasteFromWord' }); </script> </body> </html>