Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
157 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. | ||
For licensing, see LICENSE.md or http://ckeditor.com/license | ||
--> | ||
<html> | ||
<head> | ||
<title>Placeholder Plugin — CKEditor Sample</title> | ||
<meta charset="utf-8"> | ||
<script src="../../../ckeditor.js"></script> | ||
<script src="../../../dev/console/console.js"></script> | ||
<script src="../../../dev/console/focusconsole.js"></script> | ||
<script src="../../widget/dev/console.js"></script> | ||
<script src="../../../samples/sample.js"></script> | ||
<link rel="stylesheet" href="../../../samples/sample.css"> | ||
</head> | ||
<body> | ||
<h1 class="samples">Placeholder Plugin</h1> | ||
|
||
<h2>Framed sample</h2> | ||
<textarea cols="80" id="editor1" name="editor1" rows="10"> | ||
<p>This is a [[sample placeholder]]. You are using <a href="http://ckeditor.com/">CKEditor</a>. </p> | ||
</textarea> | ||
|
||
<h2>Inline sample</h2> | ||
<div id="editor2" contenteditable="true" cols="10" rows="10"> | ||
<p>This is a [[sample placeholder]]. You are using <a href="http://ckeditor.com/">CKEditor</a>. </p> | ||
</div> | ||
|
||
<h2>Divarea sample</h2> | ||
<textarea cols="80" id="editor3" name="editor3" rows="10"> | ||
<p>This is a [[sample placeholder]]. You are using <a href="http://ckeditor.com/">CKEditor</a>. </p> | ||
</textarea> | ||
|
||
<script> | ||
|
||
CKEDITOR.replace( 'editor1', { | ||
extraPlugins: 'placeholder', | ||
height: 100 | ||
} ); | ||
|
||
CKEDITOR.inline( 'editor2', { | ||
extraPlugins: 'placeholder', | ||
height: 100 | ||
} ); | ||
|
||
CKEDITOR.replace( 'editor3', { | ||
extraPlugins: 'placeholder,divarea', | ||
height: 100 | ||
} ); | ||
|
||
CKCONSOLE.create( 'widget', { editor: 'editor1' } ); | ||
CKCONSOLE.create( 'focus', { editor: 'editor1' } ); | ||
CKCONSOLE.create( 'widget', { editor: 'editor2' } ); | ||
CKCONSOLE.create( 'focus', { editor: 'editor2' } ); | ||
CKCONSOLE.create( 'widget', { editor: 'editor3' } ); | ||
CKCONSOLE.create( 'focus', { editor: 'editor3' } ); | ||
|
||
</script> | ||
</body> | ||
</html> |