Permalink
Browse files

Closed #957

  • Loading branch information...
1 parent 0e4160a commit 86fd1ef44952dbae48b32f2b94fff0ba3101b444 @trustmaster trustmaster committed Jun 6, 2012
@@ -38,6 +38,10 @@ function cot_cut_more($html)
{
$mpos = mb_strpos($html, '[more]');
}
+ if ($mpos === false)
+ {
+ $mpos = mb_strpos($html, '<hr class="more" />');
+ }
if ($mpos !== false)
{
$html = mb_substr($html, 0, $mpos);
@@ -3,6 +3,7 @@
CKEDITOR.editorConfig = function( config )
{
config.toolbar = 'Full';
+ config.extraPlugins = 'more';
config.toolbar_Full =
[
@@ -15,7 +16,7 @@ CKEDITOR.editorConfig = function( config )
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
- ['Link','Unlink','Anchor'],
+ ['Link','Unlink','Anchor','More'],
['Styles','Format'],
['TextColor','BGColor']
];
@@ -9,15 +9,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
(function()
{
-var moreCmd =
- {
- exec : function( editor )
- {
- editor.insertHtml('<!--more-->');
- }
-};
+ var moreCmd =
+ {
+ exec : function( editor )
+ {
+ editor.insertHtml('<hr class="more" />');
+ }
+ };
-var pluginName = 'more';
+ var pluginName = 'more';
// Регистрируем имя плагина .
CKEDITOR.plugins.add( pluginName,
{
@@ -94,6 +94,7 @@ var mySettings = {
{name: L.code, className: 'mCode', multiline:true, openBlockWith:'<code>', closeBlockWith:'</code>'}
]},
{name: L.smilies, className: "mSmilies", replaceWith: function(markitup) {showSmilies(markitup)}},
+ {name: L.more, className: 'mMore', replaceWith: '<hr class="more" />'},
{separator:'---------------'},
{name: L.clean, className:"mClean", replaceWith:function(markitup) {return markitup.selection.replace(/\[(.*?)\]/g, "")}},
{name: L.preview, className:"mPreview", call:'preview'}

0 comments on commit 86fd1ef

Please sign in to comment.