我使用CKEditor并想使用 我知道我可以使用表单构建器重新定义配置 p>
但我想为每个表单做一次。 哪种方法最好? p>
div> uploadimage code>插件。 我需要在config.yml中指定
uploadUrl code>。 如何在这里放置路由而不是直接url? p>
ivory_ck_editor:
default_config:my_config
configs:
my_config:
extraPlugins:“lineutils,widget, notificationaggregator,uploadwidget,notification,uploadimage,wordcount“
uploadUrl:'/ admin / upload'
code> pre>
$ builder-> add('field','ckeditor',array(
'config'=> array('uploadUrl'=> ...),
));
code> pre>
I use CKEditor and want to use uploadimage
plugin. I need to specify uploadUrl
in config.yml. How can I put here a route instead of direct url?
ivory_ck_editor:
default_config: my_config
configs:
my_config:
extraPlugins: "lineutils,widget,notificationaggregator,uploadwidget,notification,uploadimage,wordcount"
uploadUrl: '/admin/upload'
I know I can redefine config with form builder
$builder->add('field', 'ckeditor', array(
'config' => array('uploadUrl' => ...),
));
But I want to do it once for every form. Which is the best way?