Diem plugins syndication

dmCkEditorPlugin

Adds a CkEditor WYSIWYG to your site

By default Diem brings you a flavored Markdown editor.
But sometimes, the customer wants a WYSIWYG...

So this plugin integrates the best open source editor: CkEditor.

Currently only admin forms can receive ckEditors.
Later, this plugin will be updated with a front ckEditorWidget.

Installation

  • In a console, from your project root dir, run:
git clone git://github.com/ornicar/dmCkEditorPlugin.git plugins/dmCkEditorPlugin  
  • In config/ProjectConfiguration.class.php, add dmCkEditorPlugin to the list of enabled plugins:
class ProjectConfiguration extends dmProjectConfiguration
{  
  public function setup()  
  {  
    parent::setup();  
 
    $this->enablePlugins(array(  
      // your enabled plugins  
      'dmCkEditorPlugin'  
    ));  
  • In a console, from your project root dir, run:
php symfony dm:setup  

CkEditor on admin form

As you would do for a markdown field, precise in the schema.yml that the field is managed by ckeditor:

Post:  
  columns:  
    body:    { type: clob, extra: ckeditor }  

CkEditor as a front widget

The plugin installs a new widget, available in front Add menu: ckEditor.
As for the default Text widget, you can drag&drop pages and media inside, thanks to Robert Gruendler and Vincent Jousse.

Configure ckeditor

You can pass options to the javascript editor.
config/dm/config.yml

all:  
  
  ckeditor:  
  
    config:  
  
      # change the buttons in the toobar  
      toolbar:  
        - ['Format', 'Bold', 'Italic','Strike','Blockquote', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink']  
        - ['PasteText','PasteFromWord']  
        - ['Undo','Redo']  
        - ['Image','HorizontalRule','SpecialChar']  
        
      # use a custom javascript config file  
      customConfig: ''  

To configure CkEditor for the whole project, use config/dm/config.yml.
For the front application only, apps/front/config/dm/config.yml.
For the admin application only, apps/admin/config/dm/config.yml.

  • 4levelsJanuary 18, 2010 10:02 PM

    This is great!
    I guess we're all dying to see the front widget released!

    Keep up the great work!

  • ZernaoFebruary 12, 2010 2:05 AM

    Did you plan an approximative release date for the front widget ? I know that there is a lot of work to do on Diem, but an information would be great.

  • alfonsoMarch 5, 2010 10:08 AM

    Hi guys.

    Simple question. Correct me if I'm wrong because I'm still learning git but if your project is in a git repo, you can add the plugin as follows:

    git submodule add git://github.com/ornicar/dmCkEditorPlugin.git plugins/dmCkEditorPlugin

    I think that is better than cloning if your git version supports submodules. Is that correct?

  • ThibaultMarch 5, 2010 3:30 PM

    @Zernao I can't give you a date, but many people need it and we're working on it.

    @alfonso You're right, using submodules is great but it will only work if your project is a git repo. By the way I'll update plugin docs to precise it.

  • Thibault DMarch 9, 2010 3:48 AM

    The front widget is now available! And you can drag&drop pages and medias inside.

  • Yesssss !March 10, 2010 1:08 AM

    I will try it now

  • ZernaoMarch 10, 2010 1:31 AM

    Many thanks to Robert and Vincent. That's really great.
    Question: How to get ckeditor in Front for doctrine extra ckeditor behavior ? When outputing std $form, no ckeditor is available.

  • ZernaoMarch 10, 2010 1:34 AM

    With firebug on ckeditor fields: <textarea id="form_description_body" class="dm_ckeditor {&quot;language&quot;:&quot;en&quot;,&quot;toolbar&quot;:[[&quot;Format&quot;,&quot;Bold&quot;,&quot;Italic&quot;,&quot;Strike&quot;,&quot;Blockquote&quot;,&quot;-&quot;,&quot;NumberedList&quot;,&quot;BulletedList&quot;,&quot;-&quot;,&quot;Link&quot;,&quot;Unlink&quot;],[&quot;PasteText&quot;,&quot;PasteFromWord&quot;],[&quot;Undo&quot;,&quot;Redo&quot;],[&quot;Image&quot;,&quot;HorizontalRule&quot;,&quot;SpecialChar&quot;]],&quot;resize_enabled&quot;:false,&quot;extraPlugins&quot;:&quot;diem&quot;,&quot;customConfig&quot;:&quot;&quot;}" name="rfp_form[description_body]" cols="30" rows="4"></textarea>

  • TammySeincDecember 31, 2016 5:26 AM

    [url=http://buyanafranil.us/]buy anafranil[/url] [url=http://diclofenacsodium.site/]diclofenac sodium 75mg ec tablets[/url] [url=http://amitriptyline-hydrochloride.trade/]amitriptyline hydrochloride[/url] [url=http://cafergot8.top/]cafergot[/url] [url=http://synthroid-generic.trade/]synthroid[/url] [url=http://generic-cialis.party/]generic cialis[/url] [url=http://chlomid.eu/]clomid[/url] [url=http://wellbutrinxl.link/]wellbutrin[/url] [url=http://buy-levaquin.space/]antibiotic levaquin[/url]

  • PhyllisMigJanuary 1, 2017 5:56 PM

    [url=http://prednisolone10.top/]prednisolone[/url] [url=http://buymetformin15.top/]metformin[/url] [url=http://costofcymbalta.site/]cymbalta[/url] [url=http://buyzithromax-4.top/]zithromax[/url]

  • MichaelHahJune 5, 2017 5:45 PM

    wh0cd547513 [url=http://buyabilify17.gdn/]abilify[/url] [url=http://buycephalexin500.top/]cephalexin 500mg[/url] [url=http://clindamycin-247.gdn/]generic clindamycin[/url] [url=http://buydoxycycline0.top/]buy doxycycline[/url] [url=http://buylasix247.top/]lasix[/url] [url=http://prednisolone2016.top/]buy prednisolone no prescription[/url]

  • AlfredterJuly 18, 2017 2:42 AM

    wh0cd613541 [url=http://bentylotc.us.com/]order bentyl[/url] [url=http://abilify365.us.com/]abilify[/url] [url=http://augmentin.us.com/]Augmentin[/url] [url=http://ivermectin.us.com/]stromectol[/url]

  • KennethsundaJuly 19, 2017 1:27 PM

    wh0cd629768 [url=http://femaleviagra4you.us.org/]lovegra[/url] [url=http://bentylantispasmodic.us.com/]bentyl antispasmodic[/url] [url=http://buyvardenafil.us.com/]Cheap Vardenafil[/url] [url=http://bupropionsr.us.com/]bupropion sr[/url] [url=http://cialis20mg24.us.org/]cialis 20 mg[/url]

  • AlfredterJuly 25, 2017 9:38 PM

    wh0cd972368 [url=http://buyzithromax.us.org/]zithromax online[/url] [url=http://genericlasix.us.com/]purchase lasix[/url] [url=http://yasminbirthcontrol.us.com/]yasmin birth control[/url]

  • CharlesTugAugust 5, 2017 2:11 AM

    wh0cd877926 [url=http://metformin500mg.us.com/]buy cheap metformin online[/url]

  • MikehantyAugust 12, 2017 3:48 AM

    [url=https://essaywritingservices.us.com/]EssayWritingServices[/url]

  • KennethsundaAugust 22, 2017 5:15 AM

    wh0cd32538 [url=http://cialisforsaleonline.us.com/]home page[/url] [url=http://propranololnorx.us.com/]purchase propranolol[/url]

  • AlfredterAugust 24, 2017 11:24 AM

    wh0cd518237 [url=http://celebrex200mg.us.org/]buy celebrex online[/url] [url=http://diclofenac50mg.us.org/]diclofenac 50 mg[/url]

  • CharlesTugAugust 24, 2017 12:53 PM

    wh0cd122240 [url=http://augmentin875mg.us.org/]augmentin 875 mg[/url]

  • BennyRalAugust 24, 2017 4:50 PM

    wh0cd371283 [url=http://augmentin875mg.us.org/]augmentin 875 mg[/url] [url=http://inderal247.us.com/]BUY INDERAL[/url]

  • BennyRalAugust 26, 2017 9:08 AM

    wh0cd710037 [url=http://femaleviagra.us.org/]female viagra[/url] [url=http://cytotec247.us.com/]misoprostol prices[/url]

  • CharlesTugSeptember 2, 2017 1:24 PM

    wh0cd445939 [url=http://buyretina.shop/]buy retin a[/url] [url=http://buyyasmin.shop/]buy yasmin[/url] [url=http://elimite.directory/]elimite[/url]

  • MichaelHahSeptember 8, 2017 12:35 AM

    wh0cd3458410 [url=http://acyclovir.us.com/]buy zovirax[/url]

  • CharlesTugSeptember 9, 2017 12:47 PM

    wh0cd4193130 [url=http://tadalafil.fail/]tadalafil[/url] [url=http://propecia.news/]propecia[/url] [url=http://genericviagra.reisen/]viagra[/url]

  • MichaelHahSeptember 10, 2017 2:40 AM

    wh0cd6397351 [url=http://genericzoloft.pro/]zoloft[/url]

  • CharlesTugSeptember 13, 2017 2:36 PM

    wh0cd8234213 [url=http://trazodone100mg.pro/]oder trazadone for sleeping[/url] [url=http://medrol.work/]medrol pak 4mg[/url] [url=http://buydiflucan.store/]diflucan[/url]

  • JohnhantySeptember 16, 2017 6:43 AM

    [url=https://paydayloans.us.org/]best payday loans online[/url]

  • AaronkicSeptember 17, 2017 12:44 PM

    [url=http://hydrochlorothiazide12.us.org/]Hydrochlorothiazide[/url] [url=http://bupropionsr150mg.us.org/]Bupropion[/url]

  • JamesgandySeptember 23, 2017 6:43 PM

    [url=https://bestpaydayloansonline.us.com/]online payday loans[/url] [url=https://onlineloans.us.com/]payday loans online[/url]

  • JamesgandySeptember 24, 2017 10:09 AM

    [url=https://onlineloans.us.com/]payday loan online[/url] [url=https://writemyessay.us.com/]write my essay[/url]

  • BillyHakSeptember 25, 2017 3:47 PM

    [url=http://viagra247.us.com/]viagra online[/url] [url=http://cephalexin250mg.us.org/]citation[/url] [url=http://doxycycline100mg.us.org/]doxycycline 100 mg[/url]

  • BillyHakSeptember 27, 2017 12:22 AM

    [url=http://lisinopril20mg.us.org/]buy lisinopril online[/url] <a hrefs="http://lisinopril20mg.us.org/">lisinopril</a> http://lisinopril20mg.us.org/ [url=http://cheapvardenafil365.us.com/]Vardenafil[/url] <a hrefs="http://cheapvardenafil365.us.com/">vardenafil</a> http://cheapvardenafil365.us.com/ [url=http://cephalexin250mg.us.org/]cephalexin pills[/url] <a hrefs="http://cephalexin250mg.us.org/">buy cephalexin</a> http://cephalexin250mg.us.org/

  • StewartUlcerSeptember 28, 2017 6:44 AM

    wh0cd112997 [url=http://fluoxetine20mg.us.org/]buy fluoxetine[/url] <a hrefs="http://fluoxetine20mg.us.org/">fluoxetine 40 mg</a> http://fluoxetine20mg.us.org/ [url=http://doxycycline100mg.us.org/]doxycycline[/url] <a hrefs="http://doxycycline100mg.us.org/">buy doxycycline</a> http://doxycycline100mg.us.org/

  • BrettdewOctober 1, 2017 7:36 PM

    wh0cd688306 [url=http://viagraonline.us.com/]viagra[/url]

  • Loans For Bad Credit October 1, 2017 10:21 PM

    payday loan <a href=https://paydayloansonline.us.com/>legitimate payday loans online no credit check</a> payday loans online no credit check [url=https://paydayloansonline.us.com/]faxless payday loans online[/url]

  • Assignment Operators October 3, 2017 1:08 AM

    buy an essay paper <a href=https://essaywritingservices.us.com>essay writing service</a> writing essays services [url=https://essaywritingservices.us.com]as explained here[/url]

  • AlfredterOctober 3, 2017 9:08 AM

    wh0cd65624 [url=http://cafergot777.us.com/]cafergot[/url] [url=http://propranolol.work/]propranolol[/url] <a hrefs="http://propranolol.work/">propranolol</a> http://propranolol.work/ [url=http://nolvadex2017.us.org/]info[/url] [url=http://buyampicillin.store/]ampicillin[/url] <a hrefs="http://buyampicillin.store/">where can i buy ampicillin</a> http://buyampicillin.store/

  • Essay Writing Tip October 6, 2017 3:51 AM

    buy essay online <a href=https://essayonline.us.com>write essays online</a> online essays [url=https://essayonline.us.com]buy essay papers online[/url]

  • JamesgandyOctober 9, 2017 10:36 AM

    helpful resources <a href=https://onlineloans.us.com/>Learn More</a> https://onlineloans.us.com [url=https://onlineloans.us.com/]payday loans online[/url]

  • Direct Lender Loans October 18, 2017 1:22 AM

    payday loan online <a href=https://onlineloans.us.com/>money loan</a> Recommended Site [url=https://onlineloans.us.com/]online payday loans[/url]

Add a comment

Thanks for your comment

Impossible to fetch issues for this plugin.
Impossible to get this plugin changelog.

dmCkEditorPlugin, created on January 7, 2010 by Thibault D, used by 3963 projects

Fork Diem on GitHub