add some code in messages\add.php
Hello to All.
I am new to Vanilla. I am working a plugin urduEditor.
using this editor we can able to write Urdu (language of Pakistan) in any text area like searchbox etc. its working perfect everywhere but Conversation. I solved that problem by adding some code in "\applications\conversations\views\messages\add.php" . now i want to know how i can add this code to this file by using my plugin.
my plugin's default.php file's code is like this:
<?php
if (!defined('APPLICATION')) exit();
$PluginInfo['urduEditor'] = array(
'Description' => 'Urdu Editor for Vanilla.',
'Version' => '1.0',
'Author' => "Imra Ali Mughal",
'AuthorEmail' => 'mughalscomputers@gmail.com',
'AuthorUrl' => 'http://imughal.com'
);
class urduEditor extends Gdn_Plugin {
public function __construct() {
}
public function Base_Render_Before($Sender) { $Sender->AddJsFile($this->GetResource('js/jquery.UrduEditor.js', FALSE, FALSE)); $Sender->Head->AddString(' <script type="text/javascript"> $.fn.UrduEditor.defaults.EditorFont = "Jameel Noori Nastaleeq"; $.fn.UrduEditor.defaults.EnglishColor = "#fff"; $.fn.UrduEditor.defaults.UrduColor = "#fff"; $.fn.UrduEditor.defaults.LineBreak = false; $(document).ready(function () { $("#Form_Search").UrduEditor({ToggleControls:false, VirtualKeyboard:false,PointSize:"16px"}); $("#Form_Name").UrduEditor({ToggleControls:false, VirtualKeyboard:false,PointSize:"16px"}); $("textarea").UrduEditor({ToggleControls:false, VirtualKeyboard:false,PointSize:"16px"});
});
');
}
public function Setup(){}
}
thanks
Comments
@todd