{"id":20508616,"url":"https://github.com/wecatch/ember-cli-simditor","last_synced_at":"2025-04-13T22:08:38.922Z","repository":{"id":6036549,"uuid":"54541555","full_name":"wecatch/ember-cli-simditor","owner":"wecatch","description":"Ember component wrapper for simditor editor","archived":false,"fork":false,"pushed_at":"2022-07-01T12:32:44.000Z","size":1055,"stargazers_count":17,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T22:08:36.179Z","etag":null,"topics":["ember","simditor"],"latest_commit_sha":null,"homepage":"http://wecatch.me/ember-cli-simditor/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wecatch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-23T08:04:19.000Z","updated_at":"2024-05-30T03:00:02.000Z","dependencies_parsed_at":"2022-08-09T07:00:28.313Z","dependency_job_id":null,"html_url":"https://github.com/wecatch/ember-cli-simditor","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wecatch%2Fember-cli-simditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wecatch%2Fember-cli-simditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wecatch%2Fember-cli-simditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wecatch%2Fember-cli-simditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wecatch","download_url":"https://codeload.github.com/wecatch/ember-cli-simditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788940,"owners_count":21161727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ember","simditor"],"created_at":"2024-11-15T20:19:28.361Z","updated_at":"2025-04-13T22:08:38.900Z","avatar_url":"https://github.com/wecatch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember-cli-simditor\n\n[![Build Status](https://github.com/wecatch/ember-cli-simditor/actions/workflows/ci.yml/badge.svg)](https://github.com/wecatch/ember-cli-simditor/actions)\n[![Downloads](https://img.shields.io/npm/dt/ember-cli-simditor.svg)](https://www.npmjs.com/package/ember-cli-simditor)\n[![Version](https://img.shields.io/npm/v/ember-cli-simditor.svg)](https://www.npmjs.com/package/ember-cli-simditor)\n\nEmber component wrapper for [simditor](https://github.com/mycolorway/simditor).\n\n# Changes\n\n## 1.0.0\n\n- Upgrade Ember to 3.85\n- Use native class rewrite addon\n- Lock simditor dependence\n- Change ci to github action\n\n## 0.0.7\n\nDifferent from previous version, you must wrap content in object. See [issue 6](https://github.com/wecatch/ember-cli-simditor/issues/6) for why.\n\n# Getting Started\n\n## Installation\n\nIn your ember-cli project, install this addon from npm \n\n```\nember install ember-cli-simditor\n```\n\nor install the latest version from github\n\n```\nember install git+https://github.com/wecatch/ember-cli-simditor\n```\n\n\n## Usage\n\n```\n\u003cSimditorEditor\n  @value={{get this.model 'one'}}\n  @update={{fn (mut this.model.one.content)}}\n  @editor={{fn (mut this.editor)}}\n  @toolbar={{this.toolbar}}\n  @onValuechanged={{this.valuechanged}}\n/\u003e\n```\n\nYou must wrap content in one object, that means model object must have one property called `content` for component to render, visit [issue 6](https://github.com/wecatch/ember-cli-simditor/issues/6) for why.\n\nBy default the content property name is `content`, you can custome the property name with `name` argument\n\n\n```\n\u003cSimditorEditor \n  @value={{this.model}}\n  @update={{fn (mut this.model.html)}}\n  @editor={{fn (mut this.editor)}}\n  @toolbar={{this.toolbar}}\n  @onValuechanged={{this.valuechanged}}\n  @name='html'/\u003e\n```\n\n## Locale\n\nEnglish by default\n\n```\n\u003cSimditorEditor /\u003e\n```\n\nChinese\n\n```\n\u003cSimditorEditor @locale='zh-CN'/\u003e\n```\n\n## API\n\n- [Options](http://simditor.tower.im/docs/doc-config.html)\n- [Methods](http://simditor.tower.im/docs/doc-method.html)\n- [Events](http://simditor.tower.im/docs/doc-event.html)\n\n\nIn this addon , `on` prefix must be used for all events name. For sample, valuechanged =\u003e OnValuechanged.\n\n- valuechanged =\u003e onValuechanged\n- selectionchanged =\u003e onSelectionchanged\n- decorate =\u003e onDecorate\n- undecorate = \u003e onUndecorate\n- pasting =\u003e onPasting\n- blur =\u003e onBlur\n- destroy =\u003e onDestroy\n\n\n## Running Tests\n\n* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwecatch%2Fember-cli-simditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwecatch%2Fember-cli-simditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwecatch%2Fember-cli-simditor/lists"}