Closed (duplicate)
Project:
Wysiwyg
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2009 at 01:27 UTC
Updated:
27 Oct 2009 at 17:44 UTC
Jump to comment: Most recent file
Comments
Comment #1
jide commentedHere is a patch to implement this on last 6.x-2.x-dev, on FCKEditor, CKEditor and TinyMCE 3.
Comment #2
jide commentedChanging status.
Comment #3
markus_petrux commentedIt would really be nice to have this in WYSIWYG API.
Yahoo! Editor also provides saveHTML().
Comment #4
markus_petrux commentedHere's a few links I collected while working on the Dirty Forms module.
http://wiki.moxiecode.com/index.php/TinyMCE:API/tinymce.EditorManager/get
http://wiki.moxiecode.com/index.php/TinyMCE:API/tinymce.Editor
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API
http://developer.yahoo.com/yui/docs/YAHOO.widget.EditorInfo.html
http://developer.yahoo.com/yui/docs/YAHOO.widget.SimpleEditor.html
Comment #5
jide commentedThanks for the tips markus.
Concerning YUI, Wysiwyg does not implement the instances functions yet so right now it is not useful.
About TinyMCE 2, I could not even make the editor work with last 6.x-2.x so I did not implement it.
For FCKEditor, CKEditor an TinyMCE 3 it is working fine though.
Comment #6
markus_petrux commentedhmm... I guess thought, that when a particular editor does not provide such a method, a javascript error may occur when the method is invoked, and that may break the page.
Comment #7
jide commentedI mark this issue as a duplicate of #614146: Drupal.wysiwyg.editor.instance needs additional methods since this issue is overlapped by it.