Updated editor, removed IE8/IE9 support

This commit is contained in:
markseu 2018-03-01 20:08:41 +01:00
parent 30cdd9fdf4
commit 328d116f70
3 changed files with 8 additions and 10 deletions

View file

@ -1,5 +1,5 @@
/* Edit plugin, https://github.com/datenstrom/yellow-plugins/tree/master/edit */
/* Copyright (c) 2013-2017 Datenstrom, https://datenstrom.se */
/* Copyright (c) 2013-2018 Datenstrom, https://datenstrom.se */
/* This file may be used and distributed under the terms of the public license. */
.yellow-bar { position:relative; overflow:hidden; line-height:2em; margin-bottom:10px; }

View file

@ -1,5 +1,5 @@
// Edit plugin, https://github.com/datenstrom/yellow-plugins/tree/master/edit
// Copyright (c) 2013-2017 Datenstrom, https://datenstrom.se
// Copyright (c) 2013-2018 Datenstrom, https://datenstrom.se
// This file may be used and distributed under the terms of the public license.
var yellow =
@ -537,17 +537,15 @@ yellow.toolbox =
// Add element class
addClass: function(element, name)
{
var string = element.className + " " + name;
element.className = string.replace(/^\s+|\s+$/, "");
element.classList.add(name);
},
// Remove element class
removeClass: function(element, name)
{
var string = (" " + element.className + " ").replace(" " + name + " ", " ");
element.className = string.replace(/^\s+|\s+$/, "");
element.classList.remove(name);
},
// Add attribute information
addValue: function(selector, name, value)
{

View file

@ -1,11 +1,11 @@
<?php
// Edit plugin, https://github.com/datenstrom/yellow-plugins/tree/master/edit
// Copyright (c) 2013-2017 Datenstrom, https://datenstrom.se
// Copyright (c) 2013-2018 Datenstrom, https://datenstrom.se
// This file may be used and distributed under the terms of the public license.
class YellowEdit
{
const VERSION = "0.7.6";
const VERSION = "0.7.7";
var $yellow; //access to API
var $response; //web response
var $users; //user accounts