0

ZK ckeditor how to set readonly [closed]

asked 2013-06-26 17:00:03 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2611 3 8
http://emrpms.blogspot.in...

updated 2013-06-26 17:48:43 +0800

Can you please tell me how to make ckeditor as read only component as like of other component in ZK ?

I found this example from ckeditor.com But do not know how to do the same when comes to ZK ?

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by Senthilchettyin
close date 2013-06-27 06:09:09

2 Answers

Sort by » oldest newest most voted
0

answered 2013-06-27 03:02:10 +0800

paowang gravatar image paowang
140 6

Try following, I use ZK 6.5.2 and ckez 3.6.0:

test.zul

<zk>
    <ckeditor customConfigurationsPath="/ckconfig.js">
    <attribute name="value"><![CDATA[
            Test
    ]]></attribute>
    </ckeditor>
</zk>

ckconfig.js

CKEDITOR.editorConfig = function( config )
{
    config.readOnly = true;
};
link publish delete flag offensive edit

Comments

It is working fine. Thank you very much

Senthilchettyin ( 2013-06-27 06:08:53 +0800 )edit
0

answered 2013-06-27 04:06:15 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2611 3 8
http://emrpms.blogspot.in...

Thank you very much. But in some scenario i need read/write and in some scenario i need readonly. So i need to create two config file and swtich in the VM(Composer) at the run time ?

link publish delete flag offensive edit

Comments

Yes, I think so. But I didn't try it before.

paowang ( 2013-07-01 02:39:34 +0800 )edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-06-26 17:00:03 +0800

Seen: 34 times

Last updated: Jun 27 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More