Warmest Greetings to all...
I am a newcomer to FCKeditor and I am trying to create a plugin that will replicate the behavior of hidden field button.
Namely to be able to insert custom HTML code to the actual underlying code while the code be visible/editable as an image in the WYSWYG part.
ANY help would be so great....even URLs, APIs, even the lines in the code where the hidden (or anchor) buttons are implemented to study them would be most helpful...
P.S: Is there any really comprehensive documentation regarding ALL the available API for plugin creation ? For example I saw some attributes (_fckfakelement) in the image hidden field button creates but I was not able to find any docs regarding it....
Please help
Best Regards to all
I am a newcomer to FCKeditor and I am trying to create a plugin that will replicate the behavior of hidden field button.
Namely to be able to insert custom HTML code to the actual underlying code while the code be visible/editable as an image in the WYSWYG part.
ANY help would be so great....even URLs, APIs, even the lines in the code where the hidden (or anchor) buttons are implemented to study them would be most helpful...
P.S: Is there any really comprehensive documentation regarding ALL the available API for plugin creation ? For example I saw some attributes (_fckfakelement) in the image hidden field button creates but I was not able to find any docs regarding it....
Please help
Best Regards to all
Re: Placeholder plugin that resembles hidden field button behavi
Re: Placeholder plugin that resembles hidden field button behavi
Could you please tell me what is the file I need to read that contains the button actions (there are many files in all directories _source, js, dialog etc...) and where can I get the uncompressed commented source code.
Thank you again
Re: Placeholder plugin that resembles hidden field button behavi
The source for the editor is under _source, you might need to start reading the docs carefully: http://docs.fckeditor.net/FCKeditor_2.x ... n/Plug-ins and the rest of documentation related to the customization. Check carefully also all the samples.
Re: Placeholder plugin that resembles hidden field button behavi
Thanks you sir once again for your prompt reply....
I found an interesting file that seems to do what I want inside dialog directory but unfortunately so many features of the editor are undocumented !!!
Even in the docs the API is so very limited....for example I saw these :
span.innerHTML, span._fckplaceholder, FCKDocumentProcessor_CreateFakeImage, FakeImage.setAttribute( '_fckinputhidden', ...
Most of these methods/attrbiutes are not documented in the API nor commented in the files....
One must search all files to find all classes and their methods/attributes.
It would be so good if we had a complete API of all classes, methods, attributes, functions with a detailed description and samples.
Even the two links in the bottom of http://docs.fckeditor.net/FCKeditor_2.x ... n/Plug-ins do not work !!!
Also this document is not how to construct a plugin but rather how to ..install it when you have it....
But I thank you anyway....
Re: Placeholder plugin that resembles hidden field button behavi
innerHTML and setAttribute are standard properties/methods supported natively by all the browsers, so it's no surprise that they aren't documented.
As I said, the documentation for v2 is the source code itself, you must read the overview at http://docs.fckeditor.net/FCKeditor_2.x ... pers_Guide but you must be able to dig into the code, read the samples, check other plugins...
The documentation for v3 will be better, and of course you are welcome to improve any documentation as you like.