{"id":22402299,"url":"https://github.com/lblod/frontend-embeddable-notule-editor","last_synced_at":"2025-07-31T16:31:03.216Z","repository":{"id":40263111,"uuid":"150971288","full_name":"lblod/frontend-embeddable-notule-editor","owner":"lblod","description":"Frontend for an embeddable variant of the editor.","archived":false,"fork":false,"pushed_at":"2024-11-20T20:40:26.000Z","size":11507,"stargazers_count":1,"open_issues_count":7,"forks_count":1,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-11-30T14:55:50.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lblod.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-30T13:49:16.000Z","updated_at":"2024-11-20T18:05:36.000Z","dependencies_parsed_at":"2023-12-12T11:38:22.520Z","dependency_job_id":"b6107257-e6d2-44d3-96ac-3b075dbebf23","html_url":"https://github.com/lblod/frontend-embeddable-notule-editor","commit_stats":null,"previous_names":[],"tags_count":103,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lblod%2Ffrontend-embeddable-notule-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lblod%2Ffrontend-embeddable-notule-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lblod%2Ffrontend-embeddable-notule-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lblod%2Ffrontend-embeddable-notule-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lblod","download_url":"https://codeload.github.com/lblod/frontend-embeddable-notule-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228267836,"owners_count":17893841,"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":[],"created_at":"2024-12-05T09:12:27.017Z","updated_at":"2025-07-31T16:31:03.204Z","avatar_url":"https://github.com/lblod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @lblod/embeddable-say-editor\n\nThis application allows you to embed the [RDFa editor](https://github.com/lblod/ember-rdfa-editor) in other applications without integrating with EmberJS directly. It will behave like any other HTML editor.\n\n##### Live Demo\n\nA [live demo](https://embeddable.dev.gelinkt-notuleren.lblod.info) is available for easy testing.\nThis environment is NOT suited for any production use, as it might change without notice and might be an outdated version.\nAny content entered here will not be saved.\n\n## Upgrading from version 5\n\nVersion 6 uses a new packaging and rendering strategy made possible by\nadvancements in the EmberJS framework. We recommend upgrading as soon as\npossible. \n\nWe've done our best to make as little breaking changes as we could, but given\nthe magnitude of the changes we can't guarantee full equivalence. \n\nMake sure to read the [upgrade guide](./docs/upgrade-from-v5.md) for an overview\nof the breaking changes and reasoning behind them.\n\n## Docs\n\nYou can find the docs in **[the docs folder](docs/index.md)**, or keep reading\nfor a quickstart guide.\n\n## Quickstart\n\n### nodejs\n\n`npm install @lblod/embeddable-say-editor`\n\nWe export a simple function to launch the editor in your app. \nBy default, the editor is rendered inside a Shadow DOM element.\n\n```javascript\nimport { renderEditor } from \"@lblod/embeddable-say-editor\";\n\n// make a container element for the editor to render into\n// the id is not required, you just need to be able to get hold of this element\n// in whatever way you like\n\n// note: the editor will replace all children of this element, so best to keep it empty.\n// \u003cdiv id=\"editorContainer\"\u003e\u003c/div\u003e\n\nconst container = document.getElementById(\"editorContainer\");\nconst editor = await renderEditor({\n  element: container,\n  plugins: [], // array of plugin names (see below)\n  options: {}, // configuration object (see below)\n});\n\n// the editor is now initialized and can be used\neditor.setHtmlContent(\"hello world\");\n```\n\nFor a full explanation of all the options, see\n[the configuration reference](docs/configuration.md)\n\n### Static html\n\nIf you can't use an npm package directly in your app, the easiest way is using a CDN such as unpkg.com to use the version from npm directly in a `\u003cscript\u003e` tag. For details on how to use start and customise the editor, see the [basic code example](#basic-example-the-editor-in-an-html-file) section below.\n\nUnlike the example which does not specify the version, for production use, we recommend to use a fixed major version number to avoid breaking changes. The changelog can be seen [on Github](https://github.com/lblod/frontend-embeddable-notule-editor/releases), any update with breaking changes will have a higher version number. For example, to have the latest version of the v3 release, use the following import:\n\n\u003e [!NOTE]\n\u003e the version string can be any semver range or tag supported by unpkg.\n\n```html\n\u003cscript type=\"module\" src=\"https://unpkg.com/@lblod/embeddable-say-editor@^6.0.0?module\"\u003e\u003c/script\u003e\n```\n\nIn this section, we will assume you are using unpkg, but using another service that serves npm modules or building and hosting the bundles yourself should work just as well. Simply link the corresponding files to the correct location for your setup.\n\nFor an interactive example, refer to this [jsfiddle](https://jsfiddle.net/abeforfiddle/7zugt5nv/).\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003ctitle\u003eI have an editor in my document\u003c/title\u003e\n  \u003c/head\u003e\n\n  \u003cbody\u003e\n    \u003cdiv id=\"my-editor\"\u003e\u003c/div\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nNext, we'll instantiate the editor. We wait until the DOM has loaded and then render the editor inside it. Put this script in the head of the HTML page with `\u003cscript type=\"module\"\u003e...\u003c/script\u003e`, or use another method if desired (e.g. at the bottom of the HTML, or in a separate js file you refer to in the html).\n\n```javascript\nimport {renderEditor} from \"https://unpkg.com/@lblod/embeddable-say-editor@^6.0.0?module\";\n\nwindow.addEventListener(\"load\", async function () {\n  const renderEditor = window[\"@lblod/embeddable-say-editor\"].renderEditor;\n\n  const editorContainer = document.getElementById(\"my-editor\");\n  const editorElement = await renderEditor({\n    element: editorContainer,\n    plugins: arrayOfPluginNames, // array of plugin names (see below)\n    options: configurationOptions, // configuration object (see below)\n  });\n});\n```\n\nFor a full explanation of all the options, see\n[the configuration reference](docs/configuration.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flblod%2Ffrontend-embeddable-notule-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flblod%2Ffrontend-embeddable-notule-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flblod%2Ffrontend-embeddable-notule-editor/lists"}