when i try to use setValue the second time it's not working. also in the demo the 'set some value' is not working, any suggestions what to do about this?
i use ExtJS 4.1 and Ext.ux.form.TinyMCETextArea 1.2
same thing in Chrome 19 and Firefox 12 on Ubuntu 11.10
this is my controller function:
Code:
openTextEditor : function(event, element) {
var me = this;
me.currentTextElement = element;
console.log(me.currentTextElement, 'me.currentTextElement');
if(typeof me.textEditor === 'undefined')
me.textEditor = me.getWorkspaceTextEditor();
var textfield = me.textEditor.down('form').getForm().findField('content');
textfield.setValue(me.currentTextElement.data.properties.content);
me.textEditor.show();
},
me.textEditor is a window component.
it seems like the first time setValue is called it is applied directly to the textfield and then loaded by tinymce on first load/show, but the setValue function from Ext.ux.form.TinyMCETextArea which is used on the second change is not working at all