1

TyniMce-magento

When i disable tinyMce, i got

tyniMce

I don't know why...

4
  • Looks like browser cache? CTRL+R ? Do you have any JS errors in console?
    – zhartaunik
    Commented Aug 4, 2015 at 9:40
  • thanks , but i was disabled cache ...
    – Andy Ng
    Commented Aug 4, 2015 at 9:42
  • and my console empty
    – Andy Ng
    Commented Aug 4, 2015 at 9:59
  • I spoke about browser cache. Try to open in another browser
    – zhartaunik
    Commented Aug 4, 2015 at 10:00

1 Answer 1

3

The problem (most probably) is that you field is named content.
This means it will get the html id content in the dom.
But there is already an element with this id. It's the page container.
You can either change the name of your field or add a prefix to all ids of the form elements.
In the tab class that generates the form add this line:

 $form->setHtmlIdPrefix('post_');

anywhere in the code before calling $this->setForm($form) and after calling $form = .....
Use the cms page admin as example. The page also contains a field called content, but the problem does not reproduce there because it is handled as I explained. See the core code as reference

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.