Jump to content

Innova Editor issue again...


chanchelkumar

Recommended Posts

Hi dudes,

 

I want to pull a data from the database and display it in the innova editor!!!!

 

ie i want to edit a data using editor...

 

but i can't do it!!!!!

 

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Editor</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="selecttraining.js"></script>
<script language=JavaScript src='../admin/editor/scripts/innovaeditor.js'></script>
</head>

<body>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<form action="../admin/training_insert.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <tr>
    <td>Description:         <input name="desc" type="text" id="desc" value="reds"></td>
  </tr>
  <tr>
    <td><textarea id="contents" name="contents" rows=10 cols=70></textarea>
    <script>
	var oEdit1 = new InnovaEditor("oEdit1");

	oEdit1.width=570;
	oEdit1.height=450;

	/***************************************************
		RECONFIGURE TOOLBAR BUTTONS
	***************************************************/

	oEdit1.features=["Save","FullScreen","Preview","Print",
		"Search","SpellCheck","|",
		"Superscript","Subscript","|","LTR","RTL","|",
		"Table","Guidelines","Absolute","|",
		"Flash","Media","|","InternalLink","CustomObject","|",
		"Form","Characters","ClearAll","XHTMLFullSource","XHTMLSource","BRK",		
		"Cut","Copy","Paste","PasteWord","PasteText","|",
		"Undo","Redo","|","Hyperlink","Bookmark","Image","|",
		"JustifyLeft","JustifyCenter","JustifyRight","JustifyFull","|",
		"Numbering","Bullets","|","Indent","Outdent","|",
		"Line","RemoveFormat","BRK",
		"StyleAndFormatting","TextFormatting","ListFormatting",
		"BoxFormatting","ParagraphFormatting","CssText","Styles","|",
		"Paragraph","FontName","FontSize","|",
		"Bold","Italic","Underline","Strikethrough","|",
		"ForeColor","BackColor","|",			
		"CustomName1","CustomName2","CustomName3"];// => Custom Button Placement


	/***************************************************
		OTHER SETTINGS
	***************************************************/
	oEdit1.css="style/test.css";//Specify external css file here

	oEdit1.cmdAssetManager = "modalDialogShow('../../../editor/assetmanager/assetmanager.php',640,465)"; //Command to open the Asset Manager add-on.
	oEdit1.cmdInternalLink = "modelessDialogShow('links.htm',365,270)"; //Command to open your custom link lookup page.
	oEdit1.cmdCustomObject = "modelessDialogShow('objects.htm',365,270)"; //Command to open your custom content lookup page.

	oEdit1.customColors=["#ff4500","#ffa500","#808000","#4682b4","#1e90ff","#9400d3","#ff1493","#a9a9a9"];//predefined custom colors

	oEdit1.mode="XHTMLBody"; //Editing mode. Possible values: "HTMLBody" (default), "XHTMLBody", "HTML", "XHTML"

	oEdit1.REPLACE("contents");
</script></td>
  </tr>
  <tr>
    <td align="center"><input onclick="clear_off()" type="submit" name="Submit" value="Submit"></td>
  </tr>
  </form>
</table>
</body>
</html>

 

i want the data in the textarea...

Link to comment
https://forums.phpfreaks.com/topic/41249-innova-editor-issue-again/
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.