Unparsed images in WYSIWYG (Fuel CMS 1.0)
In a simple module with a CKEditor WYSIWYG field I can add images through the add image tool button, and invariably, the images will display in the WYSIWYG editor area, and on first save, they will also appear on the view pages. Subsequent edits will still show the image in the editor, but not in the view, where the HTML img tag is rendered like so
img class="img_left" src="{img_path('uploads/lr_pa.jpg')}"
What can I do to fix this - if I put the full image url in, that will work, but is likely replaced on a later edit back to the img_path() version.
Comments
public $parsed_fields = array('my_field', 'my_field_formatted');
public $parsed_fields = array('content', 'content_formatted');
The images are in a field "content". They are added with the regular asset button in the CKEditor. I mentioned the module was simple - I'd forgotten! It's an advanced Fuel module.
In the view, I've tried with just the regular view variable name - eg $content as well as fuel_var('content'). Both render the image tag with the src attrib unparsed as eg: {img_path('uploads/lr_pa.jpg')}
Just thought I'd mention it.
<?=$post->content_formatted?>
I guess my question is, how is this content from the database making it's way to the front end. Can you use the "parse_template_syntax()" function?
With regards to the jQuery issue, it's on our list to update. We've tried a couple times in the past but ran into issues with things like the drag and drop sorting used for the template field type and haven't debugged it yet.
Thanks!