#1506 closed defect (invalid)
editor2: toolbarTemplatePath as a parameter does not seem to work well with dojo.uri.Uri
Reported by: | dylan | Owned by: | liucougar |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Editor | Version: | 0.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
In passing a paramer of toolbarTemplatePath to Editor2, using createWidget, Editor2 seems to only find the toolbar path if I use a string, and fails to find the template when I pass it with dojo.uri.Uri
Change History (7)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
In tests/widget/Editor/test_Editor2Code.html, if you change toolbarTemplatePath: "../../../src/widget/templates/EditorToolbarLight.html" to dojo.uri.Uri("../../../src/widget/templates/EditorToolbarLight.html") , it fails to display the toolbar for me.
comment:3 Changed 14 years ago by
Milestone: | 0.4 → 0.4.1 |
---|
comment:4 Changed 14 years ago by
Component: | Widgets → Editor |
---|
comment:5 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
it should be dojo.uri.dojoUri("src/widget/templates/EditorToolbarLight.html")
I updated the test file, if you still have issues, please reopen this ( [6308] )
comment:6 Changed 14 years ago by
ah, must be an artifact of me trying to get it working from outside the context of the dojo root. Thanks.
I tested to set toolbarTemplatePath using dojo.uri.dojoUri, it works fine
could you provide a test case?