#426 closed defect (fixed)
Rich Text and the Editor do not have a set content method
Reported by: | anonymous | Owned by: | psowden |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Both controls do not have a set content method which makes them rather useless in a more dynamic situation. Someone at the mailing list told the reason is because it breaks undo. But omitting the method for such a reason is wrong, it is to important to leave it out.
As for now a workaround would be to push it into the object after initialization like that:
function mynamspace_LoadEditor(editorId) {
var area = dojo.widget.getWidgetById(editorId); if(area.setEditorContent == null) {
area.setEditorContent = function(text) {
area._richText.editNode.innerHTML = text;
}
} return area;
}
but this is pointless in the long run.
Change History (3)
comment:1 Changed 15 years ago by
Milestone: | → 0.3release |
---|---|
Owner: | changed from anonymous to psowden |
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
replaceEditorContent has been introduced. It is undo-able across browsers.