This text editor provides the following options using some BBCode tags :
-
Text format :
- bold
- italic
- underline
- text size (in pixels)
- superscript
- subscript
- color text
- uppercase
- lowercase
-
Extra content :
- insert a link
- insert a media
- insert an e-mail address
-
Text alignment :
- left
- center
- right
- justify
-
List
Tested with :
- Internet Explorer 10
- Chrome 38
- Firefox 31
jQuery Core v1.10.x or higher required.
- jQuery plugins and others toolkits :
- jQuery Color Picker Plugin (http://www.eyecon.ro/colorpicker/)
- jQuery Caret (https://github.com/acdvorak/jquery.caret)
- jQuery Media Outlet (https://github.com/jcoudsi/jquery.media.outlet)
- Font Awesome (http://fortawesome.github.io/Font-Awesome/)
Turns the textarea inside the HTML element into a BBCode text editor.
The name of the directory where the media will be uploaded on your server, when the media upload functionality of the text editor is used. If it isn't specified, the file will be uploaded in the directory where the PHP upload script is executed.
The CSS file can be customised.
Styling buttons zones :
.basic_bbcode_text_editor_appareance_buttons, .basic_bbcode_text_editor_insertion_buttons, .basic_bbcode_text_editor_position_buttons, .basic_bbcode_text_editor_miscellaneous_buttons {
/* .basic_bbcode_text_editor_appareance_buttons : text formating buttons zone
.basic_bbcode_text_editor_insertion_buttons : add extra content buttons zone
.basic_bbcode_text_editor_position_buttons : text alignment buttons zone
.basic_bbcode_text_editor_miscellaneous_buttons : list button zone
*/
...
}Styling buttons :
.basic_bbcode_text_editor_buttons i {
...
}Styling buttons hover
.basic_bbcode_text_editor_buttons i:hover {
...
}The textarea element must be the immediate children of the used container.
Working example :
<div class="texteditor">
<textarea>Some text</texarea>
</div>$('.texteditor').textEditor();No working example :
<div class="texteditor">
<div class="subdiv">
<textarea>Some text</texarea>
</div>
</div>$('.texteditor').textEditor();In order :
- bold
- italic
- underline
- text size (pixels)
- superscript
- subscript
- color picker to set the text color (using jQuery Color Picker plugin)
- uppercase
- lowercase
These BBCode tags can be applied on the current text selection, or at the cursor position if nothing is selected. Clicking on the text size or the color picker buttons makes a specific panel appear. An other click makes the specific panel disapear.
In order :
- Add an URL (with target option)
- Add an e-mail link
- Add a media outler (using jQuery Media Outlet plugin)
The URL and e-mail BBCode tags can be applied on the current text selection, or at the cursor position if nothing is selected. Clicking on these three buttons makes a specific panel appear. An other click makes the specific panel disapear.
In order :
- left
- center
- right
- justify
These BBCode tags can be applied on the current text selection, or at the cursor position if nothing is selected.
This BBCode tags can be applied on the current text selection, or at the cursor position if nothing is selected.



