mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 06:01:24 +02:00
fix iframes example line breaks
This commit is contained in:
@@ -191,13 +191,8 @@ class Iframes extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<p style={{ marginBottom: '10px' }}>This editor is rendered inside of an
|
<p style={{ marginBottom: '10px' }}>This editor is rendered inside of an <code>iframe</code> element, and everything works as usual! This is helpful for scenarios where you need the content to be rendered in an isolated, for example to create a "live example" with a specific set of stylesheets applied.</p>
|
||||||
<code>iframe</code> element, and everything works as usual! This is
|
<p style={{ marginBottom: '10px' }}>In this example's case, we've added Bootstrap's CSS to the <code>iframe</code> for default styles:</p>
|
||||||
helpful for scenarios where you need the content to be rendered in an
|
|
||||||
isolated, for example to create a "live example" with a specific set
|
|
||||||
of stylesheets applied.</p>
|
|
||||||
<p style={{ marginBottom: '10px' }}>In this example's case, we've added
|
|
||||||
Bootstrap's CSS to the <code>iframe</code> for default styles:</p>
|
|
||||||
<Frame head={bootstrap} style={style}>
|
<Frame head={bootstrap} style={style}>
|
||||||
<div style={{ padding: '20px' }}>
|
<div style={{ padding: '20px' }}>
|
||||||
{this.renderToolbar()}
|
{this.renderToolbar()}
|
||||||
|
Reference in New Issue
Block a user