-
22 May 2008 11:03 PM #91
Another issue
Another issue
Also having another issue with the editor.
I load it using metaForm which all seems to work great except I get 2 errors:
this.getDoc() has no properties
http://127.0.0.1/Conductor/Conductor...ce/tiny_mce.js
Line 1
e has no properties
http://127.0.0.1/Conductor/Conductor...ce/tiny_mce.js
Line 1
I have followed the examples and tried placing the following code before my onReady event:
But this didn't help, possibly because I am using meta form. Any help would be greatly appreciated!Code:// Initialise the TinyMCE editor for use by any of the components Ext.ux.TinyMCE.initTinyMCE();
Apart from the 2 errors (and the resize issue above) - which I think has to do with how I am creating the editor, this is a great extension. Thank you!
-
26 May 2008 2:25 AM #92
i have a problem when rendering components in Ext.onReady...
I call Ext.ux.TinyMCE.initTinyMCE() before Ext.onReady. the Editor will be rendered but with the wrong configuration...
With first call of Ext.ux.TinyMCE.initTinyMCE() the editor(s) will be initialized with the standard configuration. After that tmceInitialized will be true.
Then comes the calls of my xtypes... But tmceInitialized is true from the first call an the editors will not be initialized with the right language...
Next Problem:
When use the Spellchecker-Plugin the misspelled word are marked for a second and will be overwrited when call form.isDirty().
Any ideas?
Bye, Dumbledore
-
26 May 2008 8:04 PM #93
-
26 May 2008 8:40 PM #94
Hi AVerta,
your must sync the value before submit via syncValue() or tinyMCE.triggerSave();
Bye, Dumbledore
-
27 May 2008 12:09 AM #95
usefull modifications!?
usefull modifications!?
Hi,
after study the source and the documentation of tinyMCE i modified this extension for my personal requirements.
I implement a isDirty() Funtion:
and i inserted in setValue following to get the isDirty() working:Code:/** * own isDirty() Function - maps to the TinyMCE-isDirty() */ isDirty : function() { if(this.disabled) { return false; } return this.ed.isDirty(); }
Code:/** ---------------------------------------------------------- */ setValue : function( v ){ this.value = v; if( this.rendered ) this.withEd( function(){ this.ed.undoManager.clear(); this.ed.setContent( v === null || v === undefined ? '' : v ); // rb - patch for handling isDirty() this.ed.startContent = this.ed.getContent({format : 'raw'}); this.validate(); }); },
perhaps someone find it usefull...
Bye, Dumbledore
-
27 May 2008 1:55 AM #96
-
27 May 2008 2:07 AM #97
All resizing is inherited from Ext.BoxComponent, so it should work as other elements. For an instance, standard "resize" event should be fired. I've checked resizing to the "fit" layout (works) and vertical resizing with Ext's resizer. It was working as expected. If this problem still persist, can you provide me with test case on the base of my example files?
Just as a notice, TinyMCE's built-in resizing mechanism is not supported. Use Ext instead.
-
27 May 2008 2:31 AM #98
-
27 May 2008 2:35 AM #99
-
27 May 2008 2:39 AM #100


Reply With Quote

