Making readonly TinyMCE fields
Options
The problem I'm running into is that setting one TinyMCE field to ReadOnly seems to set them all. Consider the following DCT:
[HTML]
<script language="Javascript">
function dctInit() {
IWDatacapture.getItem('/a/a1').setReadOnly(true);
}
IWEventRegistry.addFormHandler('onFormInit', dctInit);
</script>
<br />
<br />
[/HTML]
As is, both fields a1 and a2 become readonly. Comment out the setReadOnly line and both become editable. Any thoughts?
[HTML]
<script language="Javascript">
function dctInit() {
IWDatacapture.getItem('/a/a1').setReadOnly(true);
}
IWEventRegistry.addFormHandler('onFormInit', dctInit);
</script>
<br />
<br />
[/HTML]
As is, both fields a1 and a2 become readonly. Comment out the setReadOnly line and both become editable. Any thoughts?
0
Comments
-
Thanks for the suggestion. I gave it a shot but it happens not only onFormInit and setting readonly in the datacap is inadequate because it doesn't render the html..0
-
There is supposed to be a newer version of TinyMCE coming with 6.7.2 - I suggest you open a case with Support so that they can (a) try to reproduce the problem with the current version and (b) verify [or get Engineering involved] that the problem doesn't exist in 6.7.2...Thanks for the suggestion. I gave it a shot but it happens not only onFormInit and setting readonly in the datacap is inadequate because it doesn't render the html.. 0 -
Yeah, I've opened a support case. They're still investigating.0
-
sounds like a bug.The problem I'm running into is that setting one TinyMCE field to ReadOnly seems to set them all. Consider the following DCT:
[HTML]
<script language="Javascript">
function dctInit() {
IWDatacapture.getItem('/a/a1').setReadOnly(true);
}
IWEventRegistry.addFormHandler('onFormInit', dctInit);
</script>
<br />
<br />
[/HTML]
As is, both fields a1 and a2 become readonly. Comment out the setReadOnly line and both become editable. Any thoughts?0 -
looks like a bug in FormAPI. Did you try setting the readonly element in your DCT instead?The problem I'm running into is that setting one TinyMCE field to ReadOnly seems to set them all. Consider the following DCT:
[HTML]
<script language="Javascript">
function dctInit() {
IWDatacapture.getItem('/a/a1').setReadOnly(true);
}
IWEventRegistry.addFormHandler('onFormInit', dctInit);
</script>
<br />
<br />
[/HTML]
As is, both fields a1 and a2 become readonly. Comment out the setReadOnly line and both become editable. Any thoughts?0
Categories
- All Categories
- 108 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.