When I embed the code goes in minus the additional [] so the image does not show up. Only the string of text.

For example this is the result:

image [nid:3999]

And it should be:

image [[nid:3999]]

When I add the [] to it in the source editor of WYSIWYG then it works.

Is this a bug in the dev version?

-Trevor

CommentFileSizeAuthor
#2 noderef-embed-issue.jpg15.74 KBambientdrup

Comments

ambientdrup’s picture

This code in nrembrowser.theme.inc seems odd:

  return '<span id="'. $id .'" class="nrembrowser-thumbnail '. $selected .'">'. $output .'<span class="nrembrowser-title">[' . $title . ']</span></span>';
  }

That results in this (swapping in the node title) when you click on the embed button in the WYSIWYG editor:

image[Test image [nid:3849]]

Seems like it should not be bringing in the full $title value there .... just the node id reference.

-Trevor

ambientdrup’s picture

StatusFileSize
new15.74 KB

I tried uninstalling the module and then re-enabling it. After re-enabling it I now get a completely blank screen when trying to use the WYSIWYG embed button/icon. See attached screenshot.

-Trevor

ambientdrup’s picture

Please disregard this issue. I've fixed it. It was related to a tweak I made to another module file.

Best-

Trevor