Username:
Password:
Search for Plugins: Advanced
Please Sign in, Register or Resend Activation Email

Forums

  e107 Coders.org :: Forums :: E107 Plugins :: Code Bank
 
<< Previous thread | Next thread >>  
(The best) e107 Preferences & Settings:     Go to page   <<            
Author Post
Butcher.
Fri Mar 30 2007, 07:54PM

Registered Member #76943
Joined: Fri Mar 23 2007, 12:57PM
Location: Virtual Reality
Posts: 118
Currently the tinyMCE, I configured, can edit, cleanup and code a text without error. Almost also after being saved, I found only an extra space in applet,if ram. But if I then choose to edit the save: it shows up as shown above.I think now, that 'tiny_mce_src.js' & 'tiny_mce.js' are not intended to edit. U can do it all by overriding the default. If u want to do as intended just correct this:5. Upload the original 'tiny_mce_src.js' & 'tiny_mce.js' files from [link] to your e107_handlers/tiny_mce/ directory again.5.1 edit then wysiwyg.php to override defaults: Belove is most of my file for copy & paste; notice that u can't just copy the full XHTML set from the manual cause u need the $text .= " ... " for every line:$text .= "##SANITISED## type='text/javascript'>\ntinyMCE.init({\n";$text .= "language : '".$tinylang[$lang]."',\n";$text .= "mode : 'exact',\n";$text .= "elements : '".$formids."',\n";$text .= "theme : 'advanced'\n";$text .= ",plugins : 'table,contextmenu";$text .= ($pref['smiley_activate']) ? ",emoticons" : "";$text .= (ADMIN) ? ",ibrowser" : ",image";$text .= ",iespell,zoom,media,forecolor";$text .= "'\n"; // end of plugins list.$text .= ",theme_advanced_buttons1 : 'bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,sub,sup,separator,forecolor,backcolor'";$text .= ",theme_advanced_buttons2 : 'tablecontrols,separator,link,unlink,anchor,separator";$text .= ($pref['smiley_activate']) ? ",emoticons" : "";$text .= ",charmap,media";$text .= (ADMIN) ? ",ibrowser," : ",image";$text .= "'"; // end of buttons 2$text .= ",theme_advanced_buttons3 : 'formatselect,fontselect,fontsizeselect,separator";$text .= (ADMIN) ? ",code,cleanup" : "";$text .= ",removeformat,hr,separator,undo,redo'"; // end of buttons 3$text .= ",theme_advanced_toolbar_location : 'top'";// full XHTML set$text .= ",valid_elements : '";$text .= "a[accesskey|charset|class|coords|dir##SANITISED## "|shape##SANITISED## "|title],";$text .= "acronym[class|dir##SANITISED## "|title],";$text .= "address[class|align|dir##SANITISED## "|##SANITISED## "applet[align##SANITISED## "|shape##SANITISED## "|title],";$text .= "blockquote[dir|style|cite|class|dir##SANITISED## "|##SANITISED## "body[alink|background|bgcolor|class|dir##SANITISED## "|##SANITISED## "br[class|clear##SANITISED## "|##SANITISED## "|value],";$text .= "caption[align##SANITISED## "|##SANITISED## "center[class|dir##SANITISED## "|title],";$text .= "cite[class|dir##SANITISED## "|title],";$text .= "code[class|dir##SANITISED## "|title],";$text .= "col[align##SANITISED## "|##SANITISED## "|valign##SANITISED## "|##SANITISED## "|valign##SANITISED## "del[cite|class|datetime|dir##SANITISED## "|##SANITISED## "dfn[class|dir##SANITISED## "|title],";$text .= "dir[class|compact##SANITISED## "|##SANITISED## "div[align##SANITISED## "|##SANITISED## "dl[class|compact##SANITISED## "|##SANITISED## "dt[class|dir##SANITISED## "em/i[class|dir##SANITISED## "|title],";$text .= "fieldset[class|dir##SANITISED## "|title],";$text .= "font[class|color|dir##SANITISED## "|style|title|target],";$text .= "frame[class|frameborder|id|longdesc|marginheight|marginwidth|name"; $text .= "|noresize##SANITISED## "|##SANITISED## "h2[align##SANITISED## "|##SANITISED## "h3[align##SANITISED## "|##SANITISED## "h4[align##SANITISED## "|##SANITISED## "h5[align##SANITISED## "|##SANITISED## "h6[align##SANITISED## "|##SANITISED## "head[dir##SANITISED## "|##SANITISED## "html[dir##SANITISED## "|##SANITISED## "input[accept|accesskey|align##SANITISED## "|readonly##SANITISED## "|##SANITISED## "isindex[class|dir##SANITISED## "|title],";$text .= "label[accesskey|class|dir##SANITISED## "|##SANITISED## "legend[align##SANITISED## "|##SANITISED## "li[class|dir##SANITISED## "|value],";$text .= "link[charset|class|dir##SANITISED## "|##SANITISED## "map[class|dir##SANITISED## "|title],";$text .= "menu[class|compact##SANITISED## "|##SANITISED## "meta[content|dir##SANITISED## "|title],";$text .= "noscript[class|dir##SANITISED## "|title],";$text .= "object[align##SANITISED## "|##SANITISED## "|vspace|width],";$text .= "ol[class|compact##SANITISED## "|##SANITISED## "optgroup[class|dir##SANITISED## "|##SANITISED## "option[class|dir##SANITISED## "|##SANITISED## "p[align##SANITISED## "|##SANITISED## "param[id|name|type|value|valuetype##SANITISED## "|##SANITISED## "q[cite|class|dir##SANITISED## "|title],";$text .= "s[class|dir##SANITISED## "samp[class|dir##SANITISED## "|title],";$text .= "script[charset|defer|language|src|type],";$text .= "select[class|dir##SANITISED## "|tabindex|title],";$text .= "small[class|dir##SANITISED## "|title],";$text .= "span[align##SANITISED## "|##SANITISED## "strike[class|class|dir##SANITISED## "|##SANITISED## "strong/b[class|dir##SANITISED## "|title],";$text .= "style[dir##SANITISED## "|title],";$text .= "sup[class|dir##SANITISED## "|title],";$text .= "table[align##SANITISED## "|style|summary|title|width],";$text .= "tbody[align##SANITISED## "|##SANITISED## "|valign##SANITISED## "|##SANITISED## "|style|title|valign##SANITISED## "|readonly##SANITISED## "|##SANITISED## "|valign##SANITISED## "|##SANITISED## "|style|title|valign##SANITISED## "|##SANITISED## "|valign##SANITISED## "|title|valign##SANITISED## "u[class|dir##SANITISED## "ul[class|compact##SANITISED## "|##SANITISED## "var[class|dir##SANITISED## "|title]"; $text .= "'"; // end of valid_elements$text .= ",auto_cleanup_word: false\n";$text .= ",convert_fonts_to_spans : true\n";$text .= ",trim_span_elements: true\n";$text .= ",inline_styles: true\n";$text .= ",debug: false\n";$text .= ",force_br_newlines: true\n";$text .= ",force_p_newlines: false\n";$text .= ",entity_encoding: \"raw\" \n";$text .= ",convert_fonts_to_styles: true\n";$text .= ",remove_script_host : true\n";$text .= ",relative_urls: true\n";$text .= ",document_base_url: '".SITEURL."'\n";$text .= ",theme_advanced_styles: 'border=border;fborder=fborder;tbox=tbox;caption=caption;fcaption=fcaption;forumheader=forumheader;forumheader3=forumheader3'\n";$text .= ",popup_css: '".THEME."style.css'\n";$text .= ",verify_css_classes : false\n";$text .= ",cleanup_callback : \"tinymce_html_bbcode_control\" \n";$text .= (ADMIN) ? "\n, external_link_list_url: '../".$HANDLERS_DIRECTORY."tiny_mce/filelist.php'\n" : "";$text .= "});function tinymce_html_bbcode_control(type, source) {
Back to top
Website
Butcher.
Fri Mar 30 2007, 10:43PM

Registered Member #76943
Joined: Fri Mar 23 2007, 12:57PM
Location: Virtual Reality
Posts: 118
?! So when everything is done by the book, it must be the package causing faults. But I've read many complaints about fckeditor's conversions too on their dedicated forum. Take fx. 110mb.com's fckeditor: completely sh*t for such a popular site compared to mine with hardly any visitors!

Editing file "e107_handlers/tiny_mce/wysiwyg.php":
&"ar&", &"Danish&" =&> &"da&", &"Dutch&" =&> &"nl&", &"English&" =&> &&quo ...


Should we expect ours to work, when even theirs don't? Yeah, why not? They probably don't use their own editor in filemanagement as much as their customers do! !amazed

I used to work a lot with editor programming years ago just for fun: u know make a list of lines, each a list of words. And they still haven't figured it out.

I had to turn off conversion of http-addresses into links in e107 preferences also! Really no sense in it!
Back to top
Website
Butcher.
Sat Jul 14 2007, 12:15PM

Registered Member #76943
Joined: Fri Mar 23 2007, 12:57PM
Location: Virtual Reality
Posts: 118
!amazed I just found that a stupid setting in preferences caused stupid spaces to be added in pages and newspost, where it was possible to think the mce_tiny editor was guilty.

If u don't need stupid spaces in fx. http addresses etc. remove any number in preferences-Text rendering: those two settings with "wrap words..."

They should be spanked for making such settings optional.
Back to top
Website
ice5192
Sun May 15 2011, 01:09PM
Registered Member #79134
Joined: Mon Apr 23 2007, 02:50PM
Location: USA , NewYork For right now
Posts: 13
This does not work i get a blank screen running .07.25 please assist
Back to top
Website
Go to page   <<       

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System
Render time: 0.1745 sec, 0.0931 of that for queries. DB queries: 33.