summaryrefslogtreecommitdiffstats
path: root/wp-includes/js/tinymce
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-08-10 22:19:11 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-08-10 22:19:11 +0000
commit69a120282949dc8a5526a7486751bc07aea44d9d (patch)
tree9485c819fbf9b2e118db2267629501ebb00fb0e5 /wp-includes/js/tinymce
parent9c59b9cf9db84c636a7e9b66440bb1dd9ac78be5 (diff)
downloadwordpress-mu-69a120282949dc8a5526a7486751bc07aea44d9d.tar.gz
wordpress-mu-69a120282949dc8a5526a7486751bc07aea44d9d.tar.xz
wordpress-mu-69a120282949dc8a5526a7486751bc07aea44d9d.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@721 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/js/tinymce')
-rwxr-xr-xwp-includes/js/tinymce/plugins/spellchecker/config.php2
-rw-r--r--wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js13
2 files changed, 9 insertions, 6 deletions
diff --git a/wp-includes/js/tinymce/plugins/spellchecker/config.php b/wp-includes/js/tinymce/plugins/spellchecker/config.php
index a528565..2bfc9ec 100755
--- a/wp-includes/js/tinymce/plugins/spellchecker/config.php
+++ b/wp-includes/js/tinymce/plugins/spellchecker/config.php
@@ -6,7 +6,7 @@
// Pspell shell specific settings
$spellCheckerConfig['tinypspellshell.aspell'] = '/usr/bin/aspell';
- $spellCheckerConfig['tinypspellshell.tmp'] = '/tmp';
+ $spellCheckerConfig['tinypspellshell.tmp'] = '/tmp/tinyspell/0';
// Default settings
$spellCheckerConfig['default.language'] = 'en';
diff --git a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js
index 733b4c2..08529ec 100644
--- a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js
+++ b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js
@@ -149,12 +149,14 @@ var TinyMCE_wordpressPlugin = {
var altPage = tinyMCE.getLang('lang_wordpress_page_alt');
// Parse all <!--more--> tags and replace them with images
- while ((startPos = content.indexOf('<!--more-->', startPos)) != -1) {
+ while ((startPos = content.indexOf('<!--more', startPos)) != -1) {
+ var endPos = content.indexOf('-->', startPos) + 3;
// Insert image
- var contentAfter = content.substring(startPos + 11);
+ var moreText = content.substring(startPos + 8, endPos - 3);
+ var contentAfter = content.substring(endPos);
content = content.substring(0, startPos);
content += '<img src="' + (tinyMCE.getParam("theme_href") + "/images/spacer.gif") + '" ';
- content += ' width="100%" height="10px" ';
+ content += ' width="100%" height="10px" moretext="'+moreText+'" ';
content += 'alt="'+altMore+'" title="'+altMore+'" class="mce_plugin_wordpress_more" name="mce_plugin_wordpress_more" />';
content += contentAfter;
@@ -200,7 +202,8 @@ var TinyMCE_wordpressPlugin = {
if (attribs['class'] == "mce_plugin_wordpress_more" || attribs['name'] == "mce_plugin_wordpress_more") {
endPos += 2;
- var embedHTML = '<!--more-->';
+ var moreText = attribs['moretext'] ? attribs['moretext'] : '';
+ var embedHTML = '<!--more'+moreText+'-->';
// Insert embed/object chunk
chunkBefore = content.substring(0, startPos);
@@ -342,7 +345,7 @@ var TinyMCE_wordpressPlugin = {
if (pos != -1)
attributeName = attributeName.substring(pos+1);
- attributes[attributeName.toLowerCase()] = attributeValue.substring(1).toLowerCase();
+ attributes[attributeName.toLowerCase()] = attributeValue.substring(1);
attributeName = "";
attributeValue = "";