diff --git a/README.md b/README.md index c9eb7a5..a51915b 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,27 @@ This [widget](https://appstore.home.mendix.com/link/app/1715/Mendix/CKEditor-For Current [CKEditor version](http://ckeditor.com/whatsnew): 4.10.0 +## Development + +### Prerequisites + +- Node.js 8.x +- npm 6.x (lock file version 1) + +### Building + +To build the widget for development, run: + +```bash +npm run dev +``` + ## Contributing For more information on contributing to this repository visit [Contributing to a GitHub repository](https://world.mendix.com/display/howto50/Contributing+to+a+GitHub+repository)! + + ## Typical usage scenario Use this widget to add a full WYSIWYG editor for your entity attributes. This version has the ability to add links to HTML that can run microflows when clicked uppon. diff --git a/Test7/widgets/CKEditorForMendix.mpk b/Test7/widgets/CKEditorForMendix.mpk new file mode 100644 index 0000000..7b7648d Binary files /dev/null and b/Test7/widgets/CKEditorForMendix.mpk differ diff --git a/dist/CKEditorForMendix.mpk b/dist/CKEditorForMendix.mpk index d94046a..7b7648d 100644 Binary files a/dist/CKEditorForMendix.mpk and b/dist/CKEditorForMendix.mpk differ diff --git a/src/CKEditorForMendix/widget/CKEditorForMendix.js b/src/CKEditorForMendix/widget/CKEditorForMendix.js index 7f4bf7c..e1cc7ba 100644 --- a/src/CKEditorForMendix/widget/CKEditorForMendix.js +++ b/src/CKEditorForMendix/widget/CKEditorForMendix.js @@ -153,7 +153,7 @@ define([ })); var self = this; this._editor.on("loaded", function() { - var content = $(".cke_contents", this.domNode); + var content = $("." + this.id + " .cke_contents"); content.click(function() { console.log("focused click"); self._editor.focus(); @@ -164,10 +164,11 @@ define([ _executeMf: function(obj, mf, callback) { logger.debug(this.id + "._executeMf: ", mf); if (obj && mf !== "") { - mx.ui.action(mf, { + mx.data.action({ params: { applyto: "selection", - guids: [obj.getGuid()] + guids: [obj.getGuid()], + actionname: mf, }, callback: callback || function() {}, error: lang.hitch(this, function(error) {