Web Wiz Rte İnclude Sorunu...
-
http://localhost/swsportal/rte1/default.asp
rte1 klasörü yaptım default.asp den normal şekilde çalıştırıyorum burada sorun yok fakat
http://localhost/swsportal/rte_cek.asp
yapıyorum ve textarea geliyor fakat üsteki büyük küçük harf vs. editör özellikleri gelmiyor acaba nasıl yapabilirim bilgisi olan varmı.
amacım rte yi bir yere koymak ve istediğim zaman çağırmak. -
Bi domaine fln koyda öle bakalım hocam
-
http://www.webteknigi.com/test/rte_cek.asp
http://www.webteknigi.com/test/rte/default.asp
http://www.webteknigi.com/test/test.rarnette gezen kodları denedim rte_cek.asp ye ama yinede yemedi textarea geliyor ama toolbar gelmiyor :|
-
1 - RTE_javascript.asp?textArea=myTextarea
2 - WebWizRTEtoolbar('myForm');
3 -
<textarea cols="90" rows="33" name="myTextarea" id="myTextarea"> </textare> -
<% strFormName = "myForm" strTextAreaName = "myTextarea" Server.Execute("rte/RTE_editor_inc.asp") %>
boyle olmaz =)
inc file olarak include yontemi ile kullanman lazim.
<% '---------------------------------------------------------------------------------------------- 'The following onload event needs to be placed into the body tag for the web page you 'are placing the RTE into to initialise the Javascript for the Web Wiz Rich Text Editor (RTE):- 'OnLoad="initialiseWebWizRTE();" 'The following needs to be placed on the line above the textarea that you wish to be 'replaced with the Web Wiz Rich Text Editor (RTE). '---------------------------------------------------------------------------------------------- Dim strFormName Dim strTextAreaName 'Edit the intilised variables below to put in the 'name' and 'id' tags of your form and textarea 'Make sure that your form and textarea have both 'name' and 'id' tags 'ID tag of the HTML form the textarea is within (this is the name="myForm" and id="myForm" part, make sure they are both the same) strFormName = "myForm" 'ID tag of the HTML textarea being replaced (this is the name="myTextarea" and id="myTextarea" part, make sure they are both the same) strTextAreaName = "myTextarea" '---------------------------------------------------------------------------------------------- %> <!--#include file="RTE_editor_inc.asp" -->
ve yinede calismama olasiligi olacaktir neden dersen kaynak kodlarina bak de sayfanin ve ordaki JS dosyalarinin linklerine bak :) 404 veriyor.
bunu da duzeltmek icin config dosyasinda soyle bir bolum gozume carpti.
'Using full URL path for images and links '*************************************************************************** 'If you are submitting the RTE content to a file outside of the RTE folder you may find that some of the relative 'paths for things like images stored on the server are incorrect (ie. href="my_documents/myPicture.jpg") 'The following can be used to change those relative server paths to full URL's so that if the submitted content is 'displayed on a page out side of the RTE files the paths to images etc. still work Const blnUseFullURLpath = false Const strFullURLpathToRTEfiles = "" 'Type in the full URL to the RTE folder eg. "http://www.myweb.com/RTE/" '***************************************************************************
-
RTE_editor_inc.asp dosyasindan da su yolu kendi sayfana gore duzeltmen gerekecektir.
'Load default CSS and Javascript Response.Write(vbCrLf & vbCrLf & "<link href=""" & strRTECSSfile & "RTE_toolbar_style.css"" rel=""stylesheet"" type=""text/css"" />") Response.Write(vbCrLf & "<script language=""JavaScript"" src=""RTE_javascript_common.asp"" type=""text/javascript""></script>")
-
yok abi kodları komple ala alıyom olmadı böyle :)
en güzeli adım adım ben includeleri ve gereksiz yerleri dğeiştireyim hemde öğrenmiş olurum. -
evet arkadaşlar include yollarını vs. değiştirdim oldu bayağı kastırdı dosyaları tek tek taşıdım hataları düzelttim üç beş kodda kendim kastım eski editçilerden kim kaldı :) lazım olan olursa p.m atsın göndereyim ki benden başkasının bu haliyle işine yarayacağını sanmıyorum xD
