Search

@cmdillon: can you paste a code snippet?

well it seems i found the problem.

i had to disable "automatically replace divs to paragraphs" and "enable text cleanup on paste" in the redactor settings.

hi,

is there a way to extend the allowed tags to include html5 tags?

things seem to be working ok now. i changed the bellow listed files "allowedTags" information to include the tags i needed.

  • /extensions/richtext_redactor/lib/redactor.js
  • /extensions/richtext_redactor/extension.driver.php

@remie: is it possible to change the url for file uploads?

at the moment they are: http://<site>/symphony/extension/richtext_redactor/getfile/?<image>

it would be great if the host url was dynamic.

@cmdillon: I don't see this to be a useful feature for a symphony extension. Why would you like to be able to upload to a different domain?

Anyway, if you really fancy this, you could fork the repository and adjust it yourself.

@remie: i'm having some problems with the image upload.

on my local environment the image upload works as to be expected, but on my staging environment no images are getting uploaded to the server.

i have given 777 permission to /workspace/redactor folder and all it's contents.

is there another folder or file that i should try and change the permissions?

ok —i have narrowed it down to this error:

Warning: GenericErrorHandler 2 - mkdir(): Permission denied in file /symphony/lib/toolkit/class.general.php on line 481

this happens every time i click the add image button.

any help on this will be greatly appreciated.

@cmdillon: you can set the location to where the files are being uploaded. If you go to the preferences page you can adjust this to a path where you know that the web server user account has write permissions.

@remie: thanx for the tip. i noticed that while i was waiting for a reply and i made the changes. now everything works.

about the other question regarding the dynamic host url: it would make it easier to move from local environment to staging etc.. at the moment i have to go to each content and change the http url from the local environment to my staging and i assume i'll have to do the same again for the production.

what would be nice is if the host url would be written out dynamically depending on what environment you are running.

or am i missing something?

about the other question regarding the dynamic host url: it would make it easier to move from local environment to staging etc.. at the moment i have to go to each content and change the http url from the local environment to my staging and i assume i'll have to do the same again for the production.

Upload path in settings? Use a relative path: workspace/redactor/files

@Lewis: i already tried that. did not work. redactor writes the src url for the image as:

http://<site>/symphony/extension/richtext_redactor/getfile/?name=d9c02cfc28deef10990153bf1c8c07e4.jpg

I believe the location for the URL is already relative in the extension. I use it in multiple environments (dev, staging, production) and it always works as long as the location to upload the files to is the same everywhere. As Lewis is pointing out, this could also be relative to the workspace.

@remie: sure you can use it in multiple environments (dev, staging, production), but it would seem that you can't make a database dump of one environment, import it into another and have the paths to the images match the new host if redactor is using http:// in the src attribute.

i had to change all the paths manually. i was hoping that i could change the host information and the paths would be correct, but i couldn't.

again, maybe i'm missing something. i'm not a super symphony guy. :)

@cmdillon: or perhaps I didn't understand what you are trying to tell me :)

I now see your point, the path including the host URL is indeed hardcoded into the page content which is stored in the database. I will create an issue for this and try to fix it for the next release of the extension.

EDIT: issue #5 (https://github.com/remie/richtext_redactor/issues/5)

I'd accepted this as something to deal with, awesome to hear that you'll be looking to make it more 'transportable'.

@remie: awesome! thanx adding this to your todo list.

Anyone having issues using JIT with images uploaded by this extension?

JIT gives:

Error: Connecting to redactor/images/459e6ff91af477b90bac9c1be8593524.jpg is not permitted.

Regarding image uploads.

We have a very set routine of separating images out by section in an uploads folder, which this extension now ignores.

Would it be possible to have the path specified in the config take a parameter, like {$section} or others too, so we can have images be directed to different locations?

The team have specified that they really want to use this on projects, but this is the stumbling block for us.

Love this WYSIWYG, would keep clients quiet as they can manage a lot of content themselves very easily. Especially love that upload files/image modal box.

Just looked at the readme for Redactor that's included and it seems like a license may be required for all who install this? Am I understanding this correctly or does it mean that the original developer would need to have a license..? Can someone who's a bit more savvy on the legal side confirm either way?

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details