Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION I need add a "href atribute" to CKeditor out format value
#3
Hi, what does isconvert="1" do? I cannot find it via Google

Maybe you can use the GS Shortcodes plugin, using function addlink which you can find in the shortcodes.sample.php.

Then changing it to something like this:

Code:
function addlink($atts, $content = null){
 extract(shortcode_atts(array(
   "src" => null,
   "class" => null,
   "id" => null,
   "isconvert" => null
 ), $atts));
 $class    = isset($class) ? " class='".$class."'" : '';
 $id       = isset($id) ? " id='".$id."'" : '';
 $src       = isset($src) ? " href='".$src."' " : 'src="http://" ';
 $isconvert    = isset($isconvert) ? " isconvert='".$isconvert."'" : '';
 return '<a  '.$src.$id.$class.$isconvert.' >'. do_shortcode($content).'</a>';     
}
add_shortcode('link','addLink', '[link src="" class="" id="" isconvert=""]content[/link]');

You have to copy above code to file shortcodes.php.

you get a shortcode that looks like:
Code:
[link src='' class='' id='' isconvert=''][/link]
Reply


Messages In This Thread
RE: I need add a "href atribute" to CKeditor out format value - by datiswous - 2021-01-21, 13:42:58



Users browsing this thread: 1 Guest(s)