The files uploaded for this project so far are collaborative_editor.module and drupal.collaborative_editor.js under collaborative_editor module folder
Brief summary of the first steps:
- Test different hook functions: Done
- Test asyncronous calls: Done
- Insert iframe (create content subsection): Done - Current phase // it works in FF
- Insert asyncrounous calls to refresh the iframe content (heartbeat): Comming soon
The current stage (insert iframe) has the following pending issues in order to be crossbrowser:
- get the window object through a named iframe -> frames[name] instead of getElementById(id).contentWindow
- set a delay (how many seconds?) to activate the design mode in FF (using setTimeOut). IE doesn't need this delay
- use other functions to style the iframe border in IE
- ??
Additional tests (not necessary):
- create the iframe with the createIFrame() of drupal.js instead of returning the html iframe tag as initial content
- create a loading div out of the iframe and hide it when content is loaded instead of writing the Loading... inside the iframe
Further information about the use of iframes for WYSIWYG editors:
- Design mode in Firefox
IE and FF DOM Reference:
- MSDN DHTML Reference
- Gecko DOM reference
Comments
Links to project and code
Hi Ernest,
glad to see you making progress! Please provide links in the group description to your Drupal project page and/or to the web-cvs code repository. Thanks!
Project page
Thank you Robert, I've just added the links :)
ajaxwrite?
Did you have a look at http://www.ajaxlaunch.com/ajaxwrite/ (which is currently only working for Firefox V.1.5+)?
Ajaxwrite
Yes, I've seen it. Since it is not collaborative it'd be useful to see how to do crossbrosser functions for the editor. The problem is I don't think we are able to see any single line of the source code to learn anything. Is that right?
You are right
... forget it ;)
Anyway
I really apreciate the link anyway. There are always things to learn from this kind of applications
Here is an interesting list extracted from wikipedia (http://en.wikipedia.org/wiki/Collaborative_editor) to take a look:
Software that was designed for collaborative real-time editing of text:
Web browser based collaborative real-time editing of documents
Other software that allows collaborative real-time editing
Software that is collaborative but not real-time
Well done. I personally
Well done.
I personally would skip the focus on the WYSIWYG part and make sure the basic syncronisation works well. The networking code should be fairly cross platform, the one Drupal already uses certainly is. Having working communications is the #1 requirement for the success of this project IMHO.
a question. two years later...
Dear Ernest -
I need to use iframe in a new drupal-6 installation in order to host external pages within our implementation.
These pages include js code that connects external database. Trying to define a new drupal page with iframe tag did not work properly.
Will I need to use your module? Will it do what I need?
Cheers,
Monti
found this module
http://drupalmodules.com/module/iframe
I guess this is what I was looking for. lemme check.