[MOD] TinyMCE editor for Story Submission at Step 2

Register an Account
Closed Thread
 
Thread Tools Display Modes
  #41 (permalink)  
Old 11-03-2007, 09:10 AM
Casual Pligger
 
Join Date: Aug 2007
Posts: 91
Nice Tool, I will probably integrate it...
Is there any way to disable some features of this tool. For example I would only allow Bold, Underline and some more features instead of all....
Thanks for help
  #42 (permalink)  
Old 11-09-2007, 05:49 AM
New Pligger
 
Join Date: Sep 2007
Posts: 7
there is an error

if you want the short description option work again add this

{literal}
<script language="javascript" type="text/javascript">
tinyMCE.init({

mode : "exact",
elements : "bodytext",
theme : "advanced",
plugins : "advimage,advlink,emotions,iespell,insertdatetime, preview,media,visualchars,xhtmlxtras",
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter ,justifyright,justifyfull,|,bullist,numlist,|,inse rtdate,inserttime,|,forecolor,backcolor,|,hr,remov eformat,formatselect",
theme_advanced_buttons2 : "link,unlink,image,media,|,undo,redo,cleanup,|,cod e,preview",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|h eight|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
browsers : "msie,gecko,opera,safari"
});
</script>

<script type="text/javascript">
function SetState(obj_checkbox, obj_textarea)
{ if(obj_checkbox.checked)
{ obj_textarea.disabled = false;
}
else
{ obj_textarea.disabled = true;
}
}
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
countfield.value = maxlimit - field.value.length;
}
</script>

{/literal}
  #43 (permalink)  
Old 11-24-2007, 07:01 AM
New Pligger
 
Join Date: Sep 2007
Posts: 2
This step how to install?




google rss dig / Published News
  #44 (permalink)  
Old 11-24-2007, 01:16 PM
New Pligger
 
Join Date: Sep 2007
Posts: 2
Installed, insert pictures published pictures do not show what is the reason for this?

google rss dig / Published News
  #45 (permalink)  
Old 12-12-2007, 06:13 AM
New Pligger
Pligg Version: 8
Pligg Template: Kez
 
Join Date: Dec 2007
Posts: 21
I would say its Best Mod

Check mine site Tagza: Social Bookmarking site / Published Stories
  #46 (permalink)  
Old 12-16-2007, 05:40 AM
Casual Pligger
Pligg Version: coquito
Pligg Template: plw
 
Join Date: Oct 2007
Posts: 48
Can we use tinymce to edit posts too?
  #47 (permalink)  
Old 12-17-2007, 01:23 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
TinyMCe does not allow to preset content - so it would probably fail
  #48 (permalink)  
Old 12-27-2007, 11:32 AM
Casual Pligger
Pligg Version: coquito
Pligg Template: plw
 
Join Date: Oct 2007
Posts: 48
i made it and it works well
1) edit editlink_edit_center.tpl and add the same code for submit_step2.tpl on the same part.
2) edit pligg.tpl and add below this code:
Quote:
{if $pagename eq "submit"}
<script language="javascript" type="text/javascript" src="{$my_pligg_base}/3rdparty/tiny_mce/tiny_mce.js"></script>
{/if}
this:
Quote:
{if $pagename eq "editlink"}
<script language="javascript" type="text/javascript" src="{$my_pligg_base}/3rdparty/tiny_mce/tiny_mce.js"></script>
{/if}
cheers.

Last edited by Naranja; 12-29-2007 at 10:01 AM.
  #49 (permalink)  
Old 01-07-2008, 10:42 PM
Casual Pligger
Pligg Version: 9.9
Pligg Template: default
 
Join Date: Jan 2008
Posts: 46
Quote:
Originally Posted by dollars5 View Post
The following mod will outline how ti integrate tinyMCE with Pligg Story submission step 2. This will be useful for sites which focus on editorial content rather than news submissions.



Steps:
1] copy files tiny_mce to /3rdParty folder (if you chose to get files from the tinyMCE main site then please copy only the folder tiny_mce under /tinymce/jscripts/ to 3rdParty in Pligg base)

2] Enable HTML in submit from admin panel to include the following tags
Code:
<br><font><img><p><a><strong><ul><li><ol><u><em><span><pre><h1><h2><h3><hr><embed>
3] Edit Pligg.tpl to have the following lines after the
Code:
{checkForJs}
Code:
{if $pagename eq "submit"}
		<script language="javascript" type="text/javascript" src="{$my_pligg_base}/3rdparty/tiny_mce/tiny_mce.js"></script>
	{/if}
4] Edit submit_step_2.tpl to have the following lines after
Code:
{config_load file="/libs/lang.conf"}
add
Code:
{literal}
	<script language="javascript" type="text/javascript">
		tinyMCE.init({
			mode : "exact",
			elements : "bodytext",
			theme : "advanced",
			plugins : "advimage,advlink,emotions,iespell,insertdatetime,preview,media,visualchars,xhtmlxtras",
			theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,insertdate,inserttime,|,forecolor,backcolor,|,hr,removeformat,formatselect",
			theme_advanced_buttons2 : "link,unlink,image,media,|,undo,redo,cleanup,|,code,preview",
			theme_advanced_buttons3 : "",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_path_location : "bottom",
			extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
			browsers : "msie,gecko,opera,safari"
		});
	</script>
{/literal}
I have not tested it fully, only basic testing has been done.
I don't seem to find

{config_load file="/libs/lang.conf"}

in submit_step_2.tpl
I am using default template

I am using 9.9 any help please?
  #50 (permalink)  
Old 01-08-2008, 06:11 PM
netwb's Avatar
Casual Pligger/Coder
Pligg Version: 1.0
Pligg Template: wistie
 
Join Date: Dec 2006
Location: Bruxelles
Posts: 86
NicEdit was created over the past month as an alternative for the complexity, many files and large download size (> 200KB) of popular WYSIWYG editors such as TinyMCE and FCKEditor. It implements many of the standard rich text features like these editors but is easier to integrate without impact on download size.

In addition NicEdit instances are more flexible than some other editors and can expand to fit content added. NicEdit controls can also edit multiple divs or converted textareas on a page transparently while preserving the look and feel of the page and saving content via AJAX.
HTML Code:
<script src="http://js.nicedit.com/nicEdit.js" type="text/javascript"></script>
<script type="text/javascript">
bkLib.onDomLoaded(nicEditors.allTextAreas);
</script><textarea name="1" cols="60" rows="5"></textarea>
LOOK tis example, i't is very easy install:
example 1: NicEdit.com - Micro Inline WYSIWYG
example 2:
NicEdit.com - Micro Inline WYSIWYG
example 3:
NicEdit.com - Micro Inline WYSIWYG
example 4 Save Content via AJAX:
NicEdit.com - Micro Inline WYSIWYG
DOWNLOAD: http://nicedit.com/nicEdit-full.zip
the fli js is full configurable
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning messages in the 3rd step of submission - Please help PurpleCow Questions and Comments 12 10-02-2007 10:27 PM
"Confirm" message box when trying to modify submission in Step 3 nothingman Questions and Comments 0 09-22-2007 06:53 PM
[SOLVED] how to make url submission as not a mandatory step sharatthakur Questions and Comments 2 07-02-2007 01:36 PM
Step 2 Submission Formatting Problem csakon Questions and Comments 0 04-15-2007 11:05 PM
Pligg step 3 of 3 submission error xur17 Questions and Comments 1 04-20-2006 08:22 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development