Jump to content

Tinymce


The Little Guy

Recommended Posts

Dude! I found a sweet tutorial on how to make your own WYSIWYG!

 

The following will make selected text bold:

<html>
<head>
<title> Using execCommand to bold text </title>
<script language="JavaScript">
function Init() { 
	iView.document.designMode = 'On'; 
}

function boldIt(){ 
	iView.document.execCommand('bold', false, null); 
}
</script>
<body onLoad="Init()"> 
<iframe id="iView" style="width: 200px; height:70px"></iframe> 
<br><br> 
<input type="button" onClick="boldIt()" value="Toggle Bold"> 
</body> 
</html>

 

Tutorial:

http://www.devarticles.com/c/a/HTML/Building-a-WYSIWYG-HTML-Editor-Part-1/

Link to comment
https://forums.phpfreaks.com/topic/190386-tinymce/#findComment-1005897
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.