Ocean West Posted February 12, 2019 Posted February 12, 2019 I have a library of function/formulae that i want to be able to type into the editor by using something similar to using the @ to auto select a person perhaps use [[ to trigger the popup and as you type it suggest values like if i type [[ave it would show value translates to Average ( field { ; field ; field .. } ) if i choose the value it would embed to the editor without the trigger value and the data would be hyper linked to a specific url based on my glossary. Alternatively a button in the editor that when clicked will display a listing of functions formula where they could select and insert into the editor.
bfarber Posted February 13, 2019 Posted February 13, 2019 You will essentially want to create a ckeditor plugin: https://ckeditor.com/docs/ckeditor4/latest/guide/plugin_sdk_sample.html If you wanted to semi-model after our "mentions" plugin, you could look at applications/core/dev/ckeditor/plugins/ipsmentions/ to see what we've done.
Ocean West Posted February 13, 2019 Author Posted February 13, 2019 thanks been looking at the instructions but a lot of the ips added features are optimized/minified of formattng it's difficult to wade into this. I downloaded the whole ckeditor4 and not sure how to add basic stuff if I have to zip plugins and then upload them or manually push them there. for starters i wanted a simple table option. i see this in the instructions I am not sure what file this goes into? Quote It is now time to tell CKEditor to load our plugin. To do so we have to add its name to the CKEDITOR.config.extraPlugins configuration option: config.extraPlugins = 'timestamp';
bfarber Posted February 14, 2019 Posted February 14, 2019 When you install the plugin in the AdminCP, we take care of loading it automatically (after you add the plugin to the toolbar on the toolbars configuration page).
Ocean West Posted February 14, 2019 Author Posted February 14, 2019 every time i add something I end up with this. Then I reset then have to constantly re-add items back to the toolbars.
Nathan Explosion Posted February 14, 2019 Posted February 14, 2019 33 minutes ago, Ocean West said: every time i add something I end up with this. If it happens every time, what is it that you have been adding? That behaviour above usually indicates that the ckeditor plugin is either not compatible with the version of ckeditor in use on the site, or that there is an incompatibility with other ckeditor plugins. What plugins are you trying out? I'm happy to test them out and bork my editor on my test site.
Nathan Explosion Posted February 14, 2019 Posted February 14, 2019 30 minutes ago, Nathan Explosion said: What plugins are you trying out? What actual plugin have you tried that is triggering the issue you show above? Please provide a link to the ckeditor plugin page so I can download it and test it out for you.
bfarber Posted February 15, 2019 Posted February 15, 2019 Are you using Community In The Cloud? If so, you may need to wait a couple of minutes after uploading an editor plugin for Cloudfront caches to clear.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.