It's me again.
As I mentioned before, $request.getContextPath() and $context.getDatabase()
cannot be parsed correctly.
So I changed them into fixed value in resources/js/xwiki/xwiki.js as below:
/**
* XWiki namespace.
* TODO: move everything in it.
*
* @type object
*/
var XWiki = {
constants: {
/**
* Current wiki.
*/
//currentWiki: "$context.getDatabase()",
currentWiki: "xwiki",
/**
* Main wiki.
*/
mainWiki: "$context.getMainWikiName()",
/**
* Context path.
*/
//contextPath: "$request.getContextPath()",
contextPath: "https://www.denver.com/xwiki"
And now I can get the tree, but also one error message displayed:
http://n2.nabble.com/file/n3261097/image003.jpg
I have no idea about the error and the point why $request.getContextPath()
and $context.getDatabase() cannot be parsed.
Thanks so much!
--
View this message in context:
http://n2.nabble.com/WYSIWYG-editor-link-function-cannot-work-tp3254443p326…
Sent from the XWiki- Users mailing list archive at
Nabble.com.