{"id":19150037,"url":"https://github.com/smashingboxes/cardboard_redactor","last_synced_at":"2025-02-22T20:43:48.945Z","repository":{"id":14078270,"uuid":"16781888","full_name":"smashingboxes/cardboard_redactor","owner":"smashingboxes","description":null,"archived":false,"fork":false,"pushed_at":"2015-05-12T19:53:41.000Z","size":389,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-01-03T18:12:37.993Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smashingboxes.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":"2014-02-12T21:06:33.000Z","updated_at":"2015-05-12T19:45:58.000Z","dependencies_parsed_at":"2022-07-11T06:18:23.234Z","dependency_job_id":null,"html_url":"https://github.com/smashingboxes/cardboard_redactor","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/smashingboxes%2Fcardboard_redactor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashingboxes%2Fcardboard_redactor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashingboxes%2Fcardboard_redactor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashingboxes%2Fcardboard_redactor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smashingboxes","download_url":"https://codeload.github.com/smashingboxes/cardboard_redactor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240236196,"owners_count":19769570,"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-11-09T08:10:25.679Z","updated_at":"2025-02-22T20:43:48.924Z","avatar_url":"https://github.com/smashingboxes.png","language":"JavaScript","readme":"# Cardboard Redactor\nAdd redactor to your cardboard project\n*Note:* You need to purchase your own license from redactor at http://imperavi.com/redactor/download/\n\n## Intallation Instructions\nAdd to your gemfile\n```\ngem 'cardboard_cms', github: 'smashingboxes/cardboard'\ngem 'cardboard_redactor', github: 'smashingboxes/cardboard_redactor'\n\n``` \n\n### Assets\nThen to your `cardboard.js`\n\n```javascript\n//= require cardboard/redactor\n//= require cardboard/redactor/highlight\n\nwindow.init_redactor = function(){\n  var csrf_token = $('meta[name=csrf-token]').attr('content');\n  var csrf_param = $('meta[name=csrf-param]').attr('content');\n  var params;\n  if (csrf_param !== undefined \u0026\u0026 csrf_token !== undefined) {\n    params = csrf_param + \"=\" + encodeURIComponent(csrf_token);\n  }\n    $('.redactor').redactor({\n      plugins: ['fullscreen']\n      // // Uncomment as need be (these routes are created for you)\n      // imageUpload: \"/cardboard/redactor/image?\" + params\n      // imageGetJson: '/cardboard/redactor/images'\n      // fileUpload: '/cardboard/redactor/file?' + params\n    });\n}\n\n$(document).ready( window.init_redactor );\n$(window).bind('page:change', window.init_redactor);\n\n```\n\n### Migrations\nIf you are using image or file upload you'll need to run the following\n```\nrake cardboard_redactor:install:migrations\nrake db:migrate\n```\n\ncopyright of SmashingBoxes.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmashingboxes%2Fcardboard_redactor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmashingboxes%2Fcardboard_redactor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmashingboxes%2Fcardboard_redactor/lists"}