aboutsummaryrefslogtreecommitdiffstats
path: root/view/field_richtext.tpl
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-30 15:31:25 -0700
committerFriendika <info@friendika.com>2011-06-30 15:31:25 -0700
commit4f1213b69f12e6df2350cd21c6de06128a03411d (patch)
treecb68ecdcadb886e15cc502b633ca71b874740e55 /view/field_richtext.tpl
parent8819c73ba1ae1cbf19d2c517a87d30104d1a5da1 (diff)
parent7778dbb67b2c033473b0da9b34df01d28162b5ee (diff)
downloadvolse-hubzilla-4f1213b69f12e6df2350cd21c6de06128a03411d.tar.gz
volse-hubzilla-4f1213b69f12e6df2350cd21c6de06128a03411d.tar.bz2
volse-hubzilla-4f1213b69f12e6df2350cd21c6de06128a03411d.zip
Merge pull request #132 from fabrixxm/master
Some works on addons and other
Diffstat (limited to 'view/field_richtext.tpl')
-rw-r--r--view/field_richtext.tpl44
1 files changed, 44 insertions, 0 deletions
diff --git a/view/field_richtext.tpl b/view/field_richtext.tpl
new file mode 100644
index 000000000..a5a453d32
--- /dev/null
+++ b/view/field_richtext.tpl
@@ -0,0 +1,44 @@
+
+ <div class='field richtext'>
+ <label for='id_$field.0'>$field.1</label>
+ <textarea name='$field.0' id='id_$field.0' class="fieldRichtext">$field.2</textarea>
+ <span class='field_help'>$field.3</span>
+ <script>
+ console.log(typeof tinyMCE);
+ if(typeof tinyMCE == "undefined") {
+ tinyMCE="loading";
+ window.tinyMCEPreInit = {
+ suffix:"",
+ base: baseurl+"/library/tinymce/jscripts/tiny_mce/",
+ query:"",
+ };
+ $(function(){
+ $.getScript(baseurl +"/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js", function(){
+ tinyMCE.init({
+ theme : "advanced",
+ mode : "specific_textareas",
+ editor_selector: "fieldRichtext",
+ plugins : "bbcode,paste",
+ theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
+ theme_advanced_buttons2 : "",
+ theme_advanced_buttons3 : "",
+ theme_advanced_toolbar_location : "top",
+ theme_advanced_toolbar_align : "center",
+ theme_advanced_blockformats : "blockquote,code",
+ paste_text_sticky : true,
+ entity_encoding : "raw",
+ add_unload_trigger : false,
+ remove_linebreaks : false,
+ force_p_newlines : false,
+ force_br_newlines : true,
+ forced_root_block : '',
+ convert_urls: false,
+ content_css: baseurl+"/view/custom_tinymce.css",
+ theme_advanced_path : false,
+ });
+ });
+ });
+ }
+ </script>
+
+ </div>