Hi All,
I was wondering if anybody has managed to lock certain areas of custom templates. I'm currently looking into fckedtior as a potential wysiwyg interface for a cms and newsletter system, and need to be able to restrict editing in certain areas of the page.
So far I've had limited success, using a combination of js eventhandlers actually written into the template (onresizestart, on selectstart, onkeypress)which return false; and using the contenteditable=false attribute on protected areas.
These only work in IE which for the spec of the project is fine, however I'd much rather have FF support.
I have also been able to add a class name to the protected areas ( class="noedit" ) and check that this does not exist when commands are called from the context menu, however this does not prevent the user from making change with the mouse or keyboard.
If anybody has any previous ewxperience and could point me in the right direction I would be very gratefull!!
Thanks
Dan
I was wondering if anybody has managed to lock certain areas of custom templates. I'm currently looking into fckedtior as a potential wysiwyg interface for a cms and newsletter system, and need to be able to restrict editing in certain areas of the page.
So far I've had limited success, using a combination of js eventhandlers actually written into the template (onresizestart, on selectstart, onkeypress)which return false; and using the contenteditable=false attribute on protected areas.
These only work in IE which for the spec of the project is fine, however I'd much rather have FF support.
I have also been able to add a class name to the protected areas ( class="noedit" ) and check that this does not exist when commands are called from the context menu, however this does not prevent the user from making change with the mouse or keyboard.
If anybody has any previous ewxperience and could point me in the right direction I would be very gratefull!!
Thanks
Dan