mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
583b2e47d8
refs https://github.com/TryGhost/Ghost/issues/9505 - disable `mobiledoc-kit`'s built-in link tooltip - add `{{koenig-link-toolbar}}` component - shows toolbar above a link when it is hovered with the mouse - hides toolbar when a link isn't hovered - has a clickable link with the URL, opens in a new tab - edit button switches display to the link input toolbar - delete button removes link markup from the link
25 lines
789 B
JavaScript
25 lines
789 B
JavaScript
import hbs from 'htmlbars-inline-precompile';
|
|
import {describe, it} from 'mocha';
|
|
import {expect} from 'chai';
|
|
import {setupComponentTest} from 'ember-mocha';
|
|
|
|
describe('Integration: Component: koenig-link-toolbar', function () {
|
|
setupComponentTest('koenig-link-toolbar', {
|
|
integration: true
|
|
});
|
|
|
|
it.skip('renders', function () {
|
|
// Set any properties with this.set('myProperty', 'value');
|
|
// Handle any actions with this.on('myAction', function(val) { ... });
|
|
// Template block usage:
|
|
// this.render(hbs`
|
|
// {{#koenig-link-toolbar}}
|
|
// template content
|
|
// {{/koenig-link-toolbar}}
|
|
// `);
|
|
|
|
this.render(hbs`{{koenig-link-toolbar}}`);
|
|
expect(this.$()).to.have.length(1);
|
|
});
|
|
});
|