I have had some sucess with modifications to the DOJO editor as it ships with Domino. I have been able to add links and images to the toolbar. I have also been able to add the view source and the full screen capability but the icon does not show on the toolbar. I need to be able to add a table and change the list of fonts. Below is a copy of my data\domino\template\dojo-1.4.3\dom_richtext.htm.
I should be able to make the table work by just adding the appropriate dojo.require (dojox.editor.plugins.TablePlugins) statement and the short name (insertTable) but that does not work. I also cannot find an example of how to change the list of fonts. Any ideas would be appriciated.
<!-- template dom_richtext.htm -->
&DOMINO_CTRL_HEAD;
&DOMINO_CTRL_INCLUDE;dom_common.htm&DOMINO_CTRL_INCLUDE_END;
<script type="text/javascript">
dojo.require('ibm.domino.widget.layout.DominoRichText');
dojo.require("dijit._editor.plugins.LinkDialog");
dojo.require("dijit._editor.plugins.FullScreen");
dojo.require("dijit._editor.plugins.ViewSource");
var rteList = new Array();
function GetJSEditorData() {
for (var j=0; j < rteList.length; j++) {
rteList[j](null);
}
return true;
};
</script>&DOMINO_CTRL_HEAD_END;
&DOMINO_CTRL_FORM_ID;&DOMINO_CTRL_FORMNAME;&DOMINO_CTRL_FORM_ID_END;
&DOMINO_CTRL_BODY;<div class="domino-richtext"><textarea name="tb&DOMINO_CTRL_FLDNAME;" id="tb&DOMINO_CTRL_FLDNAME;">&DOMINO_CTRL_FLDVALUE;</textarea></div>
&DOMINO_CTRL_BODY_END;
&DOMINO_CTRL_FLD_INIT;
<input name="&DOMINO_CTRL_FLDNAME;" type="hidden" value="" ID="&DOMINO_CTRL_FLDNAME;">
<script type="text/javascript">
function get&DOMINO_CTRL_FLDNAME;(evt) {
dojo.byId('&DOMINO_CTRL_FLDNAME;').value=dijit.byId('tb&DOMINO_CTRL_FLDNAME;').getValue(false);
return true;
}
</script>
<script type="text/javascript">
dojo.addOnLoad(function() {
var rte=new ibm.domino.widget.layout.DominoRichText({extraPlugins: ['|', 'insertImage', 'createLink', 'formatBlock', 'fullscreen', 'viewsource', '|']}, dojo.byId('tb&DOMINO_CTRL_FLDNAME;'));
rte.init();
rteList.push(get&DOMINO_CTRL_FLDNAME;);
dojo.connect(dojo.byId('&DOMINO_CTRL_FORMNAME;'), "onsubmit", null, get&DOMINO_CTRL_FLDNAME;, true);});
</script>&DOMINO_CTRL_FLD_INIT_END;
 
Feedback number WEBB8MBRCV created by Steve M Galentine on 10/04/2011

Status: Open
Comments:

DOJO Customization (Steve M Galenti... 4.Oct.11)
. . you could also try the CKEditor (Mark Vincenzes 5.Oct.11)
. . . . That was my first choice (Steve M Galenti... 6.Oct.11)
. . . . . . changed the font? can you elaborat... (Mark Vincenzes 6.Oct.11)
. . . . . . . . Font changes (Steve M Galenti... 6.Oct.11)
. . . . . . . . . . mospace fonts work for me / I'll lo... (Mark Vincenzes 7.Oct.11)
. . . . . . . . . . the rich text html needs to be in a... (Mark Vincenzes 7.Oct.11)
. . . . . . . . . . . . Thanks for the help (Steve M Galenti... 11.Oct.11)
. . . . . . . . . . . . . . glad I could be of help (Mark Vincenzes 11.Oct.11)
. . . . . . . . Yet another problem with using the ... (Steve M Galenti... 13.Oct.11)
. . . . . . . . . . my guess is that CKeditor is affect... (Mark Vincenzes 13.Oct.11) |