Select to view content in your preferred language

html editor not loading properly

675
2
12-09-2010 04:48 PM
mdonnelly
Esri Contributor
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
0 Kudos
2 Replies
mdonnelly
Esri Contributor
Attached is a screen shot of the problem infoWindow
Regards,
Mark
0 Kudos
mdonnelly
Esri Contributor
OK, I solved this one.

For some reason my application is looking in the root directory for the dojo icons directory and so missing some of the pictures needed to render the dialogue properly.

I copied the icons directory to the web server root directory and it started rendering properly.
Regards,
Mark
0 Kudos