Skip to content

Commit

Permalink
Merge branch 't/11739_input'
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Aug 12, 2014
2 parents 20906e2 + d205995 commit f59504d
Show file tree
Hide file tree
Showing 12 changed files with 1,467 additions and 220 deletions.
10 changes: 7 additions & 3 deletions CHANGES.md
Expand Up @@ -7,11 +7,15 @@ Fixed Issues:

* [#12268](http://dev.ckeditor.com/ticket/12268): Cleanup of UI Color YUI styles. Thanks to [CasherWest](https://github.com/CasherWest)!
* [#12263](http://dev.ckeditor.com/ticket/12263): Fixed: Paste from Word filter does not normalize semicolons style text properly. Thanks to [Alin Purcaru](https://github.com/mesmerizero)!
* [#10916](http://dev.ckeditor.com/ticket/10916): Fixed Magicline icon in RTL environments.
* [#12243](http://dev.ckeditor.com/ticket/12243): Fixed: Text formatting lost while pasting from Word. Thanks to [Alin Purcaru](https://github.com/mesmerizero)!
* [#111739](http://dev.ckeditor.com/ticket/11739): Fixed: `keypress` listeners should not be used in the undo manager. We made a complete rewrite of keyboard handling in the undo manager. We fixed many small issues, among others:
* [#10926](http://dev.ckeditor.com/ticket/10926): [Chrome@Android] Fixed: Typing does not record snapshots and does not fire the [`editor.change`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-change) event.
* [#11611](http://dev.ckeditor.com/ticket/11611): [FF] Fixed: The [`editor.change`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-change) event is fired when pressing arrow keys.
* [#12219](http://dev.ckeditor.com/ticket/12219): [Safari] Fixed: Some modifications of [`UndoManager.locked`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.undo.UndoManager-property-locked) property violates strict mode in the undo plugin.
* [#10916](http://dev.ckeditor.com/ticket/10916): Fixed: Magicline icon in RTL environments.
* [#11970](http://dev.ckeditor.com/ticket/11970): Fixed: CKEditor paste event not fired when pasting with SHIFT+INS in IE.
* [#12111](http://dev.ckeditor.com/ticket/12111): Fixed: Linked image attributes are not read when opening the image dialog by doubleclick.
* [#10030](http://dev.ckeditor.com/ticket/10030): [IE] Fixed: Prevented "Unspecified Error" thrown in various cases when IE8-9 does not allow access to `document.activeElement`.
* [#12243](http://dev.ckeditor.com/ticket/12243): Fixed: Text formatting lost while pasting from Word. Thanks to [Alin Purcaru](https://github.com/mesmerizero)!
* [#12273](http://dev.ckeditor.com/ticket/12273): Fixed: Applying block style in description list breaks it.
* [#12281](http://dev.ckeditor.com/ticket/12281): Fixed: Minor syntax issue in CSS files.
* [#12178](http://dev.ckeditor.com/ticket/12178): [Blink/Webkit] Fixed: Iterator does not return block if selection is located at the end of it.
Expand Down Expand Up @@ -429,7 +433,7 @@ New Features:
* [#8244](http://dev.ckeditor.com/ticket/8244): Use *(Shift+)Tab* to indent and outdent lists.
* [#10281](http://dev.ckeditor.com/ticket/10281): The [jQuery Adapter](http://docs.ckeditor.com/#!/guide/dev_jquery) is now available. Several jQuery-related issues fixed: [#8261](http://dev.ckeditor.com/ticket/8261), [#9077](http://dev.ckeditor.com/ticket/9077), [#8710](http://dev.ckeditor.com/ticket/8710), [#8530](http://dev.ckeditor.com/ticket/8530), [#9019](http://dev.ckeditor.com/ticket/9019), [#6181](http://dev.ckeditor.com/ticket/6181), [#7876](http://dev.ckeditor.com/ticket/7876), [#6906](http://dev.ckeditor.com/ticket/6906).
* [#10042](http://dev.ckeditor.com/ticket/10042): Introduced [`config.title`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-title) setting to change the human-readable title of the editor.
* [#9794](http://dev.ckeditor.com/ticket/9794): Added [`editor.onChange`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-change) event.
* [#9794](http://dev.ckeditor.com/ticket/9794): Added [`editor.change`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-change) event.
* [#9923](http://dev.ckeditor.com/ticket/9923): HiDPI support in the editor UI. HiDPI icons for [Moono skin](http://ckeditor.com/addon/moono) added.
* [#8031](http://dev.ckeditor.com/ticket/8031): Handle `required` attributes on `<textarea>` elements &mdash; introduced [`editor.required`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-required) event.
* [#10280](http://dev.ckeditor.com/ticket/10280): Ability to replace `<textarea>` elements with the inline editor.
Expand Down
86 changes: 86 additions & 0 deletions plugins/undo/dev/snapshot.html
@@ -0,0 +1,86 @@
<!DOCTYPE html>
<!--
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
-->
<html>
<head>
<meta charset="utf-8">
<title>Replace Textarea by Code &mdash; CKEditor Sample</title>
<script src="../../../ckeditor.js"></script>
<link href="../../../samples/sample.css" rel="stylesheet">
</head>
<body>
<h1 class="samples">
<a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Replace Textarea Elements Using JavaScript Code
</h1>
<form action="sample_posteddata.php" method="post">
<div class="description">
<p>
This editor is using an <code>&lt;iframe&gt;</code> element-based editing area, provided by the <strong>Wysiwygarea</strong> plugin.
</p>
<pre class="samples">
CKEDITOR.replace( '<em>textarea_id</em>' )
</pre>
</div>
<textarea cols="80" id="editor1" name="editor1" rows="10">
&lt;p&gt;Apollo 11&lt;/p&gt;
&lt;p&gt;111 222 333 444 555 666 777&lt;/p&gt;
</textarea>
<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 &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
Knabben. All rights reserved.
</p>
</div>
<div id="debugConsole">
<div>Snapshots: <strong id="debugSnapshotsCount">0</strong></div>
<div>Typing: <strong id="debugTypingVal">false</strong></div>
</div>
<div id="undoControls">
<a onclick="CKEDITOR.instances.editor1.execCommand('undo');" href="#">&lt; Undo</a>
<a onclick="CKEDITOR.instances.editor1.execCommand('redo');" href="#">Redo &gt;</a>
</div>
<script type="text/javascript">
var snapCount = document.getElementById( 'debugSnapshotsCount' ),
typingTracer = document.getElementById( 'debugTypingVal' ),
updateTypingTracer = function() {
typingTracer.innerHTML = String( CKEDITOR.instances.editor1.undoManager.typing );
},
updateSnapshotCounter = function() {
if ( !CKEDITOR && CKEDITOR.instances.editor1 )
return;

snapCount.innerHTML = CKEDITOR.instances.editor1.undoManager.snapshots.length;
updateTypingTracer();
};

CKEDITOR.replace( 'editor1', {
toolbar: [ [ 'Source', 'Bold', 'Italic' ] ,[ 'Undo' ], [ 'Redo' ] ],
on: {
instanceReady: function( evt ) {
CKEDITOR.instances.editor1.focus();
},
change: function( evt ) {
updateSnapshotCounter();
}
}
} );

window.setInterval( updateSnapshotCounter, 700 );
</script>
<style type="text/css">
#debugConsole { clear: both; }
#undoControls { clear: both; }
#undoControls a { padding: 25px 50px; font-size: 19px; margin-right: 15px; outline: 2px solid gray; display: block; float: left; text-decoration: none; }
</style>
</body>
</html>

0 comments on commit f59504d

Please sign in to comment.