Permalink
Browse files

updated code, added a couple of custom buttons and some styles, and s…

…ome tests.
  • Loading branch information...
1 parent ff05066 commit 1181e75ea04aa14f6210515a2430c361286e2385 @napcs committed May 29, 2012
Showing 872 changed files with 47,763 additions and 15,826 deletions.
View
@@ -0,0 +1,7 @@
+source :rubygems
+
+gem 'sinatra'
+gem 'haml'
+gem 'nokogiri'
+gem 'rspec', :group => :test
+gem 'rack-test', :group => :test
View
@@ -0,0 +1,34 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.3)
+ haml (3.1.4)
+ nokogiri (1.5.2)
+ rack (1.4.1)
+ rack-protection (1.2.0)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rspec (2.9.0)
+ rspec-core (~> 2.9.0)
+ rspec-expectations (~> 2.9.0)
+ rspec-mocks (~> 2.9.0)
+ rspec-core (2.9.0)
+ rspec-expectations (2.9.1)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.9.0)
+ sinatra (1.3.2)
+ rack (~> 1.3, >= 1.3.6)
+ rack-protection (~> 1.2)
+ tilt (~> 1.3, >= 1.3.3)
+ tilt (1.3.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ haml
+ nokogiri
+ rack-test
+ rspec
+ sinatra
View
Binary file not shown.
View
Binary file not shown.
View
@@ -2,7 +2,7 @@ $(function(){
$("#help").hide();
- $("a#help_link").click(function(e){
+ $("a#help_link").on("click", function(e){
e.preventDefault();
$("#help").dialog({
bgiframe: true,
Binary file not shown.
View
1,787 public/javascript/ckeditor/CHANGES.html 100644 → 100755

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
-->
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -84,7 +84,7 @@ <h3>
CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
</p>
<p id="copy">
- Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico
+ Copyright &copy; 2003-2012, <a href="http://cksource.com/">CKSource</a> - Frederico
Knabben. All rights reserved.
</p>
</div>
View
@@ -7,7 +7,7 @@
==========================
CKEditor - The text editor for Internet - http://ckeditor.com
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
Licensed under the terms of any of the following licenses at your
choice:
@@ -28,9 +28,7 @@
license you have chosen to be bound to when using, reproducing,
modifying and distributing this software, just include a text file
titled "legal.txt" in your version of this software, indicating your
-license choice. In any case, your choice will not restrict any
-recipient of your version of this software to use, reproduce, modify
-and distribute this software under any of the above licenses.
+license choice.
Sources of Intellectual Property Included in CKEditor
=====================================================
@@ -40,11 +38,6 @@
property. In some specific instances, CKEditor will incorporate work
done by developers outside of CKSource with their express permission.
-YUI Test: At _source/tests/yuitest.js can be found part of the source
-code of YUI, which is licensed under the terms of the BSD License
-(http://developer.yahoo.com/yui/license.txt). YUI is Copyright (C)
-2008, Yahoo! Inc.
-
Trademarks
==========
@@ -1286,7 +1279,7 @@ <h1>
<p>
<strong>CKEditor&trade;</strong> - The text editor for Internet&trade; - <a href="http://ckeditor.com">
http://ckeditor.com</a><br />
- Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
+ Copyright &copy; 2003-2012, <a href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
</p>
<p>
Licensed under the terms of any of the following licenses at your choice:
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+-->
+<application xmlns="http://ns.adobe.com/air/application/1.0">
+ <id>com.ckeditor.air.sample</id>
+ <name>CKEditor - Adobe AIR Sample Application</name>
+ <version>1.0</version>
+ <filename>CKEditor AIR Samples</filename>
+ <description>This is a sample AIR application of CKEditor.</description>
+ <copyright>Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.</copyright>
+ <initialWindow>
+ <content>_samples/adobeair/sample.html</content>
+ <title>CKEditor - Adobe AIR Sample</title>
+ <systemChrome>standard</systemChrome>
+ <transparent>false</transparent>
+ <visible>true</visible>
+ <minimizable>true</minimizable>
+ <maximizable>true</maximizable>
+ <resizable>true</resizable>
+ <x>100</x>
+ <y>80</y>
+ <width>950</width>
+ <height>700</height>
+ <minSize>900 600</minSize>
+ </initialWindow>
+ <installFolder>CKEditor/Sample AIR Application</installFolder>
+ <programMenuFolder>CKEditor/Sample AIR Application</programMenuFolder>
+ <customUpdateUI>false</customUpdateUI>
+ <allowBrowserInvocation>false</allowBrowserInvocation>
+</application>
@@ -0,0 +1,9 @@
+@ECHO OFF
+::
+:: Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
+:: For licensing, see LICENSE.html or http://ckeditor.com/license
+::
+:: Use this file to quickly run the sample in a Windows environment.
+::
+
+adl application.xml ../../
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+# Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
+# For licensing, see LICENSE.html or http://ckeditor.com/license
+
+# Use this file to quickly run the sample under Linux.
+
+adl application.xml ../../
@@ -0,0 +1,45 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+Copyright (c) 2003-2012, 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>Replace Textarea by Code - CKEditor Sample</title>
+ <meta content="text/html; charset=utf-8" http-equiv="content-type" />
+ <script type="text/javascript" src="../../ckeditor.js"></script>
+ <link href="../sample.css" rel="stylesheet" type="text/css" />
+ <style type="text/css">
+ body { margin: 10px ; }
+ </style></head>
+<body>
+ <h1 class="samples">
+ CKEditor - Adobe AIR Sample
+ </h1>
+ <p>
+ This is a sample HTML/JavaScript Adobe AIR application with CKEditor with default features.
+ </p>
+ <p>
+ <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
+ <script type="text/javascript">
+ //<![CDATA[
+
+ // Replace the <textarea id="editor"> with an CKEditor
+ // instance, using default configurations.
+ CKEDITOR.replace( 'editor1' );
+
+ //]]>
+ </script>
+ </p>
+ <div id="footer" style="position:absolute;bottom:0;left:0;right:0;width:100%;padding-bottom:10px;">
+ <hr />
+ <p>
+ CKEditor - The text editor for Internet - <a class="samples" href="#" onclick="window.runtime.flash.net.navigateToURL(new window.runtime.flash.net.URLRequest('http://ckeditor.com/'));return false;">http://ckeditor.com</a>
+ </p>
+ <p id="copy">
+ Copyright &copy; 2003-2012, <a class="samples" href="#" onclick="window.runtime.flash.net.navigateToURL(new window.runtime.flash.net.URLRequest('http://cksource.com/'));return false;">CKSource</a> - Frederico
+ Knabben. All rights reserved.
+ </p>
+ </div>
+</body>
+</html>
View
@@ -1,26 +1,25 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
+Copyright (c) 2003-2012, 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>Ajax - CKEditor Sample</title>
+ <title>Ajax &mdash; CKEditor Sample</title>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<script type="text/javascript" src="../ckeditor.js"></script>
<script src="sample.js" type="text/javascript"></script>
<link href="sample.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
//<![CDATA[
-var editor;
+var editor, html = '';
function createEditor()
{
if ( editor )
return;
- var html = document.getElementById( 'editorcontents' ).innerHTML;
// Create a new editor inside the <div id="editor">, setting its value to html
var config = {};
@@ -34,7 +33,7 @@
// Retrieve the editor contents. In an Ajax application, this data would be
// sent to the server or used in any other way.
- document.getElementById( 'editorcontents' ).innerHTML = editor.getData();
+ document.getElementById( 'editorcontents' ).innerHTML = html = editor.getData();
document.getElementById( 'contents' ).style.display = '';
// Destroy the editor.
@@ -46,9 +45,20 @@
</script>
</head>
<body>
- <h1>
- CKEditor Sample
+ <h1 class="samples">
+ CKEditor Sample &mdash; Create and Destroy Editor Instances for Ajax Applications
</h1>
+ <div class="description">
+ <p>
+ This sample shows how to create and destroy CKEditor instances on the fly. After the removal of CKEditor the content created inside the editing
+ area will be displayed in a <code>&lt;div&gt;</code> element.
+ </p>
+ <p>
+ For details of how to create this setup check the source code of this sample page
+ for JavaScript code responsible for the creation and destruction of a CKEditor instance.
+ </p>
+ </div>
+
<!-- This <div> holds alert messages to be display in the sample page. -->
<div id="alerts">
<noscript>
@@ -59,6 +69,7 @@ <h1>
</p>
</noscript>
</div>
+ <p>Click the buttons to create and remove a CKEditor instance.</p>
<p>
<input onclick="createEditor();" type="button" value="Create Editor" />
<input onclick="removeEditor();" type="button" value="Remove Editor" />
@@ -76,10 +87,10 @@ <h1>
<div id="footer">
<hr />
<p>
- CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
</p>
<p id="copy">
- Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico
+ Copyright &copy; 2003-2012, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
Knabben. All rights reserved.
</p>
</div>
Oops, something went wrong.

0 comments on commit 1181e75

Please sign in to comment.