|
To allow the cut and paste functions with Firefox, you must add:
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess"); user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess"); user_pref("capability.policy.allowclipboard.sites", "http://localhost:8080"); user_pref("capability.policy.policynames", "allowclipboard"); in your prefs.js file (located on XP on: C:\Documents and Settings\UserName\Application Data\Mozilla\Firefox\Profiles\x1ztizwo.default\prefs.js Check: http://www.interactivetools.com/iforum/Open_Source_C3/htmlArea_v3.0_-_Beta_Release_F14/Cut_and_Paste_in_Firefox_P34053/ or http://www.interactivetools.com/forum/gforum.cgi?post=24930 For more information side comment:
I really believe that the free online editors proposed with jahia are the great weakness of the product. I'm really not sure that HTML Area will be the appropriate solution. I feel much more enthousiast with this one http://xstandard.com/page.asp?p=A4372B00-8D7F-4166-977C-64E5C4E3708E&s=E638AEB0-ADC1-448B-9CE5-FB8AAE1FE55B while I'm not sure to understand their business model, since the freeware version is already really powerfull Yes, it integration is probably more difficult, but enforcing XHTML and use of CSS styles is the only way to achieve a clean site (homogeneous and manageable over time). Mozilla version is planned, ActiveX is probably acceptable for most customers. Hello,
Several points here: 1) Jahia provides a mechanism to integrate and run simultaneously several WYSIWYG HTML Editors. You may then easily develop a new "plug-in" for the editor which is the most convenient for your custom need. This is not complex to do. Please check how the other plug-ins were developed. There are dozens of WYSIWYG Editors available. Please chech a (nearly) complete list here: http://www.bris.ac.uk/is/projects/cms/ttw/ttw.html Each of them has specific requirements (run only with IE, with Mozilla; applet based, javascript based; commercial, freeware, open source; etc) 2) For the default Jahia editor, we are now looking for one which is a) open source as we will need to modify the code in order to integrate the Jahia sitemap (to directly select an internal link) or to link to our WebDAV file repository (to reuse uploaded images). b) we try to only package components with the full source code available c) we expressely need an editor which runs smoothly with nearly all the browsers, and at least IE and Mozilla. Several of our customers are running some Solaris, Linux, Unix or Apple workstations. -> with such conditions only a few editors are available (and we do not want to recreate a nth time the wheel on our side). One is HTMLArea. Another may be: http://www.fckeditor.net (but under LGPL and we try to avoid (L)GPL code within Jahia due to our collaborative source license especially if we need to make dynamic link to our sitemap engine or to WebDAV). The last one being Kupu (http://kupu.oscom.org/). All of them are approximatevely at the same level of functional features. 3) XStandard Light is free software (not open source software). Moreover the free version is limited in term of features: "The Lite version of XStandard is freeware and can be used in commercial applications. Features not supported in the Lite version include the ability to customize the toolbar, Word clean-up, and features dependent on Web Services (ex: spell checker, communication with third-party content, file drag & drop). " Else other unexpensive commercial editor may also include: http://editor.hardcoreinternet.co.uk/ But as said nothing prevent you to integrate it(them) with Jahia. However, regarding the criterias I mentionned in the previous point, this will probably not become the de facto default Jahia WYSIWYG editor. 4) We know that the currently available free and open source WYSIWYG HTML Editors are a weakness. Quite a shame that the open source community has not regrouped all the effort on top of one great WYSIWYG editor at the place of reinventing the wheel several times. But nothing prevent you to help one project in order to fill the gap with the commercial ones ;-)) Cheers, Stéphane Just a few quick notes :
- XStandard is based on ActiveX. With Windows XP SP2 running ActiveX controls is not possible without code signing, and this will be a major problem for most installations. This is one of the reasons why we are moving away from an ActiveX solution. - Jahia should indeed be improved to be able to work fully in XHTML and CSS modes, but again this shouldn't be the sole responsability of the HTML editor. The server should also be able to check the input, so that the editor may be pluggeable. We have various ideas about this. Thanks for all your comments
Yes, the lack of word cleanup in the free version of xstandard is an issue. Yes, XStandard could be one of the possible editors instead of the default one (I will look forward doing the integration to gie it a real try) Your criteria are mostly sensible, but compromise could be needed to avoid this issue being a strong handicap for jahia. But I guess you are aware of this also. I still feel that having a limited drop-down list of styles is a far better option to propose to end users than to offer all the msord typical free formatting icons that most editor propose. Last, allowing the input of code through an editor, like javascript, is pretty useful and should work at least for the sourcecode editor. [tested on build: 5992]Resize is now fine and loading seems to now be acceptable. However the Javascript seems to have some problems to load under IE 6.0 SP2 (no problem under Firefox 1.0PR).
Figured an issue with utf-8.
More debug msg can be given in IE options. No problem of resize or delay with build 5998, but still a problem with IE 6 SP2 with Full screen option (404 exception raised - works with Firefox) and undo and redo icons (do not work - only undo works under Firefox). 1006547 [http-8080-Processor5] INFO - Served updatecontainer engine for user root from [127.0.0.1] in [62ms] 1008938 [http-8080-Processor5] ERROR - 404 error - page [-1] could not be found in the database or is no longer accessible. org.jahia.exceptions.JahiaPageNotFoundException: 404 Not found - Page:-1, 404 error - page [-1] could not be found in the database or is no longer accessible. at org.jahia.services.pages.JahiaPageBaseService.lookupContentPage(JahiaPageBaseService.java:1603) at org.jahia.services.pages.JahiaPageBaseService.lookupContentPage(JahiaPageBaseService.java:1551) at org.jahia.params.ParamBean.<init>(ParamBean.java:491) at org.jahia.bin.Jahia.service(Jahia.java:814) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:595) 1008953 [http-8080-Processor5] ERROR - ERROR : 404 Not found - Page:-1, 404 error - page [-1] could not be found in the database or is no longer accessible. org.jahia.exceptions.JahiaPageNotFoundException: 404 Not found - Page:-1, 404 error - page [-1] could not be found in the database or is no longer accessible. at org.jahia.services.pages.JahiaPageBaseService.lookupContentPage(JahiaPageBaseService.java:1603) at org.jahia.services.pages.JahiaPageBaseService.lookupContentPage(JahiaPageBaseService.java:1551) at org.jahia.params.ParamBean.<init>(ParamBean.java:491) at org.jahia.bin.Jahia.service(Jahia.java:814) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:595) 1008969 [http-8080-Processor5] INFO - abortConnection : org.jahia.services.database.ConnectionDispenser$ConnectionInfo@16a2c7b Spoken too fast...
There are now some problems with Firefox. The Link icon or the Image icon does not allow to input fields any more (so not possible to create a HREF, an emailto or an IMG tag). Else do we want to enable the context menu and the table shortcut bar auch as in: http://www.dynarch.com/demos/htmlarea/examples/context-menu.html Should be something like: <script type="text/javascript"> HTMLArea.loadPlugin("ContextMenu"); HTMLArea.loadPlugin("TableOperations"); function initDocument() { var editor = new HTMLArea("editor"); editor.registerPlugin(ContextMenu); editor.registerPlugin(TableOperations); editor.generate(); } </script> Or is it not working (or only partially working?) Slight change that allow cut/copy/past within firefox with CTRL+X,CTRL+C,CTRL+V shorcuts without the need to configure firefox user.js permission file ( still required if we want to use the relared buttons in the toolbar menu ). Need test.
Certainly some integration improvements to do... but let's wait for the final release of HTMLArea first.
|
||||||||||||||||||||||||||||||||||||||
We cannot put the message in the text zone because we need the value to be there.
Maybe HTMLArea has a hook for a loading message ?