Hi,I'm using a template picker and when I set it up I specify that a rich text editor be shown for a certain attribute in the infoWindow ('HYPERLINK'). See my template definition below:
function initEditor(results) {
var layers = dojo.map(results, function(result) {
return {featureLayer:result.layer, htmlFields:["HYPERLINK"]};
});
var templateLayers = dojo.map(results, function(result) {
return result.layer;
});
var templatePicker = new esri.dijit.editing.TemplatePicker({
featureLayers: templateLayers,
rows: 'auto',
columns: 3,
style: "height: 100%;"
},'divFeatureServiceDijit');
templatePicker.startup();
var settings = {
templatePicker: templatePicker,
map: map,
geometryService: new esri.tasks.GeometryService("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"),
layerInfos:layers,
toolbarVisible: false,
createOptions: { polygonDrawTools:[esri.dijit.editing.Editor.CREATE_TOOL_FREEHAND_POLYGON] }
}
var params = {settings: settings};
var myEditor = new esri.dijit.editing.Editor(params);
myEditor.startup();
}
The problem is that when the infoWindow displays, the rich text editor isn't fully loaded. The outline is visible but none of the buttons are rendered. Interestingly, the buttons, though not rendered are selectable. If I create a web link using the link button, the dialogue appears and I can enter text into it. However, I can't click on the hyperlink after I set it and it is not saved to my SDE either. So, when I refresh and then click on the feature the web link is not there.If I don't use the web link button and just enter free text, the content is saved to the SDE.Has anyone else had trouble of this kind?Regards,Mark
Regards,
Mark