Jump to content


- - - - -

Wysiwyg Text Editors


  • Please log in to reply
13 replies to this topic

#1 Guest_xrepins_*

Guest_xrepins_*
  • Guests

Posted 04 March 2006 - 11:20 AM

I'm currently writing a KnowledgeBase script and would like to know if anyone knows of a WYSIWYG text editor which doesn't stick <br /> tags where <p> tags should really be, and save me downloading them all.

Edited by xrepins, 04 March 2006 - 11:33 AM.


#2 breezer

breezer

    Likes Etomite Forums!

  • Member
  • PipPip
  • 308 posts

Posted 04 March 2006 - 11:35 AM

I know that Tinymce gets alot of flack here, but that is only because its full potential has not been tapped as far as customizing the settings which are available. If you download the full package and take the time to read the documentation I think you would find it can do far more than most other editors, including not using br tags...

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_*

Guest_xrepins_*
  • Guests

Posted 04 March 2006 - 11:40 AM

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! :)

Edited by xrepins, 04 March 2006 - 11:40 AM.


#4 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 04 March 2006 - 05:15 PM

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! :)

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...

#5 breezer

breezer

    Likes Etomite Forums!

  • Member
  • PipPip
  • 308 posts

Posted 04 March 2006 - 06:19 PM

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...

#6 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 04 March 2006 - 08:46 PM

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...

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... B)

#7 Guest_xrepins_*

Guest_xrepins_*
  • Guests

Posted 04 March 2006 - 11:26 PM

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...

Attached File  add.png   87.09K   131 downloads

Edited by xrepins, 05 March 2006 - 12:54 AM.


#8 breezer

breezer

    Likes Etomite Forums!

  • Member
  • PipPip
  • 308 posts

Posted 05 March 2006 - 03:13 AM

hmmm... never seen that, but I only use Maxthon. I'll have a look with FireFox and see if it happens on my site too.

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 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 05 March 2006 - 06:57 PM

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...

Attached File  add.png   87.09K   131 downloads

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...

#10 Guest_xrepins_*

Guest_xrepins_*
  • Guests

Posted 06 March 2006 - 03:02 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...

Certainly am. Hmm. Time to search for a solution, again... So much for Firefox being the saviour of the universe...

In other news, coming along nicely now...

Attached File  kb1.png   62.73K   110 downloads

Attached File  kb2.png   88.13K   103 downloads

Edited by xrepins, 06 March 2006 - 03:06 PM.


#11 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,787 posts

Posted 06 March 2006 - 04:19 PM

looks ace!

#12 Guest_xrepins_*

Guest_xrepins_*
  • Guests

Posted 07 March 2006 - 01:52 PM

Now with "Views" counter and "Most Popular" listings.

Attached File  views.png   109.74K   94 downloads

Answer 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&amp;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&amp;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 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,787 posts

Posted 10 March 2006 - 08:59 AM

Really Looks nice... is it able to be "attached" to eto?

#14 Guest_xrepins_*

Guest_xrepins_*
  • Guests

Posted 10 March 2006 - 02:08 PM

It will be. My plans are:

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