danielebarchiesi@0: danielebarchiesi@0: danielebarchiesi@0: danielebarchiesi@0:
danielebarchiesi@0:
danielebarchiesi@0: This sample shows how to configure CKEditor to edit entire HTML pages, from the
danielebarchiesi@0: <html>
tag to the </html>
tag.
danielebarchiesi@0:
danielebarchiesi@0: The Document Properties (docprops
) plugin is also turned on.
danielebarchiesi@0: This plugin allows you to set the metadata of the page, including the page encoding, margins,
danielebarchiesi@0: meta tags, or background.
danielebarchiesi@0:
danielebarchiesi@0: The CKEditor instance below is inserted with a JavaScript call using the following code: danielebarchiesi@0:
danielebarchiesi@0:CKEDITOR.replace( 'textarea_id', danielebarchiesi@0: { danielebarchiesi@0: fullPage : true, danielebarchiesi@0: extraPlugins : 'docprops' danielebarchiesi@0: });danielebarchiesi@0:
danielebarchiesi@0: Note that textarea_id
in the code above is the id
attribute of
danielebarchiesi@0: the <textarea>
element to be replaced.
danielebarchiesi@0: