lukasamd / mybb-fast_quote Goto Github PK
View Code? Open in Web Editor NEWFast Quote plugin for MyBB
License: GNU General Public License v3.0
Fast Quote plugin for MyBB
License: GNU General Public License v3.0
Hi,
Could you add compatibility with CKEditor for myBB?
Code:
mybb 1.8 https://github.com/MyBBIr/MyBB-CKEditor
mybb 1.6 https://github.com/MyBBIr/MyBBCKEditor
I've recently changed my editor to CKEditor and selective quote no longer works.
The essential part missing seems to be:
CKEDITOR.instances.message.insertText()
Self-explanatory.
Fast Quote does not Support, to insert Quotes in the FastReply field if any advanced QuickReplyEditor is installed. With this adv. editors, there is no longer the textarea used to store the text.
This editors were tested by myself on newest mybb version wit fastquote and they did not work:
-Quick Advanced Editor
-Quick Advanced Editor Plus
-Advanced Quick Reply Form
-Handcode like told here: http://myskins.org/Thread-Change-your-Quick-Reply-editor-into-an-advanced-editor
Also i tried different values for the "Quick reply field name" field.
Would be great, if this would work!
Would be worth a donation!
Show fast quote button only when the text is selected.
Quick advanced editor plus supports this...
Error:
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
1366 - Incorrect integer value: 'NULL' for column 'gid' at row 1
Query:
INSERT INTO mybb_settinggroups (gid
,name
,title
,description
,disporder
,isdefault
) VALUES ('NULL','fastQuote','Fast Quote','Settings for plugin "Fast Quote"',33,'0')
The only modification in my forum is the following to add formatting options to the quick reply box:
http://letsforum.com/Thread-MyBB-Advanced-Quick-Reply-Form-No-Plugin-Needed
fastQuote.js line 178 -
I added a "\n" after the "[/quote]" on my copy, so that the user can start typing straight away without adding one themselves. Some may even prefer a double newline.
This (with single newline) matches the behaviour of the "QuickQuote" plugin that was available for MyBB 1.6.
Thanks for your good work with this! (I wouldn't know where to start. I dabble in JS a little bit)
I'm not sure why or if it's just a quirk with the MyBB theme I'm using, but (at least on Firefox) where the focus is supposed to be set to the quick reply box on line 94 of fastQuote.js, it doesn't get the focus. Perhaps something else is beating the script to it, but I've not been able to find anything obvious.
I went for a "setTimeout" wrapper around the focus call to work around it.
setTimeout(function() { textarea.focus(); }, 100);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.