{"action":"opened","issue":{"url":"https://api.github.com/repos/2amigos/yii2-ckeditor-widget/issues/73","repository_url":"https://api.github.com/repos/2amigos/yii2-ckeditor-widget","labels_url":"https://api.github.com/repos/2amigos/yii2-ckeditor-widget/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/2amigos/yii2-ckeditor-widget/issues/73/comments","events_url":"https://api.github.com/repos/2amigos/yii2-ckeditor-widget/issues/73/events","html_url":"https://github.com/2amigos/yii2-ckeditor-widget/issues/73","id":168258084,"number":73,"title":"Add CDN Support and improve README","user":{"login":"WadeShuler","id":9557392,"avatar_url":"https://avatars.githubusercontent.com/u/9557392?v=3","gravatar_id":"","url":"https://api.github.com/users/WadeShuler","html_url":"https://github.com/WadeShuler","followers_url":"https://api.github.com/users/WadeShuler/followers","following_url":"https://api.github.com/users/WadeShuler/following{/other_user}","gists_url":"https://api.github.com/users/WadeShuler/gists{/gist_id}","starred_url":"https://api.github.com/users/WadeShuler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WadeShuler/subscriptions","organizations_url":"https://api.github.com/users/WadeShuler/orgs","repos_url":"https://api.github.com/users/WadeShuler/repos","events_url":"https://api.github.com/users/WadeShuler/events{/privacy}","received_events_url":"https://api.github.com/users/WadeShuler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-29T06:16:43Z","updated_at":"2016-07-29T06:16:43Z","closed_at":null,"body":"This projects seems to be partially abandoned. However, it's worth a shot.\r\n\r\nThere should be a CDN option. Whether you have to specify the version number in the config, or specify the CDN root URL that includes the version number.\r\n\r\nYou could do: https://cdnjs.com/libraries/ckeditor\r\nThen have them also specify the version: 4.5.10\r\n\r\nor\r\n\r\nJust have them specify the CDN root URL: https://cdnjs.com/libraries/ckeditor/4.5.10\r\n\r\n---\r\n\r\nFor the non-CDN use (using assets as it currently does), a \"use CDN for smilies\" option would be nice. In the Advanced template, if you have the editor in the backend for admin use, the frontend uses the backend's `assets` directory because it stores it's current path (backend) for the smiley in the db. Revealing the path to your admin area is bad security practice. While not everyone uses the advanced for this, most DO use the `backend` for admin purposes.\r\n\r\n---\r\n\r\nAdditionally, some basic usage help should be added to the README. It took a bit of research, and trial and error, to get this set up. You provide 0 setup other than simply how to install the plugin.\r\n\r\nHere is my current widget:\r\n\r\n        $ckToolbarTemplate = [\r\n        ['name' => 'document', 'groups' => ['mode', 'document', 'doctools']],\r\n        ['name' => 'clipboard', 'groups' => ['clipboard', 'undo']],\r\n        ['name' => 'editing', 'groups' => [ 'find', 'selection', 'spellchecker', 'editing']],\r\n        ['name' => 'basicstyles', 'groups' => ['basicstyles', 'colors','cleanup']],\r\n        '/',\r\n        ['name' => 'paragraph', 'groups' => [ 'list', 'indent', 'blocks', 'align' ]],\r\n        ['name' => 'links'],\r\n        ['name' => 'insert'],\r\n        '/',\r\n        ['name' => 'styles'],\r\n        ['name' => 'colors'],\r\n        ['name' => 'tools'],\r\n        ['name' => 'others'],\r\n    ];\r\n\r\n    $ckRemoveButtons = 'NewPage,Flash,Iframe,SpecialChar';\r\n\r\n    <?= $form->field($model, 'text')->widget(CKEditor::className(), [\r\n        'options' => ['rows' => 6],\r\n        'preset' => 'custom',\r\n        'clientOptions' => [\r\n            'toolbarGroups' => $ckToolbarTemplate,\r\n            'removeButtons' => $ckRemoveButtons,\r\n            'smiley_path' => '//cdnjs.cloudflare.com/ajax/libs/ckeditor/4.5.10/plugins/smiley/images/'\r\n        ]\r\n    ]) ?>\r\n\r\nYou didn't show how to change the preset (basic, standard, full, custom), or that the `clientOptions` even exists, how to modify the toolbar items, handle smileys, or image/file uploads.\r\n\r\nI still wan't to remove my large array and make it a config file to load, but I don't know if it is possible with your extension. For `preset`, I saw in the code that it includes the corresponding file. ie: `basic` includes the `basic.php` config. However, if preset is custom, it sets it to null."}}
{"actor":{"display_login":"WadeShuler"}}