fuelimage plugin and CKEditor

edited April 2013 in Installation
Is it possible to force absolute urls with this plugin, or pre-configure it to open a particular assets folder?

Comments

  • edited 8:50AM
    The img_path functions 3rd parameter if set to TRUE will make the paths absolute. With regards to opening a particular sub image folder, that is not currently supported from within CKEditor or markItUp.
  • edited 8:50AM
    Actually, I was able to figure out an easy way to do that and have posted an update. If you pass an img_folder parameter to your field, it will look in that image subfolder (e.g. "blog")
  • edited April 2013
    I got the update plugin file, copied it into my project, and in the model's form_fields() method I added:

    $fields['content']['img_folder'] ='mypath';

    but it doesn't seem to have had an effect?

    I tried it with a fresh checkout of FUEL though and it works with either CK or markitup, so I guess I need to do some merging.

    With regard to the absolute urls - I mean the PHP shortcodes ({img_path()}) that are inserted by the plugin. Could these be made to use an absolute url?

    I'm in that situation where one is trying to create a WYSIWYG that creates material for a newsletter, so the content must be absolute.

    I tried using CKEditor's suggested solution, and in MY_fuel.php added baseHref to the $config['ck_editor_settings'] array, but again, without any effect.
  • edited 8:50AM
    Is the folder writable? If not, it will default to the images folder. With regards to the img_path function, right now, you'll need to manually enter it in in the source view mode like so:
    {img_path('my_img', null, 1)}
  • edited 8:50AM
    I'm thinking of admitting defeat on using CKEditor for a newsletter WYSIWYG, since the disconnect from the full HTML DOM to the one you need to use for email clients is too big a gap to bridge. So...

    Is it possible to configure markitup only for a given module, but keep CKEditor elsewhere?
  • edited 8:50AM
    It isn't something that can be controlled at the module level but you can add the "class" => "markitup" or "class" => "wysiwyg" on individual fields to toggle between the different editors.
    $fields['content']['class'] ='markitup';
  • edited 8:50AM
    Was the folder not being writable part of the problem with it not selecting that specific image folder?
  • edited April 2013
    Sorry - didn't get back to you about the folder.

    I've written files to the specified folder (using the fuelimage upload), so that's not the issue. Preselection works fine with a new install of Fuel (obviously!) but not with the current project, but stupidly, I haven't set up SVN to be able to sideload Git imports, so the project isn't wholly up to date, maybe that's the problem.
Sign In or Register to comment.