We have a build process that creates downloadable assets into a light module's 
webresources directory. When we try to link to these in the admincentral's 
CKeditor, the links break after saving the dialog. This happens on Magnolia 
5.4.9 and 5.5. We haven't been able to reproduce this in the public Magnolia 
demo. 

When we try to save this:
[code]<a 
href="/.resources/our-ui-module/webresources/assets/icons/icons.svg">[/code]

It turns into this:
[code]<a 
href="${link:{uuid:{cafebabe-cafe-babe-cafe-babecafebabe},repository:{website},path:{/},nodeData:{},extension:{resources/our-ui-module/webresources/assets/icons/icons.svg}}}">[/code]

When the link is rendered, it becomes localhost:8080/fallback. Any idea what 
could be wrong? 

Below are our component files.

[code]
templateScript: /our-ui-module/templates/components/textbox/textbox.ftl
renderType: freemarker
title: Text
dialog: our-ui-module:components/textbox
[/code]

[code]
<div class="textbox">
  [#if content.body?has_content]
    ${cmsfn.decode(content).body}
  [/#if]
</div>
[/code]

[code]
form:
  tabs:
    - name: tabText
      label: Content
      fields:
        - name: body
          class: info.magnolia.ui.form.field.definition.RichTextFieldDefinition
          label: Content body
          configJsFile: 
/.resources/our-ui-module/webresources/assets/js/ckeditor/default.js
          i18n: true

actions:
  commit:
    class: 
info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition
  cancel:
    class: 
info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition
[/code]

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=6cf5a86e-43e4-4905-a068-cdf8ab0b3445


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to