Re: [th-users] CkEditorPlugin configuration
Following up in case someone else runs into this. The problem was that I previously skipped the deploy step when installing Trac. The deploycommand creates the common and site folders, among other things. Here are my installation and configuration steps. This is known to work with Trac .12. Always consult the installation instructions for Trac and TracCkeditor plugin prior to and during installation to ensure you understand each command and step. *Trac* http://trac.edgewall.org/wiki/TracInstall (or http://trac.edgewall.org/wiki/0.12/TracInstall if installing the prior version) *CkeditorPlugin* http://trac-hacks.org/wiki/CkEditorPlugin *My steps* (install Trac per above) ... trac-admin /path/to/trac/ initenv chown -R apache:apache /path/to/trac/ trac-admin /path/to/trac deploy /path/to/trac/deploy trac-admin /path/to/trac permission add admin TRAC_ADMIN htpasswd -c trac.htpasswd admin vi /etc/httpd/conf.d/trac.conf # The Location is the part after the host (http://example.comLocation) that # you want to serve the Trac site Location /trac SetHandler mod_python PythonHandler trac.web.modpython_frontend # /path/to/svn/trac is the folder you gave to trac-admin initenv earlier PythonOption TracEnv /path/to/trac # /trac is the same as the Location above PythonOption TracUriRoot /trac # /tmp should be some writable temporary directory SetEnv PYTHON_EGG_CACHE /tmp # trac can be any string, but must be the same for all # Trac instances on the same Apache install PythonInterpreter trac /Location Location /trac/login AuthType Basic AuthName Trac User AuthUserFile /path/to/trac/conf/trac.htpasswd Require valid-user /Location # note - you may get away with using the standard easy_install program. I needed 2.6 for my environment. easy_install-2.6 http://trac-hacks.org/svn/ckeditorplugin/trunk [linuxbox]# easy_install-2.6 http://trac-hacks.org/svn/ckeditorplugin/trunk Downloading http://trac-hacks.org/svn/ckeditorplugin/trunk Doing subversion checkout from http://trac-hacks.org/svn/ckeditorplugin/trunk to /tmp/easy_install-uvp5bO/trunk Processing trunk Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-uvp5bO/trunk/egg-dist-tmp-HXJTbO zip_safe flag not set; analyzing archive contents... CKIntegration 1.1dev is already the active version in easy-install.pth Installed /usr/lib/python2.6/site-packages/CKIntegration-1.1dev-py2.6.egg Processing dependencies for CKIntegration==1.1dev Finished processing dependencies for CKIntegration==1.1dev [linuxbox]# mkdir /path/to/trac/htdocs/js chown -R apache:apache /path/to/trac/ svn checkout http://svn.ckeditor.com/CKEditor/releases/stable /www/virtualhosts/trac/htdocs/js/ckeditor # downloading files... Checked out revision 7632. vi /path/to/trac/conf/trac.ini {ADD} [ckeditor] code_styles = php, js, html, sql, default, xml editor_type = full_integration editor_source = site/js/ckeditor/ckeditor.js {:wq SAVE AND QUIT} service httpd reload Log into Trac and create ticket. The standard Wiki toolbar appears on top of the new CKEditor edit box. Copying and pasting text from Word/HTML appears to work OK for the most part. Thanks to the developers for this handy plugin. Hope these notes are helpful. ___ th-users mailing list th-users@lists.trac-hacks.org https://lists.trac-hacks.org/mailman/listinfo/th-users
Re: [th-users] CkEditorPlugin configuration
Thanks Adria, I updated Documentation in the Wiki under http://trac-hacks.org/wiki/CkEditorPlugin#Options (just copied python-doc into wiki) Best reagrds, Franz On Monday, October 8, 2012 7:32:18 PM UTC+2, Adria Stembridge wrote: skipped ___ th-users mailing list th-users@lists.trac-hacks.org https://lists.trac-hacks.org/mailman/listinfo/th-users
Re: [th-users] CkEditorPlugin configuration
Hello Adrya, thanks for showing interest in the CkEditorPlugin. As it is written in the Wiki-section Configuration (http://trac-hacks.org/wiki/CkEditorPlugin#Configuration): editor_source: Path to CKEditor 3.6.x javascript source. So in your case the editor_source path should be /www/virtualhosts/trac/htdocs/js/ckeditor/ckeditor.js Hope this helps, Franz Am 04.10.2012 22:07, schrieb Adrya Stembridge: Hello, I am very excited to find that a CkEditor plugin exists for Trac. I followed instructions on your helpful wiki page ( http://trac-hacks.org/wiki/CkEditorPlugin ), however after enabling the plugin in *trac.ini* and reloading the httpd server, I still see the old textbox. I confirmed that the Ckeditor plugin shows enabled in the Admin - Plugins section. The full path to the checked-out copy of ckeditor is: /www/virtualhosts/trac/htdocs/js/ckeditor The documentation includes a sample config: Sample configuration (default values shown): [ckeditor] code_styles= cpp, csharp, java, js, python, sql, default, xml editor_type= full_integration editor_source= sites/js/ckeditor/ckeditor.js I modified the code_styles slightly, but left the other two options the same. Is the problem that the editor_source is not configured correctly? The folder sites looks unfamilar, but I'm unsure if that's the way it needs to be for my installation. Thanks for any assistance you can provide. -Adrya ___ th-users mailing list th-users@lists.trac-hacks.org https://lists.trac-hacks.org/mailman/listinfo/th-users