PDA

Tam Sürümünü Görmek İçin : asp.net rich text editor NASIL?


sami
24/07/2006, 11:52
Merhaba;
Arkadaşlar asp.net ile hazırladığımız sayfaya zengin metin editörü koymak istiyoruz. Editör ile hazırlanan sayfayı da html olarak kaydetmek istiyoruz.
Nasıl yapabiliriz?
Şimdiden teşekkürler...


cemaliozan
24/07/2006, 14:50
arşivbank (http://www.arsivbank.com)'ın editörü TinyMCE :

<!-- TinyMCE -->
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
language : "tr",
mode : "textareas",
theme : "advanced",
plugins : "style,layer,table,autosave,save,advhr,advimage,adv link,emotions,iespell,insertdatetime,preview,flash ,searchreplace,print,contextmenu,paste,directional ity,fullscreen,noneditable",
theme_advanced_buttons1_add_before : "save,newdocument,separator",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator, forecolor,backcolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,searc h,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print,separ ator,ltr,rtl,separator,fullscreen,save_enablewhend irty : false",

theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,st yleprops",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
content_css : "styles\tinmyce_full.css",
plugin_insertdate_dateFormat : "%d-%m-%Y",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
external_link_list_url : "example_link_list.js",
external_image_list_url : "example_image_list.js",
flash_external_list_url : "example_flash_list.js",
file_browser_callback : "fileBrowserCallBack",
theme_advanced_resize_horizontal : false,
theme_advanced_resizing : true
});

function fileBrowserCallBack(field_name, url, type, win) {
// This is where you insert your custom filebrowser logic
alert("Example of filebrowser callback: field_name: " + field_name + ", url: " + url + ", type: " + type);

// Insert new URL, this would normaly be done in a popup
win.document.forms[0].elements[field_name].value = "someurl.htm";
}
</script>
<!-- /TinyMCE -->

<textarea id="elm1" name="elm1" rows="25" cols="80" style="WIDTH: 100%"><span class="example1"> </span><br/></textarea>
<br />

Bir de web button ekleyince iş tamamdır...

alikadir
29/04/2008, 18:03
ben o sitede text editör bulamadım

teddmcload
30/04/2008, 16:58
fckeditor kullanabilirsiniz. open source ve gayet de güzel.