Issue with tinyMCE init after loading content by ajax (IE7,8)
I have a problem with initialization tinyMCE (Version 3.4.7 (2011-11-03))
in IE 7,8. It worked in all other browsers but has a problem in IE. The
problem manifested in the following:
I load content by Ajax and started tinyMCE initialization (after inserting
this content and dom ready event)
Edit text content in tinyMCE editor
Save or not save this content and load again this page content by Ajax and
init tinyMCE the same as first
tinyMCE inited fine but... all inputs and same ad tinyMCE are not
clickable and can't be focused.
My initialization of tinyMCE the next:
tinyMCE.init({
mode : "textareas",
//editor_selector : selector,
theme : "advanced",
plugins : "legacyoutput, paste",
width: 630,
theme_advanced_buttons1 : "link,unlink",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
force_br_newlines : false,
force_p_newlines : true,
convert_newlines_to_brs : true,
forced_root_block : false,
/*style cleaner*/
paste_auto_cleanup_on_paste : true,
paste_remove_styles: true,
paste_remove_styles_if_webkit: true,
paste_strip_class_attributes: true,
paste_text_sticky: true,
paste_as_text: true,
paste_text_sticky_default: true,
setup : function(ed) {
ed.onChange.add(function(ed, e) {
changed = true;
});
ed.onKeyUp.add(function(ed, e) {
changed = true;
});
}
});
If I tried to load the content without tinyMCE all works fine.
Also I tried to remove tinyMCE after loading as
tinyMCE.execCommand('mceRemoveControl', false, 'tiny_editor');
and init it again and it not helped.
On the first boot it also works. Can I kill it completely and
re-initialize ? or do you have any something else idea ?
Bolig
Thursday, 3 October 2013
Wednesday, 2 October 2013
Counting Memory
Counting Memory
So I defined a long such as:
memTotal: .long 0
Then, I am adding to it with something like this:
addl 12(%di), %ecx
Where I then move %ecx to memTotal. My question is, how would I go about
calculating the size in MB of the memTotal. I tried something along the
lines of:
shrl $20, %eax
But how would I then print that as in int for MB?
Am I on the right track? Any help is appreciated.
So I defined a long such as:
memTotal: .long 0
Then, I am adding to it with something like this:
addl 12(%di), %ecx
Where I then move %ecx to memTotal. My question is, how would I go about
calculating the size in MB of the memTotal. I tried something along the
lines of:
shrl $20, %eax
But how would I then print that as in int for MB?
Am I on the right track? Any help is appreciated.
getting button dimensions as iphone in ipad
getting button dimensions as iphone in ipad
I was added new file(view controller) in xcode like cocoa
touch->objective-c class and subclass of viewcontroller.
again i added new file for ipad xib like
userinterface->Application and created. but if added sub views
in iphone and ipad and if i run in i pad i am getting iphone
subviews frame, where i am going wrong.i spent a lot of time on
this issue, plz help me.
but for some view controllers i am getting fine here.
thank you......
I was added new file(view controller) in xcode like cocoa
touch->objective-c class and subclass of viewcontroller.
again i added new file for ipad xib like
userinterface->Application and created. but if added sub views
in iphone and ipad and if i run in i pad i am getting iphone
subviews frame, where i am going wrong.i spent a lot of time on
this issue, plz help me.
but for some view controllers i am getting fine here.
thank you......
Tuesday, 1 October 2013
How do I switch chars at certain indexes of a char array?
How do I switch chars at certain indexes of a char array?
Lets say I have a char array maze[][] and it contains this:
P . X X .
. X . . .
. . . X .
X X T . .
. . X . .
And I am writing a function that if you want to move down, will bring "P"
from maze[0][0] to maze[1][0] and then bring "." from maze[1][0] to
maze[0][0] and so on...
Basically how do I trade the values at 2 indexes in a char array?
Lets say I have a char array maze[][] and it contains this:
P . X X .
. X . . .
. . . X .
X X T . .
. . X . .
And I am writing a function that if you want to move down, will bring "P"
from maze[0][0] to maze[1][0] and then bring "." from maze[1][0] to
maze[0][0] and so on...
Basically how do I trade the values at 2 indexes in a char array?
Named function parameters in PHP
Named function parameters in PHP
Is it possible in php like in python to have named function parameters? An
example use case is:
function foo($username = "", $password = "", $timeout = 10) {
}
I want to override $timeout:
foo("", "", 3);
Ugly. I would much rather do:
foo($timeout=3);
Is it possible in php like in python to have named function parameters? An
example use case is:
function foo($username = "", $password = "", $timeout = 10) {
}
I want to override $timeout:
foo("", "", 3);
Ugly. I would much rather do:
foo($timeout=3);
How do I install Ubuntu on a brand new laptop with only FreeDos on it?
How do I install Ubuntu on a brand new laptop with only FreeDos on it?
I just bought a Lenovo IdeaPad G500s (Intel® CoreTM i3, 4GB of RAM,
GeForce GT 720M) with only FreeDos on it. I decided to install Ubuntu
13.04 on it and followed the steps from this page:
https://help.ubuntu.com/community/Installation/FromUSBStickQuick After
choosing to boot from the the stick, a black and white menu appears asking
me to choose between trying Ubuntu without installing, installing, OEM
installing and checking disk for errors. However, no matter what option I
choose, I get the following message: error: invalid magic number. error:
you need to load the kernel first.
Press any key to continue...
After I press something I get back to the menu.
I must mention I am just an average user with very little knowledge about
computers and programming.
I just bought a Lenovo IdeaPad G500s (Intel® CoreTM i3, 4GB of RAM,
GeForce GT 720M) with only FreeDos on it. I decided to install Ubuntu
13.04 on it and followed the steps from this page:
https://help.ubuntu.com/community/Installation/FromUSBStickQuick After
choosing to boot from the the stick, a black and white menu appears asking
me to choose between trying Ubuntu without installing, installing, OEM
installing and checking disk for errors. However, no matter what option I
choose, I get the following message: error: invalid magic number. error:
you need to load the kernel first.
Press any key to continue...
After I press something I get back to the menu.
I must mention I am just an average user with very little knowledge about
computers and programming.
What if you actually need a question answered=?iso-8859-1?Q?=2C_even_though_it_would_likely_spark_discussion=3F_=96_me?=ta.stackoverflow.com
What if you actually need a question answered, even though it would likely
spark discussion? – meta.stackoverflow.com
On Stack Exchange, I've pretty much only ever used Stack Overflow, and one
thing they push (fairly) strongly is that questions should have specific
answers. Make yes or no questions, or questions on …
spark discussion? – meta.stackoverflow.com
On Stack Exchange, I've pretty much only ever used Stack Overflow, and one
thing they push (fairly) strongly is that questions should have specific
answers. Make yes or no questions, or questions on …
Subscribe to:
Posts (Atom)