-
22 Oct 2012 12:03 AM #81
Hi,
please tell me, which toolbar button do you mean exactly:
An ExtJS toolbar with a button that access the WYSIWYG like insertion of a place holder in my demo example
or
An TinyMCE toolbar with a button bound to a TinyMCE plugin
-
22 Oct 2012 12:15 AM #82
Okay like configuring my tinymce_textarea like this:
I want to activate my own plugin with a configuration like this. Like I enable the standard plugins. I want to maybe show my own button or just extend one of the standard buttons like table creation with my own functionality + I don´t want to place my custom stuff under tinymce/plugins but anywhere else. I hope that makes it a bit clearer.PHP Code:xtype: "tinymce_textarea",
height: 400,
fieldLabel: 'Content',
tinyMCEConfig: {
plugins: [mycustom],
theme_advanced_buttons1: [mycustom]
}
-
22 Oct 2012 12:28 AM #83
ОK,
the creation of a plugin such as mine can be divided into the following steps:
Step 1
Derive your class from a class which you want to extend and provide the alias names for your plugin, e.g.
Step 2Code:Ext.define('Ext.ux.form.TinyMCETextArea', { extend: 'Ext.form.field.TextArea', alias: ['widget.tinymce_textarea', 'widget.tinymce_field'],
Define its special properties and set thier default values, e.g.
Step 3Code:/* This properties enables starting without WYSIWYG editor. The user can activate it later if he wants. */ noWysiwyg: false, /* Config object for the TinyMCE configuration options */ tinyMCEConfig: {},
Define time point when you should initialize your plugin. It is difficult to find out the correct time point and it depends on the specific of you plugin. That means, on which event you should start initialization of your plugin.
Step 4
Implement an init function in your plugin and call it with passing the special parameters while initialization.
-
2 Nov 2012 6:07 AM #84
Upload Image
Upload Image
¿is it posible to add upload imagen from TinyMCE and that show window manager images?
thanks
-
5 Mar 2013 11:21 PM #85
I got a bug on clicking image load button
I got a bug on clicking image load button
Hi Dear.
Am using this editor because the htmleditor is not fulfilling my requirement , with html editor we cant add/ insert an image in the text area , so that i used this tiny-MCE editor, now i got an error in the the editor while clicking the image button to load an image in to it the back ground also get blurred , and got some error message in the firebug console.
Please help me to solve it
here am attaching an image which i got from the fire bug
and my working environment
am using : ExtJS 4.0.7
Browser : Firefox 10.0.2
OS : Windows Xp
Ans Sencha Team , And Tiny MCe Developer i liked the Editor we used to post this reply ,
Thanks in advance
Lal
The erro image is :Tiny Mce 1.jpgLast edited by 123lal; 5 Mar 2013 at 11:32 PM. Reason: image load
-
5 Mar 2013 11:46 PM #86
Hi,
please try this demo example
http://www.point-constructor.com/tinyta_demo/
whether you receive this error or not.
It looks like some JS scripts fail to be included or blocked by a protection tool.
Regards
-
6 Mar 2013 12:28 AM #87
Thank You Dear
I tried the above link, it is working perfect.
And sorry i forgot to include line of code i used in mt view file . in side the container
i added this in side an item {},
And defined variableCode:xtype : 'tinymce_textarea', fieldStyle : 'font-family: Courier New; font-size: 12px;', noWysiwyg : false, tinyMCEConfig: tinyCfg2, id : 'german', name : 'german', value : 'German Text'
Code:var tinyCfg2 = { // General options theme : "advanced", plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist", skin: "extjs", inlinepopups_skin: "extjs", // Original value is 23, hard coded. // with 23 the editor calculates the height wrong. // With these settings, you can do the fine tuning of the height // by the initialization. theme_advanced_row_height: 27, delta_height: 0, // Theme options theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", // Example content CSS (should be your site CSS) //content_css : "contents.css" };
The above declaration in the same view file,
One more I commented line 359 of TinyMCETextArea.js
i commented this line to avoid "elm.hasVisibleLabel is not a function" this error message ,Code://if(elm.hasVisibleLabel() && (elm.labelAlign == 'left' || elm.labelAlign == 'right'))
Thank you
-
6 Mar 2013 1:22 AM #88
Dear Qtx , I found the reason for the bug
i downloaded your example and tried in my machine
with your ext js core that is ext-all.js 4.1 the example works fine
but i replaced it with ext4.0.7 core file , i got error ,
What should i have to do to over come this error, i ilked the Editor very much.
Hope there will be a solution to solve this problem
Thank you Qtx ,
Take care
-
6 Mar 2013 1:29 AM #89
I wrote above that you have commented some line in my code and it worked. I assume 4.1 has some functions that 4.0.7 does not have yet.
You have to rewrite the places where the problem occurs:
The code
if(elm.hasVisibleLabel() && (elm.labelAlign == 'left' || elm.labelAlign == 'right'))
is necessary only in special cases. You can comment it.
-
16 Mar 2013 6:07 AM #90
New Version 2.4
ExtJS version updated from 4.1.0 to 4.2.0
TinyMCE version updated from 3.5.4.1 to 3.5.8


Reply With Quote