Skip to content

Commit

Permalink
remove "unlink" icon & editor outline
Browse files Browse the repository at this point in the history
Fixes #91
  • Loading branch information
ambrinchaudhary authored and ipeychev committed Jan 29, 2015
1 parent 14b287d commit f79c12e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 24 deletions.
4 changes: 4 additions & 0 deletions src/ui/yui/src/assets/css/alloy-editor-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@
font-size: 12px;
margin-left: 5px;
}

.cke_editable {
outline: none;
}
4 changes: 0 additions & 4 deletions src/ui/yui/src/assets/font/font.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,4 @@

.alloy-editor-icon-underline:before {
content: "\E014";
}

.alloy-editor-icon-unlink:before {
content: "\E015";
}
Binary file modified src/ui/yui/src/assets/font/fonts/alloyeditor.eot
Binary file not shown.
3 changes: 0 additions & 3 deletions src/ui/yui/src/assets/font/fonts/alloyeditor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/ui/yui/src/assets/font/fonts/alloyeditor.ttf
Binary file not shown.
Binary file modified src/ui/yui/src/assets/font/fonts/alloyeditor.woff
Binary file not shown.
4 changes: 4 additions & 0 deletions src/ui/yui/src/assets/sass/alloy-editor-core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,8 @@
font-size: 12px;
margin-left: 5px;
}
}

.cke_editable{
outline: none;
}
9 changes: 0 additions & 9 deletions src/ui/yui/src/assets/svg/unlink.svg

This file was deleted.

6 changes: 0 additions & 6 deletions src/ui/yui/src/buttons/button-a.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ YUI.add('button-a', function(Y) {
this._button.set('pressed', !!result && !dataType);

iconLinkNode = this._button.get('boundingBox').one('i');

if (this._button.get('pressed')) {
iconLinkNode.replaceClass('alloy-editor-icon-link', 'alloy-editor-icon-unlink');
} else {
iconLinkNode.replaceClass('alloy-editor-icon-unlink', 'alloy-editor-icon-link');
}
},

/**
Expand Down
4 changes: 2 additions & 2 deletions src/ui/yui/test/toolbar-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ describe('ToolbarStyles', function() {

it('should remove a link selection', function(done) {
testButtonAction.call(this, {
buttonSelector: '.alloy-editor-button .alloy-editor-icon-unlink',
buttonSelector: '.alloy-editor-button .alloy-editor-icon-link',
expected: '<p>The link should be selection removed completely.</p>',
html: 'The link should be <a>{selection}</a> removed completely.',
beforeAction: function(button) {
Expand All @@ -175,7 +175,7 @@ describe('ToolbarStyles', function() {
}, done);

testButtonAction.call(this, {
buttonSelector: '.alloy-editor-button .alloy-editor-icon-unlink',
buttonSelector: '.alloy-editor-button .alloy-editor-icon-link',
expected: '<p>The link should be selection removed completely.</p>',
html: 'The link <a>should be {selection} removed</a> completely.',
beforeAction: function(button) {
Expand Down

0 comments on commit f79c12e

Please sign in to comment.