2017-08-04 83 views
0

我是Symfony的初學者,我正在嘗試爲索納塔新聞套裝設置CKEditor。索納塔新聞套裝 - 添加CKEditor

我看到處處都是(甚至在德國論壇上,而我不會說德語!),但我無法在任何地方找到任何答案。

有沒有人有線索或解決我的問題?

謝謝大家。

路易

回答

2

我會建議你使用IvoryCKEditorBundle

下載軟件包:

composer require egeloen/ckeditor-bundle 

註冊的包,然後更新您的應用程序/ AppKernel.php

class AppKernel extends Kernel 
{ 
    public function registerBundles() 
    { 
     $bundles = array(
      new Ivory\CKEditorBundle\IvoryCKEditorBundle(), 
      // ... 
     ); 

     // ... 
    } 
} 

如果您使用的是Symfony < = 2.8:

php app/console ckeditor:install 
php app/console assets:install web 

如果您使用的Symfony> = 3.0:

php bin/console ckeditor:install 
php bin/console assets:install web 

然後usage