Hi All,
I'm trying to override the default functionality of CKEditor disabling form fields.
When form fields are inserted, e.g. checkbox, I would like to preserve the browser functionality. i.e. If I click the checkbox in the WYSIWYG area it will (un)check the checkbox accordingly.
I feel I am pretty familiar with CKEditor and I have developed a couple of plugins and some moderate customization, but I can't figure this one out. The obvious lies in the wysiwygarea/plugin.js line 404:
However, removing the preceding snippet doesn't work.
Your ideas/suggestions are greatly appreciated.
Thanks.
I'm trying to override the default functionality of CKEditor disabling form fields.
When form fields are inserted, e.g. checkbox, I would like to preserve the browser functionality. i.e. If I click the checkbox in the WYSIWYG area it will (un)check the checkbox accordingly.
I feel I am pretty familiar with CKEditor and I have developed a couple of plugins and some moderate customization, but I can't figure this one out. The obvious lies in the wysiwygarea/plugin.js line 404:
if ( ev.data.getTarget().is( 'input', 'select' ) ) ev.data.preventDefault();
However, removing the preceding snippet doesn't work.
Your ideas/suggestions are greatly appreciated.
Thanks.
Re: Enabling Form Fields in WYSIWYG Area
Update: I have updated to 3.3.1 and tried the nightly build. It seems as simple as using the contenteditable attribute. However, in FF radio buttons and checkboxes do not work - there is an outdated fix with:
http://dev.fckeditor.net/ticket/4056
The current open ticket is:
http://dev.fckeditor.net/ticket/5804
I will be attempting this myself in the meantime. I will share once available.