Dear all,
I have been looking for an XHTML editor for an eclipse based app.
SWT has a browser integration widget which allows for the use of IE (on Windows) & Mozilla (on Windows & Linux) & I was wondering if anyone has wrapped fck within eclipse to act as an XHTML editor?
Basically we have an XML structure in which any documentation has to be either XHTML or plain text & thus when a user wants to add a documentation element or editi an existing one we'd like to be able to give them an easy to use WYSIWYG editor.
i.e. instead of running in a server of some sort, the fck would need to be wrapped in someway so that they just see the relvant window/editor where the (FCK) code is all held locally
Can I just load the fck jscript as a string & fire that into the browser & then pull out the dom of the edited document ?
Further to that, can you set the XHTML levle or indeed simply XHTML as the format to use programatically or is it the default anyway?
Given the other option is plain text can the fkc editor happily show plain text without adding tags ?
TIA
Adam
I have been looking for an XHTML editor for an eclipse based app.
SWT has a browser integration widget which allows for the use of IE (on Windows) & Mozilla (on Windows & Linux) & I was wondering if anyone has wrapped fck within eclipse to act as an XHTML editor?
Basically we have an XML structure in which any documentation has to be either XHTML or plain text & thus when a user wants to add a documentation element or editi an existing one we'd like to be able to give them an easy to use WYSIWYG editor.
i.e. instead of running in a server of some sort, the fck would need to be wrapped in someway so that they just see the relvant window/editor where the (FCK) code is all held locally
Can I just load the fck jscript as a string & fire that into the browser & then pull out the dom of the edited document ?
Further to that, can you set the XHTML levle or indeed simply XHTML as the format to use programatically or is it the default anyway?
Given the other option is plain text can the fkc editor happily show plain text without adding tags ?
TIA
Adam
RE: wrapping fck within eclipse
View source doesn't add tags. I think you'd have to use it somehow for plaintext. Not sure tho.
Let me know if you get closer, and I'll do the same!
RE: wrapping fck within eclipse
Weird is more like it. I spell so bad. Bah. (see previous post for mispelling)
At any rate. I got FCKeditor working as an eclipse plugin for editing HTML wysiwyg. Only one little problem. *cough*
When the text gets passed back, all the /r/n's are removed. This seems to be a limitation of doing stuff to the DOM, so it looks like a hard thing to "fix".
As of now, I'm gonna either add a "diff" type of tab, that ignores whitespace adding back whatever was changed, or find a nice source formatter and plug it in.
But it was totally possible, I did it, top of the world, ma!
If you want the source in it's current state, just ask. (It's ugly tho.) If I get it clean and more than just a proof of concept, I'll put it up somewhere for sure.
RE: wrapping fck within eclipse
I would be every interested in helping with this. I'm looking to add wysiwyg editing to my eclipse plugin.
http://taylor.sourceforge.net
RE: wrapping fck within eclipse
Well, I never got it clean, or more than a proof of concept, but I can clean it up into a demo-able eclipse project.
Note that I also ran into an issue with large pages of data. I'm sure that can be rectified, they may have a better way of interacting with the browser than the title object, or there must be another way to do it. So besides large pages and text formatting, it should work as is. :-/
I'll holler when I find the code, and slap it up someplace.
RE: wrapping fck within eclipse
RE: wrapping fck within eclipse
I've posted the source for what I have here:
http://valliantster.googlepages.com/home
It's not pretty. If you'd like help getting it to "run", let me know and I'll see what I can do.
Currently, you type in the FCKEditor and the contents are reflected in a SWT.MULTI field. If you type in the SWT.MULTI field, the contents are reflected in the FCKEditor. And that's about all it does. I've thrown in a SWT html parser to convert the html to plain text, but it's not really being used. It was cool getting it going tho.
:XD