Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#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 13 years ago by liucougar

I tested to set toolbarTemplatePath using dojo.uri.dojoUri, it works fine

could you provide a test case?

comment:2 Changed 13 years ago by dylan

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 13 years ago by dylan

Milestone: 0.40.4.1

comment:4 Changed 13 years ago by dylan

Component: WidgetsEditor

comment:5 Changed 13 years ago by liucougar

Resolution: invalid
Status: newclosed

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 13 years ago by dylan

ah, must be an artifact of me trying to get it working from outside the context of the dojo root. Thanks.

comment:7 Changed 12 years ago by (none)

Milestone: 0.4.1

Milestone 0.4.1 deleted

Note: See TracTickets for help on using tickets.