Question
Pegasystems Inc.
IN
Last activity: 15 Jun 2016 10:02 EDT
Please let me know how to make some fields read only and some fields editable in single RTE.
I have one requirement where I have to make some fields read only and some fields editable in single RTE.
e.g : There is some Text "Testing 12".
This will be displayed on RTE but "Testing" will be read only but "12" is editable.
Please let me know if this can be achieved or not.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
hello Sharmistha,
You don't have to add this tag for whole body. You need to add this only for the text which you want to be read only.
Like if you have a text like
<p> test</p> <p>word</p>
you can modify like
<p contenteditable
=false> test</p> <p>word</p>
Regards,
Ajit
Pegasystems Inc.
IN
Hello Sharmistha,
Good evening!!
Could you please use the source view of the RTE and then include the contenteditable
tag with false value.
Please test the above suggestion and get back to us with your findings!!
Regards,
Ajit
Pegasystems Inc.
IN
If I change the Body contenteditable value to false the entire RTE is now readonly.but In my case I need only few contents editable and few as readonly in one single RTE
Accepted Solution
Pegasystems Inc.
IN
hello Sharmistha,
You don't have to add this tag for whole body. You need to add this only for the text which you want to be read only.
Like if you have a text like
<p> test</p> <p>word</p>
you can modify like
<p contenteditable
=false> test</p> <p>word</p>
Regards,
Ajit
Pegasystems Inc.
IN
Thanks Ajit
I have added that tag and its working properly.Though they are not in a single line , due to the <p> tag they are coming in different lines.
Pegasystems Inc.
IN
If you want to keep both the elements on the same line, you may use the below CSS style.
display:inline;
float:left;
Please test the above suggestion and get back to me with your findings.
regards,
Ajit
Pegasystems Inc.
IN
Hi Ajit
Is there any way to get the content of paragraph in a property.
Pegasystems Inc.
US
Hi Sharmishta
How many characters are looking to store ?
If you are looking for a property, I think the one that'll fir your bill is a simple text property. I am not sure what determines the max length for this. I am thinking the underlying Java limitation should hold.
Pegasystems Inc.
IN
I am able to store the values as readonly and editable in RTE so is there any way to restrict the key board controls as well as mouse events.I had used java script to implement it , but the its not working