Edited by xrepins, 04 March 2006 - 11:33 AM.
Wysiwyg Text Editors
#1
Guest_xrepins_*
Posted 04 March 2006 - 11:20 AM
#2
Posted 04 March 2006 - 11:35 AM
Here is a sample call I did for a blog script that shows many of the configurable settings (but not nearly all) which are available:
$html1 = "<!-- tinyMCE -->
<script language=\"javascript\" type=\"text/javascript\" src=\"../../rc3/manager/media/tinymce/tiny_mce.js\"></script>
<script language=\"javascript\" type=\"text/javascript\">
tinyMCE.init({
mode : \"$editormode\",";
if($tiny_sets[editormode]=="exact"){
$html2 ="elements : \"$exactmodeelements\",";
} else{
$html2 ="";
}
$html3 ="theme : \"$editortheme\",
language : \"$tinylanguage\",
plugins : \"$editorplugins\",
theme_advanced_buttons1_add_before : \"$themeadvbut1addb4\",
theme_advanced_buttons1_add : \"$themeadvbut1add\",
theme_advanced_buttons2_add : \"$themeadvbut2add\",
theme_advanced_buttons2_add_before: \"$themeadvbut2addb4\",
theme_advanced_buttons3_add_before : \"$themeadvbut3addb4\",
theme_advanced_buttons3_add : \"$themeadvbut3add\",
theme_advanced_toolbar_location : \"$themeadvtoolbarlocalation\",
theme_advanced_toolbar_align : \"$themeadvtoolbaralign\",
theme_advanced_path_location : \"$themeadvpathlocation\",
debug: \"$debug\",
visual: \"$visual\",
visual_table_style: \"$visualtablestyle\",
force_br_newlines: \"$forcebr\",
force_p_newlines: \"$forcep\",
relative_urls: \"$relativeurls\",
directionality: \"$directionality\",
auto_cleanup_word: \"$autocleanword\",
convert_newlines_to_brs: \"$convertnltobr\",
remove_script_host: \"$scripthost\",
plugin_insertdate_dateFormat: \"%Y-%m-%d\",
plugin_insertdate_timeFormat: \"%H:%M:%S\",
extended_valid_elements : \"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|on
mouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]\",
external_link_list_url : \"scripts/tiny_mce/lists/example_link_list.js\",
external_image_list_url : \"scripts/tiny_mce/lists/example_image_list.js\",
flash_external_list_url : \"scripts/tiny_mce/lists/example_flash_list.js\"
});";
$html5 ="</script>
<!-- /tinyMCE -->";
#3
Guest_xrepins_*
Posted 04 March 2006 - 11:40 AM
If not, expect messages!
Edited by xrepins, 04 March 2006 - 11:40 AM.
#4
Posted 04 March 2006 - 05:15 PM
Unless I was hallucinating I think I saw a setting buried deep in the TinyMCE code, although not documented as I recall, that can be changed so that the editor doesn't use those pesky <br /> tags... I'll see if I can track it down over the weekend...I have to confess that I was thinking Tiny when I was thinking <br /> tags, as I recall it doing it to me before. However, if that's down to a lack of understanding on my part, I'll give it another try and see if I can tap its full potential this time.
If not, expect messages!
#5
Posted 04 March 2006 - 06:19 PM
force_br_newlines: \"$forcebr\", force_p_newlines: \"$forcep\",
just set the force_br_newlines to no, and the force_p_newlines to yes and that will do the trick...
#6
Posted 04 March 2006 - 08:46 PM
Yep, I knew I saw them somewhere... But the settings are boolean and as such should be either true or false... These settings can be hard-coded into both manager/media/tinymce/jscripts/tiny_mce/tiny_mce_src.js and manager/media/tinymce/jscripts/tiny_mce/tiny_mce.js, or they can be assigned using configuration variables as Breezer suggested... Thanks Breezer...Nope, no hallucination... looking at the code I posted the two settings here are the ones which regulate that.
force_br_newlines: \"$forcebr\", force_p_newlines: \"$forcep\",
just set the force_br_newlines to no, and the force_p_newlines to yes and that will do the trick...
#7
Guest_xrepins_*
Posted 04 March 2006 - 11:26 PM
Now, one thing I have noticed is that if I click anything that requires a popup, the popup is always too small and it can't be resized. Am I missing a setting somewhere? Firefox, by the way...
add.png 87.09K
131 downloads
Edited by xrepins, 05 March 2006 - 12:54 AM.
#8
Posted 05 March 2006 - 03:13 AM
edit: I tried it on my blog script which uses the tinymce from the eto manager and the windows popup fine for me using FireFox 1.5
Edited by breezer, 06 March 2006 - 12:51 AM.
#9
Posted 05 March 2006 - 06:57 PM
Are you using Firefox 1.5, by chance...??? I have had similar problems with popups, but only with 1.5.x... I either get popups that are too small or that are full screen with no javascript errors/warnings nor any other indicators as to why this happens...Thanks, breezer. Not a <br /> tag in sight!
Now, one thing I have noticed is that if I click anything that requires a popup, the popup is always too small and it can't be resized. Am I missing a setting somewhere? Firefox, by the way...add.png 87.09K 131 downloads
#10
Guest_xrepins_*
Posted 06 March 2006 - 03:02 PM
Certainly am. Hmm. Time to search for a solution, again... So much for Firefox being the saviour of the universe...Are you using Firefox 1.5, by chance...??? I have had similar problems with popups, but only with 1.5.x... I either get popups that are too small or that are full screen with no javascript errors/warnings nor any other indicators as to why this happens...
In other news, coming along nicely now...
kb1.png 62.73K
110 downloads
kb2.png 88.13K
103 downloads
Edited by xrepins, 06 March 2006 - 03:06 PM.
#11
Posted 06 March 2006 - 04:19 PM
#12
Guest_xrepins_*
Posted 07 March 2006 - 01:52 PM
views.png 109.74K
94 downloadsAnswer to the most obvious question; yes, it will be completely free to anyone who should want or have a need for it. I just got tired of looking through poop knowledgebase software.
100% XHTML 1.1 Compliant
100% Template Driven - Using the excellent TinyButStrong templating engine.
Template For Above View
<h1>[lang.cat_show_arts]</h1> <p class="page-intro">[lang.desc_show_arts]</p> <h2>[lang.sub_recent_arts]</h2> [recent;block=begin] <p class="article-link"><a href="index.php?act=view&id=[recent.article_id]">[recent.article_title]</a></p> <p class="article-leader">[recent.leader;max=250;htmlconv=no]</p> <p class="article-date">[lang.sl_views] [recent.views] | [lang.sl_pub] [recent.timestamp;frm='ddxx mmm yyyy at hh:nn']</p> [recent;block=end] <h2>[lang.sub_pop_arts]</h2> [popular;block=begin] <p class="article-link"><a href="index.php?act=view&id=[popular.article_id]">[popular.article_title]</a></p> <p class="article-leader">[popular.leader;max=250;htmlconv=no]</p> <p class="article-date">[lang.sl_views] [popular.views] | [lang.sl_pub] [popular.timestamp;frm='ddxx mmm yyyy at hh:nn']</p> [popular;block=end]100% Language elements contained in language files.
Edited by xrepins, 07 March 2006 - 02:14 PM.
#13
Posted 10 March 2006 - 08:59 AM
#14
Guest_xrepins_*
Posted 10 March 2006 - 02:08 PM
1. Release stand alone version
2. Release IPB Integrated version
3. Release Eto-Merged version
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











