Skip to content

Commit

Permalink
Drop the embed intent prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Oct 16, 2015
1 parent a1a6975 commit edf3c26
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 371 deletions.
57 changes: 1 addition & 56 deletions src/css/embeds.less
Expand Up @@ -2,61 +2,6 @@
* Embeds
*/

.ck-embed-intent {
position: absolute;
}

.ck-embed-intent .ck-toolbar {
min-width: 100px;
left: 40px;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}

.ck-embed-intent-btn {
position: relative;
display: block;
background: none;
border: none;
outline: none;
margin: 0 0.4em 0 0;
padding: 0;
width: 1em;
height: 1em;
border: 2px solid #ccc;
border-radius: 100%;
color: #ccc;
text-align: center;
font-size: 2em;
line-height: 0.7em;
cursor: pointer;
transition: color @colorChangeSpeed, border-color @colorChangeSpeed, transform 0.35s;
-webkit-animation: pop-out 0.25s;
animation: pop-out 0.25s;
}
.ck-embed-intent-btn:hover {
color: #999;
border-color: #999;
}
.ck-embed-intent-btn:active {
color: #666;
border-color: #666;
transition: none;
}
.ck-embed-intent-btn:before {
content: '+';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.activated .ck-embed-intent-btn {
-webkit-transform: rotate(-135deg);
transform: rotate(-135deg);
}

.ck-embed-loading {
position: absolute;
top: 0;
Expand Down Expand Up @@ -143,4 +88,4 @@
.ck-image-embed {
-webkit-animation: fade-in 1s;
animation: fade-in 1s;
}
}
9 changes: 0 additions & 9 deletions src/js/editor/editor.js
@@ -1,5 +1,4 @@
import Tooltip from '../views/tooltip';
import EmbedIntent from '../views/embed-intent';
import PostEditor from './post';

import ImageCard from '../cards/image';
Expand Down Expand Up @@ -142,7 +141,6 @@ class Editor {
clearChildNodes(element);

this._setupListeners();
this._addEmbedIntent();
this._addTooltip();

// A call to `run` will trigger the didUpdatePostCallbacks hooks with a
Expand Down Expand Up @@ -515,13 +513,6 @@ class Editor {
this.addCallback(CALLBACK_QUEUES.CURSOR_DID_CHANGE, callback);
}

_addEmbedIntent() {
this.addView(new EmbedIntent({
editor: this,
rootElement: this.element
}));
}

_setupListeners() {
const elementEvents = ['keydown', 'keyup', 'input', 'dragover', 'drop', 'paste'];
const documentEvents = ['mouseup'];
Expand Down
131 changes: 0 additions & 131 deletions src/js/views/embed-intent.js

This file was deleted.

0 comments on commit edf3c26

Please sign in to comment.