🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

nodebb-plugin-mega-colors

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-plugin-mega-colors - npm Package Compare versions

Comparing version
0.10.17
to
0.10.18
+9
-9
button.js

@@ -1,8 +0,8 @@

$('document').ready(function() {
require(['composer', 'composer/controls'], function(composer, controls) {
$('document').ready(function () {
require(['composer', 'composer/controls'], function (composer, controls) {
var text, start, end;
composer.addButton('fa fa-eyedropper', function(textarea, selectionStart, selectionEnd) {
composer.addButton('fa fa-eyedropper', function (textarea, selectionStart, selectionEnd) {
text = textarea;
});
$(document).on('click','[data-format="eyedropper"]',function(){
$(document).on('click', '[data-format="eyedropper"]', function () {
$('.fa-eyedropper').ColorPicker({

@@ -20,7 +20,7 @@ onShow: function (el) {

$(el).ColorPickerHide();
if(start === end){
controls.insertIntoTextarea(text, '%(#'+hex+')[Цветной текст]');
controls.updateTextareaSelection(text, start + 11, end + 27);
if (start === end) {
controls.insertIntoTextarea(text, '%(#' + hex + ')[Colored Text Here]');
controls.updateTextareaSelection(text, start + 11, end + 28);
} else {
controls.wrapSelectionInTextareaWith(text, '%(#'+hex+')[',']');
controls.wrapSelectionInTextareaWith(text, '%(#' + hex + ')[', ']');
controls.updateTextareaSelection(text, start + 11, end + 11);

@@ -31,3 +31,3 @@ }

});
$(document).on('blur','textarea.write',function(){
$(document).on('blur', 'textarea.write', function () {
start = this.selectionStart;

@@ -34,0 +34,0 @@ end = this.selectionEnd;

{
"name": "nodebb-plugin-mega-colors",
"version": "0.10.17",
"version": "0.10.18",
"nbbpm": {

@@ -5,0 +5,0 @@ "compatibility": "^0.7.1 || ^0.8.0 || ^0.9.0 || ^1.0.0"