예제 #1
0
 /**
  * Handles an [img] tag.
  *
  * @param	string	The text to search for an image in.
  * @param	string	Whether to parse matching images into pictures or just links.
  *
  * @return	string	HTML representation of the tag.
  */
 function handle_bbcode_img($bbcode, $do_imgcode, $has_img_code = false, $fulltext = '', $forceShowImages = false)
 {
     $bbcode = parent::handle_bbcode_img($bbcode, $do_imgcode, $has_img_code, $fulltext, true);
     return $bbcode;
 }
예제 #2
0
 /**
  * Handles an [img] tag.
  *
  * NOTE: This calls the parent implementation so that the [ATTACH] and [IMG]
  * bbcodes render (nearly) the same when editing the post as when displaying
  * the post. The main difference is that the surrounding anchor tags are
  * removed for images in the WYSIWYG editor, via turnOffSurroundingAnchor.
  * See comment before parent function call.
  *
  * @param	string	The text to search for an image in.
  * @param	string	Whether to parse matching images into pictures or just links.
  *
  * @return	string	Text representation of the tag.
  */
 function handle_bbcode_img($bbcode, $do_imgcode, $has_img_code = false, $fulltext = '', $forceShowImages = false)
 {
     // the bbcode parser surrounds images in an anchor if the image is not fullsize.
     // In order to have the images show the ckeditor's Image Dialog instead of the Link dialog,
     // we need the images to show up without the surrounding anchor tag.
     // So this is a dirty hacky workaround.
     $this->turnOffSurroundingAnchor = true;
     return parent::handle_bbcode_img($bbcode, $do_imgcode, $has_img_code, $fulltext, $forceShowImages);
 }