Skip to main content
  Monday, March 22 2021
  3 Replies
  1.2K Visits
  Subscribe
Hi,

I'm trying to use your editor in a custom component (generated by component-creator) and the buttons "jInsertEditorText" are not working.

I did a test in Article and it's working.

The problem is in :


var oEditor = CKEDITOR.instances[editor];


It can't get the content we need to do the "insertHtml".

Could you help me?

Thanks !
A
3 years ago
Hi,

Thanks for contacting us here about this extension.

I'm trying to use your editor in a custom component (generated by component-creator) and the buttons "jInsertEditorText" are not working.

I did a test in Article and it's working.

The problem is in :


var oEditor = CKEDITOR.instances[editor];


It can't get the content we need to do the "insertHtml".

Could you help me?


I'm sorry, here is a pre-sale forum, we do not support technical issues here.


Thanks a lot!
Kind regards,
C
3 years ago
Thanks for your answer.

Yes but I don't want to buy before solving this this problem?
C
3 years ago
Ok find the problem by myself (like always).

for the next who have this ->

The edtior form from article is -> jform_articletext
The editor form form your component is ->jsform_nameofyourxmlfield.

So in the button function of your editor, you should use this custom jsform name :


window.parent.jInsertEditorText(tag, 'jsform_nameofyourxmlfield');

  • Page :
  • 1
There are no replies made for this post yet.