我试图在我的rails应用程序中为CKEditor添加AutoLink插件,
我尝试按照以下步骤操作
1.在vendor / assets / javascripts / ckeditor中,我创建了一个文件夹plugins / autolink并保留了来自github
的plugin.js文件
2.然后将以下下面的代码添加到vendor / assets / javascripts / ckeditor / config.js文件
CKEDITOR.editorConfig = function( config ) {
...
config.extraPlugins = 'autolink';
...
};
但是当我重新启动服务器时,它显示以下错误消息
ActionController::RoutingError (No route matches [GET] "/assets/ckeditor/plugins/textmatch/plugin.js"):
actionpack (5.0.7) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app'
web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call'
web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch'
web-console (3.6.2) lib/web_console/middleware.rb:20:in `call'
actionpack (5.0.7) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
railties (5.0.7) lib/rails/rack/logger.rb:36:in `call_app'
railties (5.0.7) lib/rails/rack/logger.rb:24:in `block in call'
activesupport (5.0.7) lib/active_support/tagged_logging.rb:69:in `block in tagged'
activesupport (5.0.7) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (5.0.7) lib/active_support/tagged_logging.rb:69:in `tagged'
railties (5.0.7) lib/rails/rack/logger.rb:24:in `call'
sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:11:in `block in call'
activesupport (5.0.7) lib/active_support/logger_silence.rb:20:in `silence'
activesupport (5.0.7) lib/active_support/logger.rb:63:in `block (3 levels) in broadcast'
activesupport (5.0.7) lib/active_support/logger_silence.rb:20:in `silence'
activesupport (5.0.7) lib/active_support/logger.rb:61:in `block (2 levels) in broadcast'
sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:11:in `call'
actionpack (5.0.7) lib/action_dispatch/middleware/request_id.rb:24:in `call'
rack (2.0.5) lib/rack/method_override.rb:22:in `call'
rack (2.0.5) lib/rack/runtime.rb:22:in `call'
activesupport (5.0.7) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
actionpack (5.0.7) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.0.7) lib/action_dispatch/middleware/static.rb:136:in `call'
rack (2.0.5) lib/rack/sendfile.rb:111:in `call'
railties (5.0.7) lib/rails/engine.rb:522:in `call'
puma (3.12.0) lib/puma/configuration.rb:225:in `call'
puma (3.12.0) lib/puma/server.rb:658:in `handle_request'
puma (3.12.0) lib/puma/server.rb:472:in `process_client'
puma (3.12.0) lib/puma/server.rb:332:in `block in run'
puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread'
请告诉我我要去哪里错了。
答案 0 :(得分:0)
自动链接插件取决于Textmatch插件,该插件不存在。因此添加即可解决问题。