Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable text #43

Open
xorgxx opened this issue Apr 24, 2018 · 1 comment
Open

Variable text #43

xorgxx opened this issue Apr 24, 2018 · 1 comment

Comments

@xorgxx
Copy link

xorgxx commented Apr 24, 2018

Hi i'm using your bundle, with "normal" variable it's since to work perfect. But with text varaible i have trouble. it never give back uncript value, alway give encript in twig.

Eny help? Thank

@xorgxx
Copy link
Author

xorgxx commented Apr 24, 2018

here is form :

........
            ->add('msg',CKEditorType::class, array(
                    "attr"          => array(
//                        "placeholder"   => "profile.form.msg.placeholder",
//                        'rows'          => '20'
                    ),
//                    "data" => "<ul><li>...</li></ul>",
                    'config_name' => null,
                    'config' => array(
                        'language'  => 'fr',
                        'toolbar'   => 'basic',
                        'placeholder' => 'profile.form.msg.placeholder',
//                        'height'    => 150,
                    ),
                    "label"         =>"profile.form.msg.name",
                    'required'      => false,
//                    "disabled"      => "disabled",
                )
            )
.....

Entity :

use Ambta\DoctrineEncryptBundle\Configuration\Encrypted;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use HTMLPurifier;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Vich\UploaderBundle\Mapping\Annotation as Vich;


/**
 * Profile
 *
 * @ORM\Table(name="profile")
 * @ORM\Entity(repositoryClass="ProfileBundle\Repository\ProfileRepository") *
 * @Vich\Uploadable
 */

class Profile
.........
    /**
     * @var string
     *
     * @ORM\Column(name="msg", nullable=true, type="text")
     * @Encrypted
     */
    private $msg;
.......

SF 3.316, PHP 5.5, ambta 2.5.4, egeloen/ckeditor-bundle ^6.0.

@xorgxx xorgxx closed this as completed Apr 24, 2018
@xorgxx xorgxx reopened this Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant