cancel
Showing results for 
Search instead for 
Did you mean: 

In-line edit with CK Editor instead of TinyMCE?

huima
Champ in-the-making
Champ in-the-making
Has anyone else yet replaced the TinyMCE in Alfresco with CK editor? I tried to check out Alfresco Forge and postings from here in the forums, but did not find any comments about it.

I saw in a wiki that Alfresco has fixed TinyMCE into a specific version, which unfortunately makes it quite hard to jump and modify / extend TinyMCE as the api does not describe whether a certain feature and methods were available in which feature. For our use we were thinking about implementing inline editing with CK editor, which has a great api and great examples on how to modify it.

I was just wondering whether anyone else has already done or tried to do it, and whether there are any gotchas to watch out.

For our case I'm starting to create our own 'in line edit' action and wizard, and integrate CK Editor into the edit view. We are modifying the editor to include only necessary styles and features and we are adding some custom functions to help content authors - and integrate adding image and link tools with the repository.

Would be interested to collaborate with others if people have similar needs.
3 REPLIES 3

wabson
Star Contributor
Star Contributor
Hi huima,

Peter Löfgren has contributed a extension for Alfresco Share that integrates CKEditor into standard create/edit forms in Share. You can find more information on it, including how to tailor it to your own requirements, on the project page, as well as on Peter's blog.

http://code.google.com/p/share-extras/wiki/CKEditorFormControl
http://loftux.com/2011/05/11/ckeditor-plugin-for-alfresco-share-forms/

Thanks,
Will.

rock_tu
Champ on-the-rise
Champ on-the-rise
At first,thank you for your idea,I have done that follow above link,but the ckeditor don't appear,Do you know why?thank you again!

pwdev
Champ in-the-making
Champ in-the-making
I apologize for kicking up an old thread, but I do have a question/observation on this one. The integration is seamless into 4.2.c, and the editor works great if you are using a non-web quick start site. When using a WQS site however, the CK editor displays when selecting Create new document but the TinyMCE still displays when selecting Inline Edit. Is there a config file somewhere in WQS that is forcing TinyMCE on Inline Edit?

The logs also show the following:
 14:04:47,684  ERROR [extensions.config.BaseConfigService] Input stream invalid - skipped for source: classpath:alfresco/form-config.xml' 
org.springframework.extensions.config.ConfigException: 07290001 Failed to add config to config service
   at org.springframework.extensions.config.xml.XMLConfigService.parse(XMLConfigService.java:261)
   at org.springframework.extensions.config.BaseConfigService.appendConfig(BaseConfigService.java:268)
   at org.springframework.extensions.config.ConfigBootstrap.initConfig(ConfigBootstrap.java:81)
   at org.springframework.extensions.config.xml.XMLConfigService.initConfig(XMLConfigService.java:138)
   at org.springframework.extensions.config.BaseConfigService.reset(BaseConfigService.java:145)
   at org.springframework.extensions.webscripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:260)
   at org.springframework.extensions.webscripts.PresentationContainer.reset(PresentationContainer.java:121)
   at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.reset(LocalWebScriptRuntimeContainer.java:122)
   at org.springframework.extensions.webscripts.AbstractRuntimeContainer.onApplicationEvent(AbstractRuntimeContainer.java:280)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
   at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
   at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
   at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
   at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
   at javax.servlet.GenericServlet.init(GenericServlet.java:160)
   at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
   at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.extensions.config.ConfigException: 07290000 Reading the forms config via the generic interfaces is not supported
   at org.alfresco.web.config.forms.FormsConfigElement.getChildren(FormsConfigElement.java:63)
   at org.springframework.extensions.config.element.GenericConfigElement.combine(GenericConfigElement.java:90)
   at org.springframework.extensions.config.BaseConfigService.addConfigSection(BaseConfigService.java:365)
   at org.springframework.extensions.config.BaseConfigService.addConfigSection(BaseConfigService.java:324)
   at org.springframework.extensions.config.xml.XMLConfigService.parse(XMLConfigService.java:255)
   … 35 more



<strong>****update****</strong>the issue in WQS is due to content type; WQS content types need to be added to the editor config file and it works perfectly