Hi,
I'm attempting to hide some of the default UI via ReaderControl.config.ui.
I've found that I cannot set the text search to false without encountering an error.
This:
ReaderControl.config.ui = {
// main UI elements
hideAnnotationPanel: false,
hideControlBar: false,
hideSidePanel: false,
// UI subelements
hideDisplayModes: false,
hideZoom: false,
hideTextSearch: true,
hidePrint: false
};
Yields:
"Uncaught TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'. ReaderControl.js:767"
Might this be a bug?
Additionally, the above is accomplished simply by modifying the default ReaderControlConfig.js under the html5 folder. If I attempt to supply my own config.js to the constructor of WebViewer (overriding that default file as I understand it) I find that the default still executes and errors on this part:
$(function () {
readerControl.toolModeMap['AnnotationCreateTextHighlight']
.bind('textSelected', function (quads, text) {
console.log('textSelected');
console.log(quads);
console.log(text);
});
});
Yielding:
"Uncaught ReferenceError: readerControl is not defined ReaderControlConfig.js:69"
Should I not expect my own custom config.js to prevent that default one from executing? Mine contains only the following:
ReaderControl.config.ui = {
// main UI elements
hideAnnotationPanel: true,
hideControlBar: false,
hideSidePanel: true,
// UI subelements
hideDisplayModes: false,
hideZoom: false,
hideTextSearch: false,
hidePrint: true
};
I know it is being applied because I can observe those elements hidden.
Thanks,
Chris