Hello,
i have used tinymce several times but never come across this problem. On a fresh drupal installation, when creating content, i can add and uploadi mages but once i hit save and view the page, the path to the image is shown in place of the image.
Any idea why this might be happening?
Comments
Comment #1
twodTinyMCE and Wysiwyg do not provide image upload functionality on their own, so I assume you mean you're either using another module for that (such as Drupal Core's upload fields, or something like the Media or IMCE modules), or you're linking to images already uploaded somewhere else using
<img />tags.Are you seeing
[img]path/to/image.jpg[/img],<img src="path/to/image.jpg" />or justpath/to/image.jpg?In the first case, disable TinyMCE's BBCode plugin and re-save the content. You don't need the BBCode plugin unless you're using a BBCode output filter/converter for Drupal.
In the second - and perhaps last - case, you need to add
<img>to the tag whitelist in the "Limit allowed HTML tags" filter's settings on the text format you're using (admin/config/content/formats/).You might also want to try WYSIWYG Filter instead of the "Limit allowed HTML tags" filter. The filter from Core does not allow for much flexibility and will always filter out certain things like style attributes in all tags. WYSIWYG Filter uses a more complex whitelist syntax but does make it possible to let users and editors to use style attributes for setting things like font-weight or background-color.
Does that help? If not, please post a sample of what the code looks like after you click "Disable rich-text" below the editor, and then what it looks like in the HTML source from the rendered page.
Comment #2
Stellar Rush commentedThank you TwoD. You solved my problem. I found the choice to turn-off the BBcode in the Configuration>Content authoring>Wysiwyg profiles>list. Now it is working as I need.
Comment #3
twodOk, great!