Plugin Directory

Changeset 768882


Ignore:
Timestamp:
09/09/2013 08:13:24 AM (13 years ago)
Author:
dc5ala
Message:

updated compatible version information

Location:
lineunbreaker/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lineunbreaker/trunk/editor_plugin.js

    r612305 r768882  
    1 (function(){tinymce.create('tinymce.plugins.Lineunbreaker',{init:function(ed,url){ed.addCommand('mceLineunbreak',function(){var content=ed.selection.getContent();var contentClean=content.replace(/(\r\n|\n|\r|<br\s*[\/]?>)/gim,'');ed.selection.setContent(contentClean)});ed.addButton('lineunbreak',{title:'Removes linebreaks from selected text',cmd:'mceLineunbreak',image:url+'/img/lineunbreaker.gif'})},getInfo:function(){return{longname:'Lineunbreaker',author:'Andre Lohan',authorurl:'http://wordpress.org/extend/plugins/lineunbreaker/',infourl:'',version:"1.1"}}});tinymce.PluginManager.add('lineunbreaker',tinymce.plugins.Lineunbreaker)})();
     1(function(){tinymce.create("tinymce.plugins.Lineunbreaker",{init:function(e,t){e.addCommand("mceLineunbreak",function(){var t=e.selection.getContent();var n=t.replace(/(\r\n|\n|\r|<br\s*[\/]?>)/gim,"");e.selection.setContent(n)});e.addButton("lineunbreak",{title:"Removes linebreaks from selected text",cmd:"mceLineunbreak",image:t+"/img/lineunbreaker.gif"})},getInfo:function(){return{longname:"Lineunbreaker",author:"Andre Lohan",authorurl:"http://wordpress.org/extend/plugins/lineunbreaker/",infourl:"",version:"1.2"}}});tinymce.PluginManager.add("lineunbreaker",tinymce.plugins.Lineunbreaker)})()
  • lineunbreaker/trunk/editor_plugin_src.js

    r612305 r768882  
    66            ed.addCommand('mceLineunbreak', function() {
    77                var content = ed.selection.getContent();
     8                //if (window.console) console.log('content before: ' + content);
    89                var contentClean = content.replace(/(\r\n|\n|\r|<br\s*[\/]?>)/gim, '');
     10                //contentClean = contentClean.replace(/<[\/]?p\s*[\/]?>/gim, ''); // paragraphs
     11                //if (window.console) console.log('content after: ' + contentClean);
    912                ed.selection.setContent(contentClean);
    1013            });
     
    2528                authorurl : 'http://wordpress.org/extend/plugins/lineunbreaker/',
    2629                infourl : '',
    27                 version : "1.1"
     30                version : "1.2"
    2831            };
    2932        }
  • lineunbreaker/trunk/isa-tinymce-lineunbreaker.php

    r612305 r768882  
    44Plugin URI: http://wordpress.org/extend/plugins/lineunbreaker/
    55Description: Removes line breaks from selected text in visual editor.
    6 Version: 1.1
     6Version: 1.1.1
    77Author: dc5ala
    88License: GPL2
    99*/
    1010
    11 /*  Copyright 2012  Andre Lohan  (email : dc5ala@darc.de)
     11/*  Copyright 2013  Andre Lohan  (email : dc5ala@darc.de)
    1212
    1313    This program is free software; you can redistribute it and/or modify
  • lineunbreaker/trunk/readme.txt

    r640995 r768882  
    33Tags: tinymce, editor, newlines, linebreaks
    44Requires at least: 3.2
    5 Tested up to: 3.5
     5Tested up to: 3.6
    66Stable tag: 1.1
    77License: GPLv2 or later
     
    2626= What kind of line breaks are getting removed? =
    2727
    28 Newslines (backslash n), carriage returns (backslash r) and HTML `<br>` tags.
     28Newslines (backslash n), carriage returns (backslash r) and HTML `<br>` tags. Paragraphs remain untouched.
    2929
    3030== Changelog ==
     31
     32= 1.1.1 =
     33* Updated compatible version information
    3134
    3235= 1.1 =
Note: See TracChangeset for help on using the changeset viewer.