Monday, March 22 2021
  3 Replies
  830 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
more than a month 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
more than a month ago
Thanks for your answer.

Yes but I don't want to buy before solving this this problem?
C
more than a month 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.
Be one of the first to reply to this post!