Closed zorg-iris closed 11 years ago
so i try with my own "Ckeditor" in your bundle, and youtube is not working but google map work well. i will make more teste and come back.
@zorg-iris The bundle is shipped with the CKEditor full edition. According to your code (ie path: "/bundles/ivoryckeditor/plugins/youtube"
), this is wrong as the youtube plugin is not part of the full edition. If you want to use the youtube plugin, you need to download it & make it accessible in the web
directory as explain here & then rely on his specific location in the configuration.
@egeloen thank
well i deed not explaine very well, it download and put in this path: "/bundles/ivoryckeditor/plugins/" to make same test only this is why i path there. so now i deed change all to get the same error :
in config.yml
....
default_config: neoTest
plugins:
oembed:
path: "/bundles/ckeditor/plugins/oembed" # note the path
filename: "plugin.js"
neoTest:
extraPlugins: 'oembed'
toolbar: 'neoToolbar_1' # full - standard - basic
filebrowserBrowseRoute: 'elfinder'
filebrowserBrowseRouteParameters: []
.....
toolbars:
configs:
neoToolbar_1:
- ['oembed', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo', '-','Link', 'Unlink', 'Anchor']
- ['Image', 'Table', 'HorizontalRule', 'SpecialChar' ,'-' ,'Maximize','Source' ]
- "/"
- ['Bold', 'Italic', 'Strike', '-', 'RemoveFormat' ,'-' ,'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote']
- "/"
- [ "Maximize", 'Styles', 'Format', 'About']
this what i get : in console log firefox
"NetworkError: 404 Not Found - http://www.neo.com.dev/bundles/ckeditor/plugins/oembed/?t=D6IEplugin.js" ?t=D6IEplugin.js uncaught exception: [CKEDITOR.resourceManager.load] Resource name "oembed" was not found at "/bundles/ckeditor/plugins/oembed?t=D6IEplugin.js". ...new CKEDITOR.dom.element(c):null},getSelectedText:function(){var a=this._.cache;...
well i just reset all (clear cache, and assetic dump) and it work well.
thank for your help
@zorg-iris I have reproduced the issue by omitting the trailing /
on the plugin path. You must specify it otherwise the browser will try to find a file which does not exist...
now i try to put more plugin and i have probleme? if i use one plugin it work well if i include more then error? i try lake this :
extraPlugins: ['oembed','xdsoft_translater'] is't worg?
The extraPlugins is a simple string which contain all plugins separated by coma: extraPlugins: "oembed,xdsoft_translater"
.
hi again, i just try to setup sonata media with CKEditorSonataMediaBundle on synfony 2,5. and all work well in standart bar and even with my bar. but whem i try to setup with 'extraPlugin' them start probleme not with all, wordcount work well. Oembed not working ?
ivory_ck_editor: default_config: default plugins: oembed: path: "/bundles/ckeditor/plugins/oembed/" filename: "plugin.js" wordcount: path: "/bundles/ckeditor/plugins/wordcount/" filename: "plugin.js" configs: default: extraPlugins: 'oembed' toolbar: "neoToolbar_1" filebrowserBrowseRoute: admin_sonata_media_media_browser filebrowserImageBrowseRoute: admin_sonata_media_media_browser filebrowserImageBrowseRouteParameters: provider: sonata.media.provider.image filebrowserUploadRoute: admin_sonata_media_media_upload filebrowserUploadRouteParameters: provider: sonata.media.provider.file filebrowserImageUploadRoute: admin_sonata_media_media_upload filebrowserImageUploadRouteParameters: provider: sonata.media.provider.image context: my-context # Optional, to upload in a custom context toolbars: configs: neoToolbar_1: - ['Source', '-', 'NewPage', 'Preview', 'Print', '-', 'Templates'] - ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] - ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'] - ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'SelectField', 'Button', 'ImageButton', 'HiddenField'] - '/' - ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] - ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl'] - ['Link', 'Unlink', 'Anchor'] - [ 'oembed', 'wordcount', 'Image', 'FLash', 'Table', 'HorizontalRule', 'SpecialChar', 'Smiley', 'PageBreak', 'Iframe'] - '/' - ['Styles', 'Format', 'Font', 'FontSize', 'TextColor', 'BGColor'] - ['Maximize', 'ShowBlocks'] - ['About']
If it das not work : try to add this plugin !!
widget: path: "/bundles/ckeditor/plugins/widget/" filename: "plugin.js" lineutils: path: "/bundles/ckeditor/plugins/lineutils/" filename: "plugin.js"
hi i try to integrate plugin (youtube, google map, ...) but i have error all the time !
what cam it be? can you help? thank.