Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Javascript] Remove WYSIWYG button from text box



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Shadow

avatar
Administrator
Administrator


Remove WYSIWYG button

With the upgrade of quick reply, WYSIWYG button has been updated and so many users did not like the update. In this tutorial we will teach you how to pull off this effect that makes text formatting is automatic and remove this button.


--> Tutorials, tips and tricks <--
Tutorial: Remove WYSIWYG button


- Javascript
Add the following code to the javascript

Code:
[panda=js]        $(function() {$(function() {var a = $("#text_editor_textarea");a.length && ($("a.sceditor-button-source").remove(), !a.sceditor("instance").inSourceMode() && a.sceditor("instance").toggleSourceMode())})});
- Preview
The result will be as shown in the print screen below:

http://i.imgur.com/EIAhecM.png





© PunBB Design


If you have any questions related to this topic create a topic with the following title:
Tutorial: Remove WYSIWYG button

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

2
Offline

  Zyon

avatar
Punbb Guru
Punbb Guru
Good tutorial, and helpful Smile

Powered by PunBB
Currently 0 users have thanked Zyon for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum