bernhard Posted February 17, 2021 Share Posted February 17, 2021 Let's say I wanted to build a ticketing system... And I wanted to have common answers ready to be inserted into my answer to the ticket creator... Do we have solutions for that already? I have done that like this years ago: https://processwire.com/talk/topic/17207-custom-office-management-crmcontrolling-software/?do=findComment&comment=151471 But I thought something like https://processwire.com/talk/topic/18289-processmention-forum-mentions-style-page-link-autocomplete-for-ckeditor/ could be more convenient/versatile... Thx for your input PS: Actually I'm thinking if a solution NOT limited to ckeditor fields wouldn't be better. Why not add this functionality to any text input field you like?! Link to comment Share on other sites More sharing options...
BitPoet Posted February 17, 2021 Share Posted February 17, 2021 Instead of ProcessMention, you may want to look at its successor CKInlineComplete. It's got a bit of boilerplate so you can easily extend it with your own InlineCompleteAction. Creating an action module that searches the name or title of answer pages and returns the anser's HTML from a field there should be straight forward. I guess it would be possible to extend the functionality to plain textareas as well, though the code in plugin.js makes use of CKE's range api a lot and positioning relies on its iframe, thus it would mean a bit of refactoring work. 4 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now