|
Search
You searched for the word(s):
< 1 second(s)
-
What a doofus I am! The answer is to use:
window.opener.insert_content(window.opener.Editor1, 'Sample Text');
and not:
window.opener.insert_content(window.opener.document.Editor1, 'Sample Text');
In other words, leave off the document. Sorry for the premature post. But maybe this will help someone ...
-
Ok, I had that working within the same window, but if I open a new window, how do I access the Editor object within the parent window from the opened window?
For example, I created a wrapper function for insertHTML where I pass Editor1 as the Editor object. My function is defined as follows (this is all Javascript, not ...
-
Yes, that did the trick. Please let me know if I am using it incorrectly and will end up crashing the editor or something, lol!
-
I think I may have found the answer. In WinIE.js there is a Javascript function used as follows:
insertHTML(current.EditorID, html);
where current is the editor object and html is the content to be inserted. I'll give that a whirl and see what happens.
-
Thanks, Adam.
Unfortunately the code snippet dropdown will only work for static inserts (that is, dynamic when the page is created, but not dynamic once the page is rendered). In other words, I need to have a button that the user presses that will open a new window, allow the user to type in some stuff, then perform the insert using the ...
-
If I wanted to make an exterior button that will insert some specific text at the current cursor location in the editor, what's the best way to accomplish that? I saw something about an ''innertext'' property, but I couldn't find it in the manual. I know you have custom buttons for the Editor coming in a future release, so for the time being, ...
-
-
Greetings!
I added several templates to the template directory and updated the XML file to reflect them. It works fine, but the template browser dialog is too small to show them all and even the ok/cancel buttons are off the dialog. I can manually resize the dialog window to get at them, but users of mine may not know that. Is there a way ...
-
Thank you very much Adam! I look forward to checking out the new version!
And thanks for that example. By reviewing the Javascript code in the child window, I was able to determine exactly what I needed.
Thanks again!
-
Greetings! I have CuteEdit v1.6 for classic ASP (I am waiting to hear back about upgrading), and I wanted to add an export option for the user to save the content to their own computer.
Basically I have a Javascript function that will do the trick to open up a new browser window with the content, where the user can then do a ''Save ...
|
|
|