Ticket #1506 (closed defect: invalid)

Opened 2 years ago

Last modified 18 months ago

editor2: toolbarTemplatePath as a parameter does not seem to work well with dojo.uri.Uri

Reported by: dylan Owned by: liucougar
Priority: normal Milestone:
Component: Editor Version: 0.3
Severity: normal Keywords:
Cc:

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

Changed 2 years ago by liucougar

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

could you provide a test case?

Changed 2 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.

Changed 2 years ago by dylan

  • milestone changed from 0.4 to 0.4.1

Changed 2 years ago by dylan

  • component changed from Widgets to Editor

Changed 2 years ago by liucougar

  • status changed from new to closed
  • resolution set to invalid

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] )

Changed 2 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.

Changed 18 months ago by anonymous

  • milestone deleted

Milestone 0.4.1 deleted

Note: See TracTickets for help on using tickets.