Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
New version, fixing this firefox bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Sinchok committed Mar 5, 2015
1 parent d8885a9 commit 968f6db
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onion-editor",
"version": "0.2.37",
"version": "0.2.38",
"homepage": "https://github.com/theonion/editor",
"authors": [
"Mike Wnuk <[email protected]>"
Expand All @@ -26,7 +26,7 @@
"devDependencies": {
"jasmine-jquery": "~2.0.5",
"requirejs": "~2.1.9",
"scribe": "theonion/scribe#68356206d189f5d51224623788e228d6ae659d15",
"scribe": "theonion/scribe#649a8af55c36ad2536a66a99d4abab57e418ba33",
"scribe-plugin-blockquote-command": "0.1.0",
"scribe-plugin-curly-quotes": "0.1.2",
"scribe-plugin-formatter-plain-text-convert-new-lines-to-html": "0.1.1",
Expand Down
4 changes: 4 additions & 0 deletions build/onion-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4064,6 +4064,10 @@ define('api/command-patch',[],function () {
};

CommandPatch.prototype.queryState = function () {
// Hack for firefox, which does not like this.
if (this.commandName === 'insertOrderedList' || this.commandName == 'insertUnorderedList') {
return false;
}
return document.queryCommandState(this.commandName);
};

Expand Down
8 changes: 4 additions & 4 deletions build/onion-editor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onion-editor",
"version": "0.2.36",
"version": "0.2.38",
"author": {
"name": "Mike Wnuk",
"email": "[email protected]"
Expand Down
4 changes: 3 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ <h4 class="modal-title">Embed something</h4>
}
}
});
editor.setChangeHandler(function() { });
editor.setChangeHandler(function() {
console.log('change');
});
editor.setContent($("#content").html());

// var lineEditor = new OnionEditor(document.getElementById('line-editor'), {
Expand Down

0 comments on commit 968f6db

Please sign in to comment.