{"id":23819817,"url":"https://github.com/kth/kth-ckeditor-build","last_synced_at":"2026-02-28T01:07:23.925Z","repository":{"id":57125748,"uuid":"135249597","full_name":"KTH/kth-ckeditor-build","owner":"KTH","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-01T04:11:57.000Z","size":840,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-02-03T06:02:51.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/KTH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-29T06:14:25.000Z","updated_at":"2024-08-02T05:49:32.000Z","dependencies_parsed_at":"2022-08-31T17:00:57.282Z","dependency_job_id":null,"html_url":"https://github.com/KTH/kth-ckeditor-build","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fkth-ckeditor-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fkth-ckeditor-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fkth-ckeditor-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fkth-ckeditor-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KTH","download_url":"https://codeload.github.com/KTH/kth-ckeditor-build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240100517,"owners_count":19747683,"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":"2025-01-02T07:15:50.783Z","updated_at":"2026-02-28T01:07:23.877Z","avatar_url":"https://github.com/KTH.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KTH CKEditor build\n\n\u003e **_Do not manually edit files in the `ckeditor` folder!_**\n\nThis project contains a custom build of the [CKEditor][ckeditor].\n\nTo update the CKEditor code, [go to the builder][ckeditorbuilder] and\nupload the `ckeditor/build-config.js` file to reuse the same settings\nand plugins. Download ZIP file, delete the current `ckeditor` folder,\nunpack the ZIP file into this repository, and finally commit and push.\nAlso don't forget to update the version using the `npm version` command.\n\nWhen installing this project through npm, run the following command:\n\n```bash\nnpm install --save-dev @kth/kth-ckeditor-build\n```\n\nIn the module there is a gulp (version 4) task generator which can copy CKEditor files to the your project target directory.\nThey move the plugin as well as a configuration file into your project directory.\nHere is an example how it can be used.\n\n```\nconst ckGulp = require('@kth/kth-ckeditor-build/gulpfile')\nconst ckEditorBuild = ckGulp.buildTask(\n  gulp,\n  './node_modules/@kth/kth-ckeditor-build',\n  './dist/js/ckeditor',\n  'profiles-web'\n)\n\n// if there is a vendor task, you can add it there\ngulp.task(\n  'vendor',\n  gulp.series([ckEditorBuild, vendor], done =\u003e {\n    done()\n  })\n)\n\n// or define as a standalone task which can  then added to the final build task\ngulp.task(\n  'ckEditorBuild',\n  gulp.series([ckEditorBuild], done =\u003e {\n    done()\n  })\n)\n```\n\nIn order for the configuration file to be used, it has to be configured in the client.\nFor example in your page view module. Attention: for Bootstrap formatting in the editor,\nprovide a Bootstrap CSS path in the contentsCss array.\nThis also a good place to override options that may be needed for your project\n\n```javascript\nCKEDITOR.replace('editor', {\n  customConfig: 'customConfig.js',\n  contentsCss: [CKEDITOR.getUrl('contents.css'), 'path-to-bootstrap-css'],\n  // We need more height, lets override! height: 1337\n})\n```\n\nFinally, reference the CKEditor JavaScript file `ckeditor/ckeditor.js`\nand optionally `ckeditor/adapters/jquery.js` if you are using jQuery.\n\nTo test the editor without installing, clone this repository and run\n`npm run server` and open [http://localhost:5050][local] in your browser.\n\n## Note about the link dialog\n\nCurrently this works perfectly fine as it is. However, the link dialog\nis missing a way to edit the link text. Right now, the best way to\nensure a specific link text is to first type out the text, then\nhighlight it, then open the link dialog, enter a URL, and click OK. It\nis being worked on by the CKEditor team, but it's not certain when it's\nfinished.\n\n## Sample config\n\nFor a sample config, check out the [server/public/js/index.js][sample]\nfile.\n\n[ckeditor]: http://ckeditor.com\n[ckeditorbuilder]: http://ckeditor.com/builder\n[local]: http://localhost:5050\n[sample]: server/public/js/index.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkth%2Fkth-ckeditor-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkth%2Fkth-ckeditor-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkth%2Fkth-ckeditor-build/lists"}