-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CLEANUP] DRY copy/paste and drop event handling. Add editor#serializeTo
* Remove now-unused `supportsStandardClipboardAPI` test helper * Add `editor#serializeTo(format)` * Add `editor#serializePost(post, format)` * Add deprecate helper * Add `post#trimTo(range)` and deprecate `post#cloneRange`. `cloneRange` returns a mobiledoc, which is confusing. * Enable all copy-paste acceptance tests in IE. They all now use the copy/paste mocks from the test helpers. * Add an IE-compatibility test for `getContentFromPasteEvent` to ensure it will use `window.clipboardData` * Add an IE-compatibility test for `setClipboardData` to ensure it will use `window.clipboardData`
- Loading branch information
Showing
11 changed files
with
353 additions
and
206 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function deprecate(message) { | ||
console.log(`DEPRECATED: ${message}`); // jshint ignore:line | ||
} |
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
Oops, something went wrong.