Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Binary file added Test7/widgets/CKEditorForMendix.mpk
Binary file not shown.
Binary file modified dist/CKEditorForMendix.mpk
Binary file not shown.
7 changes: 4 additions & 3 deletions src/CKEditorForMendix/widget/CKEditorForMendix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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) {
Expand Down