I am thinking about customizing FCKeditor to edit very simple smil files for audio transcriptions. I am ready to hack the necessary changes, but would like the opinion of the community on the feasibility on this idea. The goal would be to produce an online tool that has many of the functions of the Magpie tool. (http://ncam.wgbh.org/webaccess/magpie/magpie_help/)
This would mean that I would need to be able to:
1. Strip away many of the formatting functions and toolbars available
2. Ideally, be able to tie specific functions to function keys, or other hot-keys
3. Be able to define new tags and assign these to toolbar buttons, like <par></par>
4. Be able to control the graphical display of these new tags, so that a given custom tag may display like a row in a table, or another type of block level element
5. Have a function that may communicate with another embedded object, like a mediaplayer, elsewhere in the page, or have the ability to embed a mediaplayer inside fckeditor.
Is FCKeditor extensible enough to be modified for the above behavior?
Sun, 12/31/2006 - 07:44
#1
RE: Smil editing
1) You can adjust the buttons as you like, just look at the samples.
2) This should be quite easy with version 2.4, now you have to do it all yourself or use something like the onkeydown plugin.
3) Some browsers (I mean IE) doesn't like new tags and can ignore anything that he doesn't understand, specially if you are creating new tags without a namespace. There are some plugin s about how to work with other tags that aren't in the default configuration for FCKeditor (like marquee, abbr and acronym)
4) It's a matter of what do you want and what does the browser allows you. Maybe you can't work directly with your tags but have to create fake tags like I did in the custom XML tags plugin.
5) You can use the javascript API of the editor, then it depends on your browser and your plugin to let you control the embeded player or not.
RE: Smil editing
RE: Smil editing
So one answer is to do a replace in the text that is sent to the editor and turn special elements to standard html tags like div, span or table with some special attributes so you might recognize them again when converting back to html.
Your fist task is to create an html page that shows what you want, you'll find if there are problems or not, maybe everything works fine and it's very easy, but you have to try.