- Posts: 30
COMMUNITY FORUM
Editor-xtd Buttons missing from k2ItemFormEditor
- Jack Hughes
- Topic Author
- Offline
- Junior Member
Less
More
8 years 11 months ago #142730
by Jack Hughes
Editor-xtd Buttons missing from k2ItemFormEditor was created by Jack Hughes
Greetings,
In K2 Extra Fields, when we use an textarea (with editor) the editor-xtd buttons (joomla plugin) does not show in the item form. This is incredibly important to us as this is how we link to Docman documents.
The editor-xtd button display properly in the content field with our editor which is JCE. We get the same behavior with MCE editor also.
Here is a screenshot to show you what I mean:
Where can we hack this in K2 to get these buttons to display?
In K2 Extra Fields, when we use an textarea (with editor) the editor-xtd buttons (joomla plugin) does not show in the item form. This is incredibly important to us as this is how we link to Docman documents.
The editor-xtd button display properly in the content field with our editor which is JCE. We get the same behavior with MCE editor also.
Here is a screenshot to show you what I mean:
Where can we hack this in K2 to get these buttons to display?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 11 months ago #142755
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Editor-xtd Buttons missing from k2ItemFormEditor
Hello Jack,
Unfortunately editor-xtd buttons are not available in the extrafields.
Unfortunately editor-xtd buttons are not available in the extrafields.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Jack Hughes
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
8 years 11 months ago #142773
by Jack Hughes
Replied by Jack Hughes on topic Editor-xtd Buttons missing from k2ItemFormEditor
Thanks for the info Krikor. Can you what file I could hack to make this happen?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
8 years 11 months ago #142802
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Editor-xtd Buttons missing from k2ItemFormEditor
@Jack Hughes
It's not that simple as hacking a file. You need to change the way the extra fields are rendered. Currently the editor extra field is rendered as textarea initially and then using javascript we are appending the WYSIWYG editor to it. Since extra fields are rendered through AJAX you need to:
1. Change the initial output of the field to include the editor buttons.
2. Use javascript to attach the events of the buttons after the field output is rendered.
Instead of going into this procedure and hacking K2, i suggest to create a K2 plugin and implement the desired functionality there.
It's not that simple as hacking a file. You need to change the way the extra fields are rendered. Currently the editor extra field is rendered as textarea initially and then using javascript we are appending the WYSIWYG editor to it. Since extra fields are rendered through AJAX you need to:
1. Change the initial output of the field to include the editor buttons.
2. Use javascript to attach the events of the buttons after the field output is rendered.
Instead of going into this procedure and hacking K2, i suggest to create a K2 plugin and implement the desired functionality there.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.