Online computer courses, code, programming tutorial and sidebar information for monitoring Canadian S&P/TSX index. Build friendship and networking. Welcome to visit my blogs often!!! I also have two other sites: YouTube Channel and Google site.
Adsense
Popular Posts
- PHPWind-- A PHP forum script applcaition in China
- Free host forum is not reliable
- Formatting my post
- Powerful js library datable to export table in pdf, excel, sorting, freezing column and table header fixed (sticky)
- job interview questions (1)
- Set up a child account and set screen time limit in Windows 8
- PHP: add a download as pdf file button in report page
- phpexcel toggle expand and hide column in EXCEL and summary
- WinMerge - file and folder differencing and merging tool for Windows
- PHP connect IBM db2 database in XAMPP
Tuesday, August 21, 2012
Paste from MS Word to Tinymce online editor
When we copy the text from Microsoft Word to Tinymce online editor, sometimes extra characters are added on. This is due to that "paste" plugin in Tinymce not initialized.
You can also add buttons: "paste as plain text" and "paste from word" in the Tinymce. But you do not have to add these buttons: "paste as plain text" and "paste from word" due to that adding "paste" plugin already fixes the bug.
Example: add "paste" plugin, "paste as plain text" and "paste from word" buttons in Tinymce initialization:
<script type="text/javascript">
tinymce.init({
mode : "textareas",
editor_selector : "mce-editor",
elements: "table,advhr,advimage,advlink,preview,print,contextmenu,paste",
theme: "advanced",
plugins: 'paste',
theme_advanced_buttons1: "fontselect, fontsizeselect,pastetext,pasteword",
theme_advanced_buttons2: "",
theme_advanced_buttons3: "",
theme_advanced_buttons4: "",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
extended_valid_elements: "p,span[*],delete[*],insert[*]",
height: '400'
});
</script>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment