Opened 17 years ago
Last modified 13 years ago
#1376 closed New Feature
"disabled" R/W property — at Version 1
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.6 |
Component: | General | Version: | 3.5.2 |
Keywords: | IBM Confirmed | Cc: | saul11@…, Damian, joek, satya_minnekanti@…, fredrik@… |
Description (last modified by )
Like other input text controls on forms (<textarea>, <input type="text">, etc) FCKeditor need a new property on JavaScript API.
Something that can be change at runtime in this way:
var oEditor = FCKeditorAPI.GetInstance('instance_name'); oEditor.disabled = true;
This new property must be R/W (like those coresponding to <TEXTAREA>, <INPUT TYPE="TEXT"> from DOM).
This property must take a boolean value: true (by default), false;
Setting this property to "true" must freeze the toolbar too, not only the editor area.
The other hidden fields related to the editor must be treated in the same way.
Moved from Original author: Claudiu Cristea
Change History (1)
comment:1 Changed 17 years ago by
Cc: | saul11@… Alfonso Martínez de Lizarrondo added |
---|---|
Description: | modified (diff) |
Reporter: | changed from Alfonso Martínez de Lizarrondo to claudiu_cristea@… |
Date: 2006-08-31 14:44 Sender: claudiu_cristea
There is a mistake in the above post. Correct is: the default value must be "false"
Date: 2006-11-28 16:29 Sender: nobody
Any chance of it being implemented soon?
Date: 2006-11-08 20:19 Sender: nobody
this would be extremely useful.
Date: 2006-12-05 18:42 Sender: alfonsoml
https://sourceforge.net/tracker/index.php?func=detail&aid=1492728&group_id=75348&atid=543656 https://sourceforge.net/tracker/index.php?func=detail&aid=1400604&group_id=75348&atid=543656 https://sourceforge.net/tracker/index.php?func=detail&aid=865880&group_id=75348&atid=543656
Have been marked as duplicate of this report.
Right now I think that Internet Explorer doesn't allow to create setters and getters, so at best it would be a function like .SetEnabled( bNewValue)
Date: 2007-04-02 15:20 Sender: saul11
Independant of this request I have written a toggleFCKeditor function. It disables and re-enables the FCKeditor. When disbaled, the whole toolbar is grayed out and the editorArea will not receive any input. Optionally the toolbar can be hidden or collapsed. In this manner, when re-enabled, the toolbar will show again or be expanded. Note: When disabled, the editorArea is also grayed out in IE.
So no boolean, but a toggle function.
I have created a new page for things like this: http://fcksnippets.saulmade.nl/ (alias of http://www.saulmade.nl/FCKeditor/FCKSnippets.php) Here you can read more about the function, see a demo and get your download.