Jump to content

how to load word doc files to tinymce


pixeltrace

Recommended Posts

guys,

 

i need help. anyone here tried using tinymce already?

if ever, how do i display or open a word document file

using tinymce?

 

what i mean here, if i have a document file,

you can read the document file already from the

textarea of tinymce

 

need help on this.

 

thanks!

Link to comment
Share on other sites

do you have any samples that i can check?

 

because i will be using tinymce for resume application.

so i was having a problem if its ok or right to have all the text content being pasted in

the textarea to be saved in the database or somewhere else.

 

also, aside from that, users should be able to edit there resume later on

so i dont have any ideas yet as to how to use tinymce for this kind of application

 

hope you could help me with this.  thanks!

Link to comment
Share on other sites

do you have any samples that i can check?

 

No

 

because i will be using tinymce for resume application.

so i was having a problem if its ok or right to have all the text content being pasted in

the textarea to be saved in the database or somewhere else.

 

Ok.

 

also, aside from that, users should be able to edit there resume later on

so i dont have any ideas yet as to how to use tinymce for this kind of application

 

I'm not going to write it for you  ;) ;)

 

Post the code you are stuck on.

 

monk.e.boy

Link to comment
Share on other sites

hi,

 

i am planning to use the

example_word.htm from

tinymce 2.

but i dont know how to remove the toolbars on top

i mean the entire tool bar, since i am just planning to use the textarea

to let users just copy and paste there resume.

 

i tried removing some of the plugins on top of the codes but i can still see some of the toolbars.

hope you could help me with this.

this is the current code that i have for that page

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Word example</title>
<!-- TinyMCE -->
<script language="javascript" type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
	mode : "textareas",
	theme : "advanced",
	plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media",
<!--theme_advanced_buttons1_add_before : "save,newdocument,separator",-->
	theme_advanced_buttons1_add : "fontselect,fontsizeselect",
	theme_advanced_buttons2_add : "forecolor,backcolor",
<!--theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",-->
<!--theme_advanced_buttons3_add_before : "tablecontrols,separator",-->
<!--theme_advanced_buttons3_add : "emotions,iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",-->
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	content_css : "example_word.css",
    plugi2n_insertdate_dateFormat : "%Y-%m-%d",
    plugi2n_insertdate_timeFormat : "%H:%M:%S",
	external_link_list_url : "example_link_list.js",
	external_image_list_url : "example_image_list.js",
	media_external_list_url : "example_media_list.js",
	file_browser_callback : "fileBrowserCallBack",
	paste_use_dialog : false,
	theme_advanced_resizing : true,
	theme_advanced_resize_horizontal : false,
	theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
	paste_auto_cleanup_on_paste : true,
	paste_convert_headers_to_strong : false,
	paste_strip_class_attributes : "all",
	paste_remove_spans : false,
	paste_remove_styles : false		
});

function fileBrowserCallBack(field_name, url, type, win) {
	// This is where you insert your custom filebrowser logic
	alert("Filebrowser callback: field_name: " + field_name + ", url: " + url + ", type: " + type);

	// Insert new URL, this would normaly be done in a popup
	win.document.forms[0].elements[field_name].value = "someurl.htm";
}
</script>
<!-- /TinyMCE -->
</head>
<body>
<form method="post" action="http://tinymce.moxiecode.com/dump.php?example=true">
<h3><br />
  <br />
  <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 100%">
  </textarea>
  <br />
  <input type="submit" name="save" value="Submit" />
  <input type="reset" name="reset" value="Reset" />
</h3>
</form>

</body>
</html>

notice that i already placed <!--    --> on all the plugins that i dont want to appear

but what i really wanted to happen is to just have the the Bold, Italize, underline, font color, font size, font type align left, right, center

to appear on the tool bar.

 

Thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.