Page mode
Edit the whole html pages.
Code of the editor instance is like the following:
<?php $ed_4 = new rich('News #4 (page mode, relative paths)', 'rich_four', $val_four, "100%", 300, "/demo_rich/template/", "/demo_rich/template/", true, false);
$snippets = array();
$snippets[] = array('name'=>'Green bold text', 'code'=>'<font color="green"><b>Green bold text</b></font>'); $snippets[] = array('name'=>'Image in table', 'code'=>'<table border="1"><tr><td><IMG style="WIDTH: 90px; HEIGHT: 117px" src="/demo_rich/files/kitty.jpg"></td></tr></table>');
$ed_4->set_snippets($snippets, 'misc');
$snippets = array();
$snippets[] = array('name'=>'cats', 'code'=>'<IMG style="WIDTH: 200px; HEIGHT: 150px" src="/demo_rich/files/cats.jpg">'); $snippets[] = array('name'=>'forest', 'code'=>'<IMG style="WIDTH: 200px; HEIGHT: 150px" src="/demo_rich/files/forest.jpg">'); $snippets[] = array('name'=>'nature', 'code'=>'<IMG style="WIDTH: 224px; HEIGHT: 168px" src="/demo_rich/files/nature.jpg">'); $snippets[] = array('name'=>'owls', 'code'=>'<IMG style="WIDTH: 200px; HEIGHT: 150px" src="/demo_rich/files/owls.jpg">');
$ed_4->set_snippets($snippets, 'photos');
$ed_4->set_default_stylesheet('/demo_rich/template/style.css'); $ed_4->xhtml_mode(); $ed_4->set_borders_visibility(); $ed_4->draw(); //or echo $ed_4->get_rich(); ?>
|
Smart Grid
Ajax-driven table editing tool
free download
|