forked from liferay/liferay-ckeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://svn.ckeditor.com/CKEditor/trunk@6904 da63caf2-3823-0410-a1e8-d69ccee00dfb
- Loading branch information
wwalc
committed
May 9, 2011
1 parent
c5c52e9
commit 0c24706
Showing
146 changed files
with
7,450 additions
and
688 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
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,70 @@ | ||
body | ||
{ | ||
font-family: Arial, Verdana, sans-serif; | ||
font-size: 12px; | ||
color: #222; | ||
background-color: #fff; | ||
} | ||
|
||
/* preserved spaces for rtl list item bullets. (#6249)*/ | ||
ol,ul,dl | ||
{ | ||
padding-right:40px; | ||
} | ||
|
||
h1,h2,h3,h4 | ||
{ | ||
font-family: Georgia, Times, serif; | ||
} | ||
|
||
h1.lightBlue | ||
{ | ||
color: #00A6C7; | ||
font-size: 1.8em; | ||
font-weight:normal; | ||
} | ||
|
||
h3.green | ||
{ | ||
color: #739E39; | ||
font-weight:normal; | ||
} | ||
|
||
span.markYellow { background-color: yellow; } | ||
span.markGreen { background-color: lime; } | ||
|
||
img.left | ||
{ | ||
padding: 5px; | ||
margin-right: 5px; | ||
float:left; | ||
border:2px solid #DDD; | ||
} | ||
|
||
img.right | ||
{ | ||
padding: 5px; | ||
margin-right: 5px; | ||
float:right; | ||
border:2px solid #DDD; | ||
} | ||
|
||
a.green | ||
{ | ||
color:#739E39; | ||
} | ||
|
||
table.grey | ||
{ | ||
background-color : #F5F5F5; | ||
} | ||
|
||
table.grey th | ||
{ | ||
background-color : #DDD; | ||
} | ||
|
||
ul.square | ||
{ | ||
list-style-type : square; | ||
} |
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,140 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<!-- | ||
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. | ||
For licensing, see LICENSE.html or http://ckeditor.com/license | ||
--> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>BBCode Plugin — CKEditor Sample</title> | ||
<meta content="text/html; charset=utf-8" http-equiv="content-type" /> | ||
<!-- CKReleaser %REMOVE_LINE% | ||
<script type="text/javascript" src="../ckeditor.js"></script> | ||
CKReleaser %REMOVE_START% --> | ||
<script type="text/javascript" src="../ckeditor_source.js"></script> | ||
<!-- CKReleaser %REMOVE_END% --> | ||
<script src="sample.js" type="text/javascript"></script> | ||
<link href="sample.css" rel="stylesheet" type="text/css" /> | ||
</head> | ||
<body> | ||
<h1 class="samples"> | ||
CKEditor Sample — BBCode Plugin | ||
</h1> | ||
<div class="description"> | ||
<p> | ||
This sample shows how to configure CKEditor to output <a href="http://en.wikipedia.org/wiki/BBCode">BBCode</a> format instead of HTML. | ||
Please note that the editor configuration was modified to reflect what is needed in a BBCode editing environment. | ||
Smiley images, for example, were stripped to the emoticons that are commonly used in some BBCode dialects. | ||
</p> | ||
<p> | ||
Please note that currently there is no standard for the BBCode markup language, so its implementation | ||
for different platforms (message boards, blogs etc.) can vary. This means that before using CKEditor to | ||
output BBCode you may need to adjust the implementation to your own environment. | ||
</p> | ||
<p> | ||
A snippet of the configuration code can be seen below; check the source of this page for | ||
a full definition: | ||
</p> | ||
<pre class="samples"> | ||
CKEDITOR.replace( 'editor1', | ||
{ | ||
<strong>extraPlugins : 'bbcode',</strong> | ||
removePlugins : 'bidi,button,dialogadvtab,div,filebrowser,flash,format,forms,horizontalrule,iframe,indent,justify,liststyle,pagebreak,showborders,stylescombo,table,tabletools,templates', | ||
toolbar : | ||
[ | ||
['Source', '-', 'Save','NewPage','-','Undo','Redo'], | ||
['Find','Replace','-','SelectAll','RemoveFormat'], | ||
['Link', 'Unlink', 'Image'], | ||
'/', | ||
['FontSize', 'Bold', 'Italic','Underline'], | ||
['NumberedList','BulletedList','-','Blockquote'], | ||
['TextColor', '-', 'Smiley','SpecialChar', '-', 'Maximize'] | ||
], | ||
smiley_images : | ||
[ | ||
'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','tounge_smile.gif', | ||
'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angel_smile.gif','shades_smile.gif', | ||
'cry_smile.gif','kiss.gif' | ||
], | ||
smiley_descriptions : | ||
[ | ||
'smiley', 'sad', 'wink', 'laugh', 'cheeky', 'blush', 'surprise', | ||
'indecision', 'angel', 'cool', 'crying', 'kiss' | ||
] | ||
}); </pre> | ||
</div> | ||
|
||
<!-- This <div> holds alert messages to be display in the sample page. --> | ||
<div id="alerts"> | ||
<noscript> | ||
<p> | ||
<strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript | ||
support, like yours, you should still see the contents (HTML data) and you should | ||
be able to edit it normally, without a rich editor interface. | ||
</p> | ||
</noscript> | ||
</div> | ||
<form action="sample_posteddata.php" method="post"> | ||
<p> | ||
<label for="editor1"> | ||
Editor 1:</label> | ||
<textarea cols="80" id="editor1" name="editor1" rows="10">This is some [b]sample text[/b]. You are using [url=http://ckeditor.com/]CKEditor[/url].</textarea> | ||
<script type="text/javascript"> | ||
//<![CDATA[ | ||
|
||
// Replace the <textarea id="editor"> with an CKEditor | ||
// instance, using the "bbcode" plugin, shaping some of the | ||
// editor configuration to fit BBCode environment. | ||
CKEDITOR.replace( 'editor1', | ||
{ | ||
extraPlugins : 'bbcode', | ||
// Remove unused plugins. | ||
removePlugins : 'bidi,button,dialogadvtab,div,filebrowser,flash,format,forms,horizontalrule,iframe,indent,justify,liststyle,pagebreak,showborders,stylescombo,table,tabletools,templates', | ||
// Width and height are not supported in the BBCode format, so object resizing is disabled. | ||
disableObjectResizing : true, | ||
// Define font sizes in percent values. | ||
fontSize_sizes : "30/30%;50/50%;100/100%;120/120%;150/150%;200/200%;300/300%", | ||
toolbar : | ||
[ | ||
['Source', '-', 'Save','NewPage','-','Undo','Redo'], | ||
['Find','Replace','-','SelectAll','RemoveFormat'], | ||
['Link', 'Unlink', 'Image', 'Smiley','SpecialChar'], | ||
'/', | ||
['Bold', 'Italic','Underline'], | ||
['FontSize'], | ||
['TextColor'], | ||
['NumberedList','BulletedList','-','Blockquote'], | ||
['Maximize'] | ||
], | ||
// Strip CKEditor smileys to those commonly used in BBCode. | ||
smiley_images : | ||
[ | ||
'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','tounge_smile.gif', | ||
'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angel_smile.gif','shades_smile.gif', | ||
'cry_smile.gif','kiss.gif' | ||
], | ||
smiley_descriptions : | ||
[ | ||
'smiley', 'sad', 'wink', 'laugh', 'cheeky', 'blush', 'surprise', | ||
'indecision', 'angel', 'cool', 'crying', 'kiss' | ||
] | ||
} ); | ||
|
||
//]]> | ||
</script> | ||
</p> | ||
<p> | ||
<input type="submit" value="Submit" /> | ||
</p> | ||
</form> | ||
<div id="footer"> | ||
<hr /> | ||
<p> | ||
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> | ||
</p> | ||
<p id="copy"> | ||
Copyright © 2003-2011, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico | ||
Knabben. All rights reserved. | ||
</p> | ||
</div> | ||
</body> | ||
</html> |
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,98 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<!-- | ||
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. | ||
For licensing, see LICENSE.html or http://ckeditor.com/license | ||
--> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>Using DevTools Plugin — CKEditor Sample</title> | ||
<meta content="text/html; charset=utf-8" http-equiv="content-type" /> | ||
<!-- CKReleaser %REMOVE_LINE% | ||
<script type="text/javascript" src="../ckeditor.js"></script> | ||
CKReleaser %REMOVE_START% --> | ||
<script type="text/javascript" src="../ckeditor_source.js"></script> | ||
<!-- CKReleaser %REMOVE_END% --> | ||
<script src="sample.js" type="text/javascript"></script> | ||
<link href="sample.css" rel="stylesheet" type="text/css" /> | ||
</head> | ||
<body> | ||
<h1 class="samples"> | ||
CKEditor Sample — Using the Developer Tools Plugin | ||
</h1> | ||
<div class="description"> | ||
<p> | ||
This sample shows how to configure CKEditor instances to use the | ||
<strong>Developer Tools</strong> (<code>devtools</code>) plugin that displays | ||
information about dialog window elements, including the name of the dialog window, | ||
tab, and UI element. Please note that the tooltip also contains a link to the | ||
<a href="http://docs.cksource.com/ckeditor_api/">CKEditor JavaScript API</a> | ||
documentation for each of the selected elements. | ||
</p> | ||
<p> | ||
This plugin is aimed at developers who would like to customize their CKEditor | ||
instances and create their own plugins. By default it is turned off; it is | ||
usually useful to only turn it on in the development phase. Note that it works with | ||
all CKEditor dialog windows, including the ones that were created by custom plugins. | ||
</p> | ||
<p> | ||
To add a CKEditor instance using the <strong>devtools</strong> plugin, insert | ||
the following JavaScript call into your code: | ||
</p> | ||
<pre class="samples">CKEDITOR.replace( '<em>textarea_id</em>', | ||
{ | ||
<strong>extraPlugins : 'devtools'</strong> | ||
});</pre> | ||
<p> | ||
Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of | ||
the <code><textarea></code> element to be replaced with CKEditor. | ||
</p> | ||
</div> | ||
|
||
<!-- This <div> holds alert messages to be display in the sample page. --> | ||
<div id="alerts"> | ||
<noscript> | ||
<p> | ||
<strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript | ||
support, like yours, you should still see the contents (HTML data) and you should | ||
be able to edit it normally, without a rich editor interface. | ||
</p> | ||
</noscript> | ||
</div> | ||
<form action="sample_posteddata.php" method="post"> | ||
<p> | ||
<label for="editor1"> | ||
Editor 1:</label> | ||
<textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea> | ||
<script type="text/javascript"> | ||
//<![CDATA[ | ||
|
||
// This call can be placed at any point after the | ||
// <textarea>, or inside a <head><script> in a | ||
// window.onload event handler. | ||
|
||
// Replace the <textarea id="editor"> with an CKEditor | ||
// instance, using default configurations. | ||
CKEDITOR.replace( 'editor1' , | ||
{ | ||
extraPlugins : 'devtools' | ||
}); | ||
|
||
//]]> | ||
</script> | ||
</p> | ||
<p> | ||
<input type="submit" value="Submit" /> | ||
</p> | ||
</form> | ||
<div id="footer"> | ||
<hr /> | ||
<p> | ||
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> | ||
</p> | ||
<p id="copy"> | ||
Copyright © 2003-2011, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico | ||
Knabben. All rights reserved. | ||
</p> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.