---
title: "Page Embed plugin"
description: "Easily inserts iframe into the content."
canonical_url: "https://www.tiny.cloud/docs/tinymce/5/demo-pageembed/"
md_url: "https://www.tiny.cloud/docs/tinymce/5/demo-pageembed/index.md"
version: "5"
last_updated: "2024-04-09T09:35:32Z"
tokens: 210
---
Important This page documents TinyMCE 5. For new projects, Tiny recommends using the latest, most up-to-date version. [See TinyMCE 8 documentation](../../latest/).
# Page Embed plugin

## Interactive example

This example shows how to use the Page Embed plugin to embed a page in the content in a responsive or exactly sized iframe. For more information on the Page Embed plugin, see the [docs](../pageembed/).

**Example**

```js
tinymce.init({
  selector: 'textarea#page-embed',
  plugins: 'pageembed code preview',
  toolbar: 'pageembed code preview',
  menubar: 'view',
  tiny_pageembed_classes: [
    { text: 'Big embed', value: 'my-big-class' },
    { text: 'Small embed', value: 'my-small-class' }
  ],
  height: 500,
  content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
});
```
