Добавление комментариев отключено


07.04.2011   ЖЕНЯ

Как вывести отредактированный текст на другую страницу делаю вот так:
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;!DOCTYPE html PUBLIC \\\\&amp;amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN\\\\&amp;amp;quot; \\\\&amp;amp;quot;://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\\\\&amp;amp;quot;&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;html xmlns=\\\\&amp;amp;quot;www.w3.org/1999/xhtml\\\\&amp;amp;quot;&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;head&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;title&amp;amp;gt;Custom formats example&amp;amp;lt;/title&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;!-- TinyMCE --&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;script type=\\\\&amp;amp;quot;text/javascript\\\\&amp;amp;quot; src=\\\\&amp;amp;quot;../jscripts/tiny_mce/tiny_mce.js\\\\&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;/script&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;script type=\\\\&amp;amp;quot;text/javascript\\\\&amp;amp;quot;&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; tinyMCE.init({
<br>&lt;br&gt;&amp;lt;br&amp;gt; // General options
<br>&lt;br&gt;&amp;lt;br&amp;gt; mode : \\\\&amp;amp;quot;textareas\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; theme : \\\\&amp;amp;quot;advanced\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; plugins : \\\\&amp;amp;quot;autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; // Theme options
<br>&lt;br&gt;&amp;lt;br&amp;gt; theme_advanced_buttons1 : \\\\&amp;amp;quot;save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; theme_advanced_buttons2 : \\\\&amp;amp;quot;cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; theme_advanced_buttons3 : \\\\&amp;amp;quot;tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; theme_advanced_buttons4 : \\\\&amp;amp;quot;insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; theme_advanced_toolbar_location : \\\\&amp;amp;quot;top\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; theme_advanced_toolbar_align : \\\\&amp;amp;quot;left\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; theme_advanced_statusbar_location : \\\\&amp;amp;quot;bottom\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; theme_advanced_resizing : true,
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; // Example content CSS (should be your site CSS)
<br>&lt;br&gt;&amp;lt;br&amp;gt; content_css : \\\\&amp;amp;quot;css/content.css\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; // Drop lists for link/image/media/template dialogs
<br>&lt;br&gt;&amp;lt;br&amp;gt; template_external_list_url : \\\\&amp;amp;quot;lists/template_list.js\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; external_link_list_url : \\\\&amp;amp;quot;lists/link_list.js\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; external_image_list_url : \\\\&amp;amp;quot;lists/image_list.js\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; media_external_list_url : \\\\&amp;amp;quot;lists/media_list.js\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; // Style formats
<br>&lt;br&gt;&amp;lt;br&amp;gt; style_formats : [
<br>&lt;br&gt;&amp;lt;br&amp;gt; {title : \\\\\\\'Bold text\\\\\\\', inline : \\\\\\\'b\\\\\\\'},
<br>&lt;br&gt;&amp;lt;br&amp;gt; {title : \\\\\\\'Red text\\\\\\\', inline : \\\\\\\'span\\\\\\\', styles : {color : \\\\\\\'#ff0000\\\\\\\'}},
<br>&lt;br&gt;&amp;lt;br&amp;gt; {title : \\\\\\\'Red header\\\\\\\', block : \\\\\\\'h1\\\\\\\', styles : {color : \\\\\\\'#ff0000\\\\\\\'}},
<br>&lt;br&gt;&amp;lt;br&amp;gt; {title : \\\\\\\'Example 1\\\\\\\', inline : \\\\\\\'span\\\\\\\', classes : \\\\\\\'example1\\\\\\\'},
<br>&lt;br&gt;&amp;lt;br&amp;gt; {title : \\\\\\\'Example 2\\\\\\\', inline : \\\\\\\'span\\\\\\\', classes : \\\\\\\'example2\\\\\\\'},
<br>&lt;br&gt;&amp;lt;br&amp;gt; {title : \\\\\\\'Table styles\\\\\\\'},
<br>&lt;br&gt;&amp;lt;br&amp;gt; {title : \\\\\\\'Table row 1\\\\\\\', selector : \\\\\\\'tr\\\\\\\', classes : \\\\\\\'tablerow1\\\\\\\'}
<br>&lt;br&gt;&amp;lt;br&amp;gt; ],
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; formats : {
<br>&lt;br&gt;&amp;lt;br&amp;gt; alignleft : {selector : \\\\\\\'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img\\\\\\\', classes : \\\\\\\'left\\\\\\\'},
<br>&lt;br&gt;&amp;lt;br&amp;gt; aligncenter : {selector : \\\\\\\'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img\\\\\\\', classes : \\\\\\\'center\\\\\\\'},
<br>&lt;br&gt;&amp;lt;br&amp;gt; alignright : {selector : \\\\\\\'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img\\\\\\\', classes : \\\\\\\'right\\\\\\\'},
<br>&lt;br&gt;&amp;lt;br&amp;gt; alignfull : {selector : \\\\\\\'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img\\\\\\\', classes : \\\\\\\'full\\\\\\\'},
<br>&lt;br&gt;&amp;lt;br&amp;gt; bold : {inline : \\\\\\\'span\\\\\\\', \\\\\\\'classes\\\\\\\' : \\\\\\\'bold\\\\\\\'},
<br>&lt;br&gt;&amp;lt;br&amp;gt; italic : {inline : \\\\\\\'span\\\\\\\', \\\\\\\'classes\\\\\\\' : \\\\\\\'italic\\\\\\\'},
<br>&lt;br&gt;&amp;lt;br&amp;gt; underline : {inline : \\\\\\\'span\\\\\\\', \\\\\\\'classes\\\\\\\' : \\\\\\\'underline\\\\\\\', exact : true},
<br>&lt;br&gt;&amp;lt;br&amp;gt; strikethrough : {inline : \\\\\\\'del\\\\\\\'}
<br>&lt;br&gt;&amp;lt;br&amp;gt; },
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; // Replace values for the template plugin
<br>&lt;br&gt;&amp;lt;br&amp;gt; template_replace_values : {
<br>&lt;br&gt;&amp;lt;br&amp;gt; username : \\\\&amp;amp;quot;Some User\\\\&amp;amp;quot;,
<br>&lt;br&gt;&amp;lt;br&amp;gt; staffid : \\\\&amp;amp;quot;991234\\\\&amp;amp;quot;
<br>&lt;br&gt;&amp;lt;br&amp;gt; }
<br>&lt;br&gt;&amp;lt;br&amp;gt; });
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;/script&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;!-- /TinyMCE --&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;/head&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;body&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;form name=\\\\&amp;amp;quot;1\\\\&amp;amp;quot; action=\\\\&amp;amp;quot;1.php\\\\&amp;amp;quot; method=\\\\&amp;amp;quot;post\\\\&amp;amp;quot;&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;div&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;h3&amp;amp;gt;Custom formats example&amp;amp;lt;/h3&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;p&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; This example shows you how to override the default formats for bold, italic, underline, strikethough and alignment to use classes instead of inline styles.
<br>&lt;br&gt;&amp;lt;br&amp;gt; There are more examples on how to use TinyMCE in the &amp;amp;lt;a href=\\\\&amp;amp;quot;www.tinymce.moxiecode.com/examples/\\\\&amp;amp;quot;&amp;amp;gt;Wiki&amp;amp;lt;/a&amp;amp;gt;.
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;/p&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded --&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;div&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;textarea id=\\\\&amp;amp;quot;\\\\&amp;amp;quot; name=\\\\&amp;amp;quot;elm1\\\\&amp;amp;quot; rows=\\\\&amp;amp;quot;15\\\\&amp;amp;quot; cols=\\\\&amp;amp;quot;80\\\\&amp;amp;quot; style=\\\\&amp;amp;quot;width: 80%\\\\&amp;amp;quot;&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;amp;lt;p&amp;amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; This is some example text that you can edit inside the &amp;amp;amp;lt;strong&amp;amp;amp;gt;TinyMCE editor&amp;amp;amp;lt;/strong&amp;amp;amp;gt;.
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;amp;lt;/p&amp;amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;amp;lt;p&amp;amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;amp;lt;/p&amp;amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;/textarea&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;/div&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;!-- Some integration calls --&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;a href=\\\\&amp;amp;quot;javascript:;\\\\&amp;amp;quot; onmousedown=\\\\&amp;amp;quot;tinyMCE.get(\\\\\\\'elm1\\\\\\\').show();\\\\&amp;amp;quot;&amp;amp;gt;[Show]&amp;amp;lt;/a&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;a href=\\\\&amp;amp;quot;javascript:;\\\\&amp;amp;quot; onmousedown=\\\\&amp;amp;quot;tinyMCE.get(\\\\\\\'elm1\\\\\\\').hide();\\\\&amp;amp;quot;&amp;amp;gt;[Hide]&amp;amp;lt;/a&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;a href=\\\\&amp;amp;quot;javascript:;\\\\&amp;amp;quot; onmousedown=\\\\&amp;amp;quot;tinyMCE.get(\\\\\\\'elm1\\\\\\\').execCommand(\\\\\\\'Bold\\\\\\\');\\\\&amp;amp;quot;&amp;amp;gt;[Bold]&amp;amp;lt;/a&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;a href=\\\\&amp;amp;quot;javascript:;\\\\&amp;amp;quot; onmousedown=\\\\&amp;amp;quot;alert(tinyMCE.get(\\\\\\\'elm1\\\\\\\').getContent());\\\\&amp;amp;quot;&amp;amp;gt;[Get contents]&amp;amp;lt;/a&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;a href=\\\\&amp;amp;quot;javascript:;\\\\&amp;amp;quot; onmousedown=\\\\&amp;amp;quot;alert(tinyMCE.get(\\\\\\\'elm1\\\\\\\').selection.getContent());\\\\&amp;amp;quot;&amp;amp;gt;[Get selected HTML]&amp;amp;lt;/a&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;a href=\\\\&amp;amp;quot;javascript:;\\\\&amp;amp;quot; onmousedown=\\\\&amp;amp;quot;alert(tinyMCE.get(\\\\\\\'elm1\\\\\\\').selection.getContent({format : \\\\\\\'text\\\\\\\'}));\\\\&amp;amp;quot;&amp;amp;gt;[Get selected text]&amp;amp;lt;/a&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;a href=\\\\&amp;amp;quot;javascript:;\\\\&amp;amp;quot; onmousedown=\\\\&amp;amp;quot;alert(tinyMCE.get(\\\\\\\'elm1\\\\\\\').selection.getNode().nodeName);\\\\&amp;amp;quot;&amp;amp;gt;[Get selected element]&amp;amp;lt;/a&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;a href=\\\\&amp;amp;quot;javascript:;\\\\&amp;amp;quot; onmousedown=\\\\&amp;amp;quot;tinyMCE.execCommand(\\\\\\\'mceInsertContent\\\\\\\',false,\\\\\\\'&amp;amp;lt;b&amp;amp;gt;Hello world!!&amp;amp;lt;/b&amp;amp;gt;\\\\\\\');\\\\&amp;amp;quot;&amp;amp;gt;[Insert HTML]&amp;amp;lt;/a&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;a href=\\\\&amp;amp;quot;javascript:;\\\\&amp;amp;quot; onmousedown=\\\\&amp;amp;quot;tinyMCE.execCommand(\\\\\\\'mceReplaceContent\\\\\\\',false,\\\\\\\'&amp;amp;lt;b&amp;amp;gt;{$selection}&amp;amp;lt;/b&amp;amp;gt;\\\\\\\');\\\\&amp;amp;quot;&amp;amp;gt;[Replace selection]&amp;amp;lt;/a&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;br /&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;input type=\\\\&amp;amp;quot;submit\\\\&amp;amp;quot; name=\\\\&amp;amp;quot;save\\\\&amp;amp;quot; value=\\\\&amp;amp;quot;Submit\\\\&amp;amp;quot; /&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;input type=\\\\&amp;amp;quot;reset\\\\&amp;amp;quot; name=\\\\&amp;amp;quot;reset\\\\&amp;amp;quot; value=\\\\&amp;amp;quot;Reset\\\\&amp;amp;quot; /&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt; &amp;amp;lt;/div&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;/form&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;script type=\\\\&amp;amp;quot;text/javascript\\\\&amp;amp;quot;&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;if (document.location.protocol == \\\\\\\'file:\\\\\\\') {
<br>&lt;br&gt;&amp;lt;br&amp;gt; alert(\\\\&amp;amp;quot;The examples might not work properly on the local file system due to security settings in your browser. Please use a real webserver.\\\\&amp;amp;quot;);
<br>&lt;br&gt;&amp;lt;br&amp;gt;}
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;/script&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;/body&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;&amp;amp;lt;/html&amp;amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;
<br>&lt;br&gt;&amp;lt;br&amp;gt;он переносит текст но не изменненый а простой




Вопрос был задан на этой странице. Но если Вам это не интересно, могу предложить Вам почитать про разместить сайт: недорогой хостинг сайтов PHP+MySQL

 
  (c) Janda.ru