barman 0 Posted May 27, 2010 Report Share Posted May 27, 2010 Anyone able to find a fix for this? Want to drop content into an fckEditor box 1) turning off javascript doesn't work since the site doesn't provide an alternative2) can't right click to change attribute, since fck brings up a custom menu in the box "edit, copy" Quote Link to post Share on other sites
theninjamanz 29 Posted May 28, 2010 Report Share Posted May 28, 2010 do a search on the forum and ye shall find your answer. Quote Link to post Share on other sites
barman 0 Posted May 28, 2010 Author Report Share Posted May 28, 2010 oh no, i searched the forum. every solution on this forum i have tried. there is a solution for tinymce but it doesnt port over to fckeditor Quote Link to post Share on other sites
alcr 135 Posted May 28, 2010 Report Share Posted May 28, 2010 Can barman maybe provide an url to the fckeditor in question? Quote Link to post Share on other sites
barman 0 Posted May 28, 2010 Author Report Share Posted May 28, 2010 barman would love to, but barman does not want to out what he's doing. jscript off works for one site, not another. is it possible to turn it off and on depending on script? Quote Link to post Share on other sites
theninjamanz 29 Posted May 29, 2010 Report Share Posted May 29, 2010 oh no, i searched the forum. every solution on this forum i have tried. there is a solution for tinymce but it doesnt port over to fckeditor my mistake your right I read your message too quickly. Quote Link to post Share on other sites
The_Brit 13 Posted May 31, 2010 Report Share Posted May 31, 2010 Got any site that use the editor? Maybe I can take a look at it. Dave Quote Link to post Share on other sites
Frank 177 Posted May 31, 2010 Report Share Posted May 31, 2010 http://ubotstudio.com/forum/index.php?/topic/3335-solved-tinymce-iframe-javascript-need-to-fill-it-with-a-blog-post/ This particular post above should be pinned - it is excellent! Frank Quote Link to post Share on other sites
panoz 1 Posted August 30, 2010 Report Share Posted August 30, 2010 Anybody have any idea how to work this? Here's a site with this editor: obesityhelp(dot)com - You get to the FCKeditor when you try to create a blog. Quote Link to post Share on other sites
panoz 1 Posted September 3, 2010 Report Share Posted September 3, 2010 anybody figure this out? Quote Link to post Share on other sites
iglow 8 Posted September 3, 2010 Report Share Posted September 3, 2010 nope theres no workaround yeteven for barman Quote Link to post Share on other sites
meter 145 Posted September 3, 2010 Report Share Posted September 3, 2010 anybody figure this out?Spent an hour fiddling around with it to no avail Quote Link to post Share on other sites
meter 145 Posted September 4, 2010 Report Share Posted September 4, 2010 Ah finally, spent 4 hours on this fucking shit. On the obesityblog, when you are at the blog execute this javascript: javascript: void(FCKeditorAPI.GetInstance('post').SetHTML("Hello world<br>I hate this shit"));alert('hi') And it will change the text of the textbox to:Hello worldI hate this shit Here is the ubot code for editting the fckeditor window in the sample site: http://img31.imageshack.us/img31/145/45322643.jpg In order for it to work the page must be COMPLETELY DONE loading. Furthermore, in order to get this javascript to work on other sites with fckeditor, you need to find the instance name of the fckeditor by inspecting the html code of the page. In this case it was easy to find because it was in the actual link of the iFrame containing the fckeditor:/shared/df/FCKeditor2.6.3/editor/fckeditor.html?InstanceName=post&Toolbar=BlogPost ... but in other sites it won't be so easy. Anyways, cheers, I'm done with this shit. Javascript makes me so angry. -meter 1 Quote Link to post Share on other sites
Frank 177 Posted October 15, 2010 Report Share Posted October 15, 2010 Hey Meter - good call. But I've still had problems with this. Whenever I try to pass a variable with line lines in it, this command just doesn't work either. Simple text, ok, but otherwise zippo. Any ideas? (And I if figure it out, I will comment here.) Frank Quote Link to post Share on other sites
meter 145 Posted October 16, 2010 Report Share Posted October 16, 2010 Hey Frank, you're going to want to replace all newline characters (\r\n or just \n alone) with <br>. Cheers, -meter. Quote Link to post Share on other sites
Frank 177 Posted October 17, 2010 Report Share Posted October 17, 2010 Thanks meter, I went down the route of removing them with </p><p> but still running into issues. Seems if I try to enter too much data - about the size of an article, the whole thing just barfs. So I'm kinda stuck. Frank Quote Link to post Share on other sites
meter 145 Posted October 17, 2010 Report Share Posted October 17, 2010 Hey Frank, I'll look into posting a 300 word article on FckEditor later tonight. Cheers, -m Quote Link to post Share on other sites
Frank 177 Posted October 18, 2010 Report Share Posted October 18, 2010 Thanks love to hear you results! Frank Quote Link to post Share on other sites
meter 145 Posted October 18, 2010 Report Share Posted October 18, 2010 Hey Frank, I have no problem running the following JS code out of Ubot: void(FCKeditorAPI.GetInstance('post').SetHTML("Chiropractic is a health care discipline and profession that emphasizes diagnosis, treatment and prevention of mechanical disorders of the musculoskeletal system, especially the spine, under the hypothesis that these disorders affect general health via the nervous system.[1] It is generally categorized as complementary and alternative medicine (CAM),[2] a characterization that many chiropractors reject.[3] Although chiropractors have many attributes of primary care providers, chiropractic has more of the attributes of a medical specialty like dentistry or podiatry.[4] The main chiropractic treatment technique involves manual therapy, including manipulation of the spine, other joints, and soft tissues; treatment also includes exercises and health and lifestyle counseling.[5] Traditional chiropractic assumes that a vertebral subluxation or spinal joint dysfunction interferes with the body s function and its innate intelligence,[6] a vitalistic notion that brings ridicule from mainstream science and medicine.[7]<br><br>D.D. Palmer founded chiropractic in the 1890s and his son B.J. Palmer helped to expand it in the early 20th century.[8] It has two main groups: straights , now the minority, emphasize vitalism, innate intelligence and spinal adjustments, and consider subluxations to be the leading cause of all disease; mixers are more open to mainstream and alternative medical techniques such as exercise, massage, nutritional supplements, and acupuncture.[9] Chiropractic is well established in the U.S., Canada and Australia.[10]<br><br>Throughout its history, chiropractic has been controversial.[11][12] For most of its existence it has battled with mainstream medicine, sustained by ideas such as subluxation[13] that are not based on solid science.[14] Among chiropractors there are significant disagreements over vaccination.[15] The American Medical Association called chiropractic an unscientific cult [16] and boycotted it until losing an antitrust case in 1987.[17] Chiropractic has had a strong political base and sustained demand for services; in recent decades, it has gained more legitimacy and greater acceptance among medical physicians and health plans in the U.S.,[17] and evidence-based medicine has been used to review research studies and generate practice guidelines.[18]<br><br>Many studies of treatments used by chiropractors have been conducted, with conflicting results. Collectively, systematic reviews of this research have not demonstrated that spinal manipulation is effective, with the possible exception of treatment of back pain.[14] The efficacy and cost-effectiveness of maintenance chiropractic care are unknown.[19] Chiropractic care is generally safe when employed skillfully and appropriately.[20] Spinal manipulation is frequently associated with mild to moderate adverse effects, with serious or fatal complications in rare cases.[21][22] A systematic review determined that the risk of death from manipulations to the neck by far outweighs the benefits, even though only [t]wenty six fatalities were published in the medical literature .")); Please note that your article cant have any \n, \r, ', or " characters. Quote Link to post Share on other sites
Frank 177 Posted October 18, 2010 Report Share Posted October 18, 2010 Meter, do you have any recommendations on checking for the dissallowed characters in the character string? By the way, thanks for this! Frank Quote Link to post Share on other sites
meter 145 Posted October 18, 2010 Report Share Posted October 18, 2010 I would use the javascript replace method, or an external script, to check for them and replace them. Quote Link to post Share on other sites
CanaDutch 0 Posted August 27, 2011 Report Share Posted August 27, 2011 I'm working on a website that also uses a FCKeditor. I'm trying to add a variable to the code so that I can have it submit an article I select in an ui open file window. void(FCKeditorAPI.GetInstance('body').SetHTML("{1}")) with {1} being a variable doesn't work for me, nor does using spin with the read file variable. Is there any way to make this code work with a variable? Also are these IFrame's easier to deal with in Ubot 4? Quote Link to post Share on other sites
Eddie Waller 158 Posted August 27, 2011 Report Share Posted August 27, 2011 I'm working on a website that also uses a FCKeditor. I'm trying to add a variable to the code so that I can have it submit an article I select in an ui open file window. void(FCKeditorAPI.GetInstance('body').SetHTML("{1}")) with {1} being a variable doesn't work for me, nor does using spin with the read file variable. Is there any way to make this code work with a variable? Also are these IFrame's easier to deal with in Ubot 4? Yes UBot 4 should handle these editors just fine. Here's a video of how you might do it in UBot 4: http://screencast.com/t/lK9cXYqLy Quote Link to post Share on other sites
CanaDutch 0 Posted August 27, 2011 Report Share Posted August 27, 2011 Thanks Eddie, that's good to hear. Seemingly I can add a variable it just doesn't work when the text has any breaks (including <BR></BR>) in them. Guess I know what my first Ubot 4 bot will be... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.