hi,
i have following problem, i'm trying to use fckeditor in web application which produces pdf reports as a part of the final output
part of this report is customer or job specific header, which i want to allow users to edit via fckeditor
reports are created using apache fop library, therefore i'm converting fckeditor-created html into fo syntax
unfortunately, apache fop library cannot properly handle fo tables unless their dimensions are exactly specified - so i would need html output from fckeditor which has width and height of each cell
it does not have to be valid html property, i could also do with something like <td realWidht=100 realHeight=150>...</td>
as a quick solution, i was thinking of hooking somewhere between pressing the 'submit' button, and the actual generation of html and sending it to the server
at this moment, created document is part of the DOM - so i should be able to traverse it, and fill in these additional properties for width/height of table cells (taking element's width/height - it is rendered on the page - it has to have one)
could someone, who knows the source code of fckeditor, point me where i should be looking at, where would be a good place to put such hook and how do i get access to editing document ? that would be much appreciated !
at the same time, if there is anyone else who is / has been solving similar problem (transforming fckeditor-created html into fo) and willing to share experience, please contact me (martin@hajduch.de or here)
many thanks,
martin hajduch
i have following problem, i'm trying to use fckeditor in web application which produces pdf reports as a part of the final output
part of this report is customer or job specific header, which i want to allow users to edit via fckeditor
reports are created using apache fop library, therefore i'm converting fckeditor-created html into fo syntax
unfortunately, apache fop library cannot properly handle fo tables unless their dimensions are exactly specified - so i would need html output from fckeditor which has width and height of each cell
it does not have to be valid html property, i could also do with something like <td realWidht=100 realHeight=150>...</td>
as a quick solution, i was thinking of hooking somewhere between pressing the 'submit' button, and the actual generation of html and sending it to the server
at this moment, created document is part of the DOM - so i should be able to traverse it, and fill in these additional properties for width/height of table cells (taking element's width/height - it is rendered on the page - it has to have one)
could someone, who knows the source code of fckeditor, point me where i should be looking at, where would be a good place to put such hook and how do i get access to editing document ? that would be much appreciated !
at the same time, if there is anyone else who is / has been solving similar problem (transforming fckeditor-created html into fo) and willing to share experience, please contact me (martin@hajduch.de or here)
many thanks,
martin hajduch
Re: table column/cell dimensions, converting to FOP
The placeholder plugin might give you the basic steps to start using it (just search for TagProcessors and focus only on that function)
Re: table column/cell dimensions, converting to FOP
many thanks ! your hint + 15 minutes and everything is working as i needed !
Re: table column/cell dimensions, converting to FOP
my primary goal is to make it possible to easily adjust dimensions of rows/columns, lock/unlock absolute dimensions, etc ...
such functionality enables me to use the editor as a simple page layout editor to prepare report templates, etc ...
before i start, two questions for the masses:
- is there any already existing plugin, or development, towards more flexible handling (from user point of view i mean !) of tables ? i searched the net but haven't found anything really useable ...
- is this topic interesting for someone else ? has there been any development going on or planned ?
what i know now is more then enough i need to implement 'my stuff' - i'm just asking if someone else has similar problems/goals so that we could share ideas or even some work ...
Re: table column/cell dimensions, converting to FOP
The upcoming 2.5 version will feature a plugin originally developed by mjk and enhanced by martinkou to be able to resize columns just dragging them.

Get a nightly build and test it out, and if you can improve it in anyway: patches are welcome
Re: table column/cell dimensions, converting to FOP
I have read that it is possible to configure the EditorAreaCSS but I don't know if it is what I need (may be I'm doing something wrong!)
Many thanks folks.