Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#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:


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 16 years ago by alex

Milestone: 0.3release
Owner: changed from anonymous to psowden

comment:2 Changed 16 years ago by alex

Resolution: fixed
Status: newclosed

replaceEditorContent has been introduced. It is undo-able across browsers.

comment:3 Changed 15 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.