postedin / ember-ckeditor Goto Github PK
View Code? Open in Web Editor NEWCKEditor 5 component for Ember JS.
License: MIT License
CKEditor 5 component for Ember JS.
License: MIT License
Loving this package and trying to install on a brand new installation of Ember 4.8 (CLI)
Running into an issue with @glimmer/manager.js
~line 825
function modifierCapabilities(managerAPI, optionalFeatures) {
if (optionalFeatures === void 0) {
optionalFeatures = {};
}
if (true
/* DEBUG */
&& managerAPI !== '3.22') { // << Error here, managerAPI is 3.13
throw new Error('Invalid modifier manager compatibility specified');
}
return buildCapabilities({
disableAutoTracking: Boolean(optionalFeatures.disableAutoTracking)
});
}
Seems to be a version mismatch with @ember/render-modifiers
Upgrading to "@ember/render-modifiers": "^2.0.4"
seems to do the trick .. but I'm not really set up to test whether this fix is viable for release.
Any advice would be appreciated. I've created a fork of ember-ckeditor and using that in the meantime.
Kudos once again for this addon, it works so well with the latest builds of CKEditor and I'm using it with a custom build and some customizations.
I'm trying to write some sanity tests for my app and I'd like to test the editor using QUnit.
I did a bit of digging and the typeIn
helper actually works with contenteditable
fields, discussion here: emberjs/ember-test-helpers#793
As far as I can tell, at its core the editor has a contenteditable field, something along these lines:
I've tried writing a test to simply enter some text
test('Clear Text', async function (assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`<MyWhiteboard />`);
await typeIn('.ck.ck-content.ck-editor__editable', 'This is a test');
assert.dom('button.clear-text').exists();
await click('button.clear-text');
});
From what I can tell, it finds the element and fires off all the events but nothing ever appears in the editor.
As I write this now I'm starting to wonder if we ought to use CKEditorInspector or something like the getData
and setData
helpers. (https://ckeditor.com/docs/ckeditor5/latest/framework/guides/development-tools.html#testing-helpers)
I'll give it a try and follow up!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.