[xwiki-users] Replace the wysiwyg editor
Hello all! Is it possible to completely replace the xwiki wysiwyg editor? For instance, use the http://ckeditor.com/demo. If so, how should I procede? Will the work be almost impossible? Thank you in advance, Wilson
Hi, On May 4, 2010, at 8:15 PM, Wilson Leão Neto wrote:
Hello all!
Is it possible to completely replace the xwiki wysiwyg editor? For instance, use the http://ckeditor.com/demo. If so, how should I procede? Will the work be almost impossible?
Nothing is impossible but you'd loose a lot of features. Why would you be interested in doing this? Thanks -Vincent
Hello Vincent, We are having problems trying to import .doc documents. We are getting this: "content: Exception while parsing HTML" Our version: XWiki Enterprise 2.2.5.28407 Also, we would like to be able to customize the wysiwyg editor. I've read the: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor And I'm striving to create a button that would add a pagebreak into the code. That would allow the pdf export to properly generate the document.
Velocity code: {{velocity filter="none"}} {{html clean="false" wiki="true"}} #pagebreak() {{/velocity}}
It may seems like I'm "POGging" around... If you know a better way to do it, please, tell me. ;) Thank you! You're being very helpful! Wilson 2010/5/4 Vincent Massol <[email protected]>
Hi,
On May 4, 2010, at 8:15 PM, Wilson Leão Neto wrote:
Hello all!
Is it possible to completely replace the xwiki wysiwyg editor? For instance, use the http://ckeditor.com/demo. If so, how should I procede? Will the work be almost impossible?
Nothing is impossible but you'd loose a lot of features.
Why would you be interested in doing this?
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Wilson, On Wed, May 5, 2010 at 12:13 AM, Wilson Leão Neto < [email protected]> wrote:
Hello Vincent,
We are having problems trying to import .doc documents. We are getting this: "content: Exception while parsing HTML"
Can you post the server log (exception trace) when this happens? The problem seems to be associated with XE back-end (officeimporter / html parser) rather than with WYSIWYG editor. You should see a huge exception log message when this error happens on the wysiwyg editor. And replacing xwiki wysiwyg editor with ckeditor will not fix this issue AFAIK because ckeditor does not have a .doc file import feature (except for the copy/paste import feture which is also present in xwiki wysiwyg, but your problem seems to be with file import feature as you say). - Asiri
Our version: XWiki Enterprise 2.2.5.28407
Also, we would like to be able to customize the wysiwyg editor. I've read the: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor And I'm striving to create a button that would add a pagebreak into the code. That would allow the pdf export to properly generate the document.
Velocity code: {{velocity filter="none"}} {{html clean="false" wiki="true"}} #pagebreak() {{/velocity}}
It may seems like I'm "POGging" around... If you know a better way to do it, please, tell me. ;)
Thank you! You're being very helpful!
Wilson
2010/5/4 Vincent Massol <[email protected]>
Hi,
On May 4, 2010, at 8:15 PM, Wilson Leão Neto wrote:
Hello all!
Is it possible to completely replace the xwiki wysiwyg editor? For instance, use the http://ckeditor.com/demo. If so, how should I procede? Will the work be almost impossible?
Nothing is impossible but you'd loose a lot of features.
Why would you be interested in doing this?
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Wilson, Wilson Leão Neto wrote:
Hello Vincent,
We are having problems trying to import .doc documents. We are getting this: "content: Exception while parsing HTML"
A stack trace would be very useful.
Our version: XWiki Enterprise 2.2.5.28407
Also, we would like to be able to customize the wysiwyg editor. I've read the: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor And I'm striving to create a button that would add a pagebreak into the code. That would allow the pdf export to properly generate the document.
Velocity code: {{velocity filter="none"}} {{html clean="false" wiki="true"}} #pagebreak() {{/velocity}}
You should start by creating a pagebreak wiki macro http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial so that your users can insert a page break through the Insert Macro wizard. Next, if you want to insert the pagebreak macro with one single click, using a tool bar button, you have two options: (1) Use the Command Manager API exposed in JavaScript ( http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HCommandMan... ) to insert the pagebreak macro: editor.getCommandManager().execute('macroInsert', 'startmacro:pagebreak|-|') Currently we don't save a reference to the WYSIWYG editor used to edit wiki pages but you can observe the xwiki:wysiwyg:created event with prototype and get the editor instance from the 'instance' property of the event (I don't know prototype that well, others may help you here). To place a button on the tool bar from outside of the WYSIWYG editor code you can take a look at what the full screen editing feature does. (2) It may be easier and cleaner to write a small plugin for the WYSIWYG editor. You can take http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-clie... as an example. For this you'll have to checkout the WYSIWYG editor source code ( mainly http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-clie... and http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-serv... ), write the plugin in Java, rebuild the editor and update your XWiki installation. Hope this helps, Marius
It may seems like I'm "POGging" around... If you know a better way to do it, please, tell me. ;)
Thank you! You're being very helpful!
Wilson
2010/5/4 Vincent Massol <[email protected]>
Hi,
On May 4, 2010, at 8:15 PM, Wilson Leão Neto wrote:
Hello all!
Is it possible to completely replace the xwiki wysiwyg editor? For instance, use the http://ckeditor.com/demo. If so, how should I procede? Will the work be almost impossible? Nothing is impossible but you'd loose a lot of features.
Why would you be interested in doing this?
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hello all! @Vincent Your steps are being very helpful, thanks a lot! I'm studying it right now. @Vincent and Asiri As requested, the stacktrace: 2010-05-05 12:56:35,447 [http://localhost:8086/xwiki/bin/preview/Main/teste] *ERROR internal.DefaultHTMLConverter* - Failed to parse input source *org.xwiki.rendering.parser.ParseException: Failed to parse input source* at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:136) at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:97) at com.xpn.xwiki.wysiwyg.server.converter.internal.DefaultHTMLConverter.fromHTML(DefaultHTMLConverter.java:100) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:117) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:304) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: org.wikimodel.wem.WikiParserException: java.lang.NullPointerException at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:107) at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:134) ... 26 more Caused by: java.lang.NullPointerException at org.xwiki.rendering.internal.parser.wikimodel.xhtml.XWikiReferenceTagHandler.end(XWikiReferenceTagHandler.java:169) at org.wikimodel.wem.xhtml.handler.TagHandler.endElement(TagHandler.java:129) at org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack$TagContext.endElement(XhtmlHandler.java:113) at org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack.endElement(XhtmlHandler.java:203) at org.wikimodel.wem.xhtml.impl.XhtmlHandler.endElement(XhtmlHandler.java:517) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.sendInlineEvent(XHTMLWhitespaceXMLFilter.java:293) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.appendInlineEvent(XHTMLWhitespaceXMLFilter.java:358) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.endElement(XHTMLWhitespaceXMLFilter.java:202) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.AccumulationXMLFilter.endElement(AccumulationXMLFilter.java:70) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.DTDXMLFilter.endElement(DTDXMLFilter.java:70) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:104) ... 27 more 2010-05-05 12:56:35,448 [http://localhost:8086/xwiki/bin/preview/Main/teste] ERROR filter.ConversionFilter - Exception while parsing HTML java.lang.RuntimeException: Exception while parsing HTML at com.xpn.xwiki.wysiwyg.server.converter.internal.DefaultHTMLConverter.fromHTML(DefaultHTMLConverter.java:110) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:117) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:304) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: org.xwiki.rendering.parser.ParseException: Failed to parse input source at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:136) at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:97) at com.xpn.xwiki.wysiwyg.server.converter.internal.DefaultHTMLConverter.fromHTML(DefaultHTMLConverter.java:100) ... 24 more Caused by: org.wikimodel.wem.WikiParserException: java.lang.NullPointerException at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:107) at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:134) ... 26 more Caused by: java.lang.NullPointerException at org.xwiki.rendering.internal.parser.wikimodel.xhtml.XWikiReferenceTagHandler.end(XWikiReferenceTagHandler.java:169) at org.wikimodel.wem.xhtml.handler.TagHandler.endElement(TagHandler.java:129) at org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack$TagContext.endElement(XhtmlHandler.java:113) at org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack.endElement(XhtmlHandler.java:203) at org.wikimodel.wem.xhtml.impl.XhtmlHandler.endElement(XhtmlHandler.java:517) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.sendInlineEvent(XHTMLWhitespaceXMLFilter.java:293) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.appendInlineEvent(XHTMLWhitespaceXMLFilter.java:358) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.endElement(XHTMLWhitespaceXMLFilter.java:202) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.AccumulationXMLFilter.endElement(AccumulationXMLFilter.java:70) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.DTDXMLFilter.endElement(DTDXMLFilter.java:70) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:104) ... 27 more 2010-05-05 12:56:39,379 [ http://localhost:8086/xwiki/bin/edit/Main/Missing.png] ERROR web.XWikiAction - Connection aborted 2010-05-05 12:56:47,820 [ http://localhost:8086/xwiki/bin/edit/Main/Missing.png] ERROR web.XWikiAction - Connection aborted Best regards, Wilson 2010/5/5 Marius Dumitru Florea <[email protected]>
Hi Wilson,
Wilson Leão Neto wrote:
Hello Vincent,
We are having problems trying to import .doc documents. We are getting this: "content: Exception while parsing HTML"
A stack trace would be very useful.
Our version: XWiki Enterprise 2.2.5.28407
Also, we would like to be able to customize the wysiwyg editor. I've read the: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor And I'm striving to create a button that would add a pagebreak into the code. That would allow the pdf export to properly generate the document.
Velocity code: {{velocity filter="none"}} {{html clean="false" wiki="true"}} #pagebreak() {{/velocity}}
You should start by creating a pagebreak wiki macro http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial so that your users can insert a page break through the Insert Macro wizard.
Next, if you want to insert the pagebreak macro with one single click, using a tool bar button, you have two options:
(1) Use the Command Manager API exposed in JavaScript (
http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HCommandMan... ) to insert the pagebreak macro:
editor.getCommandManager().execute('macroInsert', 'startmacro:pagebreak|-|')
Currently we don't save a reference to the WYSIWYG editor used to edit wiki pages but you can observe the xwiki:wysiwyg:created event with prototype and get the editor instance from the 'instance' property of the event (I don't know prototype that well, others may help you here).
To place a button on the tool bar from outside of the WYSIWYG editor code you can take a look at what the full screen editing feature does.
(2) It may be easier and cleaner to write a small plugin for the WYSIWYG editor. You can take
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-clie... as an example. For this you'll have to checkout the WYSIWYG editor source code ( mainly
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-clie... and
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-serv... ), write the plugin in Java, rebuild the editor and update your XWiki installation.
Hope this helps, Marius
It may seems like I'm "POGging" around... If you know a better way to do
it,
please, tell me. ;)
Thank you! You're being very helpful!
Wilson
2010/5/4 Vincent Massol <[email protected]>
Hi,
On May 4, 2010, at 8:15 PM, Wilson Leão Neto wrote:
Hello all!
Is it possible to completely replace the xwiki wysiwyg editor? For instance, use the http://ckeditor.com/demo. If so, how should I procede? Will the work be almost impossible? Nothing is impossible but you'd loose a lot of features.
Why would you be interested in doing this?
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Wilson, Regarding the stack trace it would be great if you could create a jira issue in http://jira.xwiki.org/jira/browse/XWIKI describing the problem you've found below and attach to this issue a source file that we can use to reproduce the problem. Once we can reproduce it we'll be able to fix it quickly. Thanks a lot -Vincent On May 5, 2010, at 8:29 PM, Wilson Leão Neto wrote:
Hello all!
@Vincent Your steps are being very helpful, thanks a lot! I'm studying it right now.
@Vincent and Asiri
As requested, the stacktrace: 2010-05-05 12:56:35,447 [http://localhost:8086/xwiki/bin/preview/Main/teste] *ERROR internal.DefaultHTMLConverter* - Failed to parse input source *org.xwiki.rendering.parser.ParseException: Failed to parse input source* at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:136) at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:97) at com.xpn.xwiki.wysiwyg.server.converter.internal.DefaultHTMLConverter.fromHTML(DefaultHTMLConverter.java:100) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:117) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:304) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: org.wikimodel.wem.WikiParserException: java.lang.NullPointerException at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:107) at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:134) ... 26 more Caused by: java.lang.NullPointerException at org.xwiki.rendering.internal.parser.wikimodel.xhtml.XWikiReferenceTagHandler.end(XWikiReferenceTagHandler.java:169) at org.wikimodel.wem.xhtml.handler.TagHandler.endElement(TagHandler.java:129) at org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack$TagContext.endElement(XhtmlHandler.java:113) at org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack.endElement(XhtmlHandler.java:203) at org.wikimodel.wem.xhtml.impl.XhtmlHandler.endElement(XhtmlHandler.java:517) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.sendInlineEvent(XHTMLWhitespaceXMLFilter.java:293) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.appendInlineEvent(XHTMLWhitespaceXMLFilter.java:358) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.endElement(XHTMLWhitespaceXMLFilter.java:202) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.AccumulationXMLFilter.endElement(AccumulationXMLFilter.java:70) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.DTDXMLFilter.endElement(DTDXMLFilter.java:70) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:104) ... 27 more 2010-05-05 12:56:35,448 [http://localhost:8086/xwiki/bin/preview/Main/teste] ERROR filter.ConversionFilter - Exception while parsing HTML java.lang.RuntimeException: Exception while parsing HTML at com.xpn.xwiki.wysiwyg.server.converter.internal.DefaultHTMLConverter.fromHTML(DefaultHTMLConverter.java:110) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:117) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:304) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: org.xwiki.rendering.parser.ParseException: Failed to parse input source at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:136) at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:97) at com.xpn.xwiki.wysiwyg.server.converter.internal.DefaultHTMLConverter.fromHTML(DefaultHTMLConverter.java:100) ... 24 more Caused by: org.wikimodel.wem.WikiParserException: java.lang.NullPointerException at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:107) at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:134) ... 26 more Caused by: java.lang.NullPointerException at org.xwiki.rendering.internal.parser.wikimodel.xhtml.XWikiReferenceTagHandler.end(XWikiReferenceTagHandler.java:169) at org.wikimodel.wem.xhtml.handler.TagHandler.endElement(TagHandler.java:129) at org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack$TagContext.endElement(XhtmlHandler.java:113) at org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack.endElement(XhtmlHandler.java:203) at org.wikimodel.wem.xhtml.impl.XhtmlHandler.endElement(XhtmlHandler.java:517) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.sendInlineEvent(XHTMLWhitespaceXMLFilter.java:293) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.appendInlineEvent(XHTMLWhitespaceXMLFilter.java:358) at org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.endElement(XHTMLWhitespaceXMLFilter.java:202) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.AccumulationXMLFilter.endElement(AccumulationXMLFilter.java:70) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.wikimodel.wem.xhtml.filter.DTDXMLFilter.endElement(DTDXMLFilter.java:70) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44) at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:104) ... 27 more 2010-05-05 12:56:39,379 [ http://localhost:8086/xwiki/bin/edit/Main/Missing.png] ERROR web.XWikiAction - Connection aborted 2010-05-05 12:56:47,820 [ http://localhost:8086/xwiki/bin/edit/Main/Missing.png] ERROR web.XWikiAction - Connection aborted
Best regards,
Wilson
2010/5/5 Marius Dumitru Florea <[email protected]>
Hi Wilson,
Wilson Leão Neto wrote:
Hello Vincent,
We are having problems trying to import .doc documents. We are getting this: "content: Exception while parsing HTML"
A stack trace would be very useful.
Our version: XWiki Enterprise 2.2.5.28407
Also, we would like to be able to customize the wysiwyg editor. I've read the: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor And I'm striving to create a button that would add a pagebreak into the code. That would allow the pdf export to properly generate the document.
Velocity code: {{velocity filter="none"}} {{html clean="false" wiki="true"}} #pagebreak() {{/velocity}}
You should start by creating a pagebreak wiki macro http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial so that your users can insert a page break through the Insert Macro wizard.
Next, if you want to insert the pagebreak macro with one single click, using a tool bar button, you have two options:
(1) Use the Command Manager API exposed in JavaScript (
http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HCommandMan... ) to insert the pagebreak macro:
editor.getCommandManager().execute('macroInsert', 'startmacro:pagebreak|-|')
Currently we don't save a reference to the WYSIWYG editor used to edit wiki pages but you can observe the xwiki:wysiwyg:created event with prototype and get the editor instance from the 'instance' property of the event (I don't know prototype that well, others may help you here).
To place a button on the tool bar from outside of the WYSIWYG editor code you can take a look at what the full screen editing feature does.
(2) It may be easier and cleaner to write a small plugin for the WYSIWYG editor. You can take
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-clie... as an example. For this you'll have to checkout the WYSIWYG editor source code ( mainly
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-clie... and
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-serv... ), write the plugin in Java, rebuild the editor and update your XWiki installation.
Hope this helps, Marius
It may seems like I'm "POGging" around... If you know a better way to do
it,
please, tell me. ;)
Thank you! You're being very helpful!
Wilson
2010/5/4 Vincent Massol <[email protected]>
Hi,
On May 4, 2010, at 8:15 PM, Wilson Leão Neto wrote:
Hello all!
Is it possible to completely replace the xwiki wysiwyg editor? For instance, use the http://ckeditor.com/demo. If so, how should I procede? Will the work be almost impossible? Nothing is impossible but you'd loose a lot of features.
Why would you be interested in doing this?
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hello Vincent! My friend here, Erica, did it. Here it is: http://jira.xwiki.org/jira/browse/XWIKI-5186 If there is any doubt, please ask. Thanks, Wilson 2010/5/5 Vincent Massol <[email protected]>
Hi Wilson,
Regarding the stack trace it would be great if you could create a jira issue in http://jira.xwiki.org/jira/browse/XWIKI describing the problem you've found below and attach to this issue a source file that we can use to reproduce the problem.
Once we can reproduce it we'll be able to fix it quickly.
Thanks a lot -Vincent
On May 5, 2010, at 8:29 PM, Wilson Leão Neto wrote:
Hello all!
@Vincent Your steps are being very helpful, thanks a lot! I'm studying it right now.
@Vincent and Asiri
As requested, the stacktrace: 2010-05-05 12:56:35,447 [ http://localhost:8086/xwiki/bin/preview/Main/teste] *ERROR internal.DefaultHTMLConverter* - Failed to parse input source *org.xwiki.rendering.parser.ParseException: Failed to parse input source* at
org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:136)
at
org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:97)
at
com.xpn.xwiki.wysiwyg.server.converter.internal.DefaultHTMLConverter.fromHTML(DefaultHTMLConverter.java:100)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:117)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:304)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536) at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.wikimodel.wem.WikiParserException: java.lang.NullPointerException at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:107) at
org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:134)
... 26 more Caused by: java.lang.NullPointerException at
org.xwiki.rendering.internal.parser.wikimodel.xhtml.XWikiReferenceTagHandler.end(XWikiReferenceTagHandler.java:169)
at
org.wikimodel.wem.xhtml.handler.TagHandler.endElement(TagHandler.java:129)
at
org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack$TagContext.endElement(XhtmlHandler.java:113)
at
org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack.endElement(XhtmlHandler.java:203)
at
org.wikimodel.wem.xhtml.impl.XhtmlHandler.endElement(XhtmlHandler.java:517)
at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at
org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.sendInlineEvent(XHTMLWhitespaceXMLFilter.java:293)
at
org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.appendInlineEvent(XHTMLWhitespaceXMLFilter.java:358)
at
org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.endElement(XHTMLWhitespaceXMLFilter.java:202)
at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at
org.wikimodel.wem.xhtml.filter.AccumulationXMLFilter.endElement(AccumulationXMLFilter.java:70)
at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at
org.wikimodel.wem.xhtml.filter.DTDXMLFilter.endElement(DTDXMLFilter.java:70)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at
org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at
org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at
org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44)
at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:104) ... 27 more 2010-05-05 12:56:35,448 [ http://localhost:8086/xwiki/bin/preview/Main/teste] ERROR filter.ConversionFilter - Exception while parsing HTML java.lang.RuntimeException: Exception while parsing HTML at
com.xpn.xwiki.wysiwyg.server.converter.internal.DefaultHTMLConverter.fromHTML(DefaultHTMLConverter.java:110)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:117)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:304)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536) at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.xwiki.rendering.parser.ParseException: Failed to parse input source at
org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:136)
at
org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:97)
at
com.xpn.xwiki.wysiwyg.server.converter.internal.DefaultHTMLConverter.fromHTML(DefaultHTMLConverter.java:100)
... 24 more Caused by: org.wikimodel.wem.WikiParserException: java.lang.NullPointerException at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:107) at
org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:134)
... 26 more Caused by: java.lang.NullPointerException at
org.xwiki.rendering.internal.parser.wikimodel.xhtml.XWikiReferenceTagHandler.end(XWikiReferenceTagHandler.java:169)
at
org.wikimodel.wem.xhtml.handler.TagHandler.endElement(TagHandler.java:129)
at
org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack$TagContext.endElement(XhtmlHandler.java:113)
at
org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack.endElement(XhtmlHandler.java:203)
at
org.wikimodel.wem.xhtml.impl.XhtmlHandler.endElement(XhtmlHandler.java:517)
at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at
org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.sendInlineEvent(XHTMLWhitespaceXMLFilter.java:293)
at
org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.appendInlineEvent(XHTMLWhitespaceXMLFilter.java:358)
at
org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter.endElement(XHTMLWhitespaceXMLFilter.java:202)
at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at
org.wikimodel.wem.xhtml.filter.AccumulationXMLFilter.endElement(AccumulationXMLFilter.java:70)
at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at
org.wikimodel.wem.xhtml.filter.DTDXMLFilter.endElement(DTDXMLFilter.java:70)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XML11NonValidatingConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at
org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at
org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at
org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44)
at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:104) ... 27 more 2010-05-05 12:56:39,379 [ http://localhost:8086/xwiki/bin/edit/Main/Missing.png] ERROR web.XWikiAction - Connection aborted 2010-05-05 12:56:47,820 [ http://localhost:8086/xwiki/bin/edit/Main/Missing.png] ERROR web.XWikiAction - Connection aborted
Best regards,
Wilson
2010/5/5 Marius Dumitru Florea <[email protected]>
Hi Wilson,
Wilson Leão Neto wrote:
Hello Vincent,
We are having problems trying to import .doc documents. We are getting this: "content: Exception while parsing HTML"
A stack trace would be very useful.
Our version: XWiki Enterprise 2.2.5.28407
Also, we would like to be able to customize the wysiwyg editor. I've
read
the: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor And I'm striving to create a button that would add a pagebreak into the code. That would allow the pdf export to properly generate the document.
Velocity code: {{velocity filter="none"}} {{html clean="false" wiki="true"}} #pagebreak() {{/velocity}}
You should start by creating a pagebreak wiki macro http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial so that your users can insert a page break through the Insert Macro wizard.
Next, if you want to insert the pagebreak macro with one single click, using a tool bar button, you have two options:
(1) Use the Command Manager API exposed in JavaScript (
http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HCommandMan...
) to insert the pagebreak macro:
editor.getCommandManager().execute('macroInsert', 'startmacro:pagebreak|-|')
Currently we don't save a reference to the WYSIWYG editor used to edit wiki pages but you can observe the xwiki:wysiwyg:created event with prototype and get the editor instance from the 'instance' property of the event (I don't know prototype that well, others may help you here).
To place a button on the tool bar from outside of the WYSIWYG editor code you can take a look at what the full screen editing feature does.
(2) It may be easier and cleaner to write a small plugin for the WYSIWYG editor. You can take
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-clie...
as an example. For this you'll have to checkout the WYSIWYG editor source code ( mainly
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-clie...
and
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-serv...
), write the plugin in Java, rebuild the editor and update your XWiki installation.
Hope this helps, Marius
It may seems like I'm "POGging" around... If you know a better way to
do it,
please, tell me. ;)
Thank you! You're being very helpful!
Wilson
2010/5/4 Vincent Massol <[email protected]>
Hi,
On May 4, 2010, at 8:15 PM, Wilson Leão Neto wrote:
Hello all!
Is it possible to completely replace the xwiki wysiwyg editor? For instance, use the http://ckeditor.com/demo. If so, how should I procede? Will the work be almost impossible? Nothing is impossible but you'd loose a lot of features.
Why would you be interested in doing this?
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (4)
-
Asiri Rathnayake -
Marius Dumitru Florea -
Vincent Massol -
Wilson Leão Neto