Javascript Course

CKEditor with Free Image Browse and Upload Plugins (version 4.5.3). The imgbrowse plugin allows images on the server to be browsed and picked for inclusion into the editor's contents, using Ajax and PHP.

• To Download the CKEditor web text editor, with Free Image Browser Plugin and Uploader Addon, and other pre installed addons,
click: Download CKEditor [1.9 MB] (see the instructions in the "index.html").
• To test the script: Demo
• To Download the imgbrowse plugin only (with the Image Browser) to include it in your CKEditor, click: Image Browse Plugin

- This plugin requires PHP 5.4+. If you use an earlier PHP version, make these changes in the "imgbrowse.php" file (in the "imgbrowse/" folder): 1. Change line 7 to:
protected $imgext = array('bmp', 'gif', 'jpg', 'jpe', 'jpeg', 'png');
1. Change line 18 to:
$re = array('menu'=>'', 'imgs'=>'');
For comments, questions, or any issue related to this plugin, write on Forum, in the "Scripts from Website" category.

Screenshoot

Click on images

- Image Browser Popup Window
imgbrowse Popup window

- Uploader Addon
imgbrowse Upload extension

Instructions for imgbrowse plugin

• Copy the whole contents of this repository into a new plugins/imgbrowse/ directory in your CKEditor install.
• To include and use the imgbrowse plugin in your CKEditor, specify these parameters in CKEditor configuration: extraPlugins: 'imgbrowse' and filebrowserImageBrowseUrl
Example:
CKEDITOR.replace('IDtextarea', {
  'extraPlugins': 'imgbrowse',
  'filebrowserImageBrowseUrl': '/path_to/ckeditor/plugins/imgbrowse/imgbrowse.html?imgroot=PATH_TO_IMAGE_FOLDER',
});
- The path to the image folder (PATH_TO_IMAGE_FOLDER) it is necessary ONLY IF YOU NOT SPECIFY the path in "imgbrowse.php". The path must be RELATIVE TO THE ROOT OF YOUR WEBSITE ON SERVER, for example: "imgroot=/img_dir".

- You can set the path to the folder with images in the "plugins/imgbrowse/imgbrowse.php" file, to the $root property (Line 6). In this case you NOT NEED TO ADD the ?imgroot=PATH_TO_IMAGE_FOLDER in the "filebrowserImageBrowseUrl".


• If you want to use Relative Path (without 'http://') for the image selected in the imgbrowse window, open the "imgbrowse.html" file (located in the "ckeditor/plugins/imgbrowse/" folder) and replace this code (lines 192, 193):
if(CKEditorFuncNum !== null) window.opener.CKEDITOR.tools.callFunction(CKEditorFuncNum, e.target.src);
window.close();
With this:
if(CKEditorFuncNum !== null) window.opener.CKEDITOR.tools.callFunction(CKEditorFuncNum, e.target.src);
var inp_src = window.opener.document.querySelector('.cke_dialog_ui_input_text input.cke_dialog_ui_input_text');
if(inp_src) inp_src.value = e.target.src.replace(/(http\:\/\/|https\:\/\/)[^\/]+/i, '');
window.close();

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag is used to add lists into <ul> and <ol> elements?
<dt> <dd> <li>
<ul>
 <li>http://coursesweb.net/html/</li>
 <li>http://coursesweb.net/css/</li>
</ul>
Which value of the "display" property creates a block box for the content and ads a bullet marker?
block list-item inline-block
.some_class {
  display: list-item;
}
Which instruction converts a JavaScript object into a JSON string.
JSON.parse() JSON.stringify eval()
var obj = {
 "courses": ["php", "javascript", "ajax"]
};
var jsonstr = JSON.stringify(obj);
alert(jsonstr);    // {"courses":["php","javascript","ajax"]}
Indicate the PHP class used to work with HTML and XML content in PHP.
stdClass PDO DOMDocument
$strhtml = '<body><div id="dv1">CoursesWeb.net</div></body>';
$dochtml = new DOMDocument();
$dochtml->loadHTML($strhtml);
$elm = $dochtml->getElementById("dv1");
echo $elm->nodeValue;    // CoursesWeb.net
CKEditor Free Image Browse Plugin

Last accessed pages

  1. Vue JS - Transition and Animation (490)
  2. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (141749)
  3. Node.js Move and Copy file (28420)
  4. MouseEvent - Events for Mouse (2909)
  5. PHPMailer (2311)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (473)
  2. CSS cursor property - Custom Cursors (79)
  3. The Mastery of Love (70)
  4. PHP-MySQL free course, online tutorials PHP MySQL code (62)
  5. CSS3 2D transforms (46)