Find Jobs
Hire Freelancers

sceditor add button with 3 fields

€2-3 EUR / hour

Closed
Posted over 4 years ago

€2-3 EUR / hour

Add to sceditor new button with this function [hide cost="25" title="super secret content"]Pay to view this content.[/hide] This is foundation [hide cost="25"]Pay to view this content.[/hide] $.[login to view URL]('hidep', { tooltip: 'Add unlock content for gems!', _dropDown: function (editor, caller) { var $content; $content = $( '<div>' + '<div>' + '<label for="hidep">' + editor._('Ammount of gems') + '</label> ' + '<input type="text" id="hidep" />' + '</div>' + '<div>' + '<label for="des">' + editor._('Your hidden content') + '</label> ' + '<input type="text" id="des" />' + '</div>' + '<div><input type="button" class="button" value="' + editor._('Insert') + '" /></div>' + '</div>' ); $[login to view URL]('.button').on('click', function (e) { var val = $[login to view URL]('#hidep').val(), description = $[login to view URL]('#des').val(); if (val) { // needed for IE to reset the last range $(editor).trigger('focus'); if (![login to view URL]().selectedHtml() || description) { if (!description) description = val; [login to view URL]('[hide cost="' + val + '"]' + description + '[/hide]'); } else [login to view URL]('createlink', 'mailto:' + val); } [login to view URL](true); [login to view URL](); }); [login to view URL](caller, 'inserthidep', $[login to view URL](0)); }, exec: function (caller) { $.[login to view URL]('hidep')._dropDown(this, caller); } });
Project ID: 23480212

About the project

1 proposal
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of ESTONIA
Tõrva, Estonia
5.0
3
Payment method verified
Member since Dec 10, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.