{"id":4172,"date":"2014-03-30T08:50:05","date_gmt":"2014-03-30T08:50:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/pluginsckeditorrelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-03-30T08:50:05","modified_gmt":"2014-03-30T08:50:05","slug":"pluginsckeditorrelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/pluginsckeditorrelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"plugins,ckeditorRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7138716106a0cf497600d125c3a41ba9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nShivam S.Kara<br \/>\njavascript android phonegap plugins native-methods<br \/>\nI am new on phonegap and android. I created a plugin in phonegap and android to call native function using javascrip.My coode is as below.plugin\/BannerLink.jsvar BannerLink = {callNativeFunction: function (success, fail, resultType) {\/\/alert(resultType);return Cordova.exec( success, fail,&#8221;org.apache.cordova.example.BannerLink&#8221;, &#8220;nativeFunction&#8221;, [resultType]);alert(resultType);} };My html view filefunction bannerPressed(link){alert(link.rel);\/\/window.location.href=link.rel;\/\/window.open(link.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4981cdace7bd78353de53b964c60c296?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSt\u00e9phane P\u00e9chard<br \/>\nios plugins cordova<br \/>\nI have some values generated from my native code that I would like to pass to phonegap. These data are generated in real time and are not directly influenced by the user&#8217;s actions through the phonegap gui.My native code is part of a plugin that I made.What is the best way to approach this? I want to have a function to send data over anytime and have a listener on the cordova side. I&#8217;m using Cordova 1.5 with Xcode 4.3.Here is what I have so far:swipe.js:var swipe={callNativeFunction: function (s<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/Ap4NA.jpg?s=32&amp;g=1\" \/><br \/>\nGooshan<br \/>\nplugins cordova build sencha-touch<br \/>\nI successfully add and then build a Sencha Touch app with Cordova plugins. However, when I decide to add a plugin later and then build again, the build fails. Is it so that you add plugins only before running sencha app build native or there is another issue. I get the following in console[INF] [shellscript] ** BUILD FAILED ** [INF] [shellscript] [INF] [shellscript] [INF] [shellscript] The following build commands failed: [INF] [shellscript] CompileC build\/swigmunk.build\/Debug-iphonesimul<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/YKZih.jpg?s=32&amp;g=1\" \/><br \/>\nAnas Azeem<br \/>\nplugins cordova worklight<br \/>\nI try to make a cordova plugin in IBM worklight.Javascript:HelloWorld = { sayHello: function (success, fail, resultType) { Cordova.exec( success, fail, &#8220;HelloWorld&#8221;, &#8220;HelloWorld&#8221;, [resultType]);} };function callFunction() {HelloWorld.sayHello(basarili, basarisiz, &#8220;sinan&#8221;); }Java:package com.Cordova1; import org.apache.cordova.api.CordovaPlugin; import org.json.JSONArray;import android.util.Log; public class HelloWorld extends CordovaPlugin {public boolean execute(String arg0, JSONArray arg1,<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/qav1H.jpg?s=32&amp;g=1\" \/><br \/>\nMatthew Xerri<br \/>\nplugins svn<br \/>\nI have a blog with all the plugins I need committed to an internal svn repository. WordPress is showing that some plugins need to be updated but when I do, WordPress will delete the folder for that plugin so the .svn files are deleted as well. This will break the repository for that plugin. Any way around this?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c534010006da1d80a2f43ba87b8bee40?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMild Fuzz<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3ab06cbbe8b6f904bc70c2aae39b1e43?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nglosrob<br \/>\nc# plugins dynamics-crm-2011 dynamics-crm crm<br \/>\nI am looking to build a fairly simple plug in that calculates the amount of &#8220;units&#8221; used &amp; remaining. I have two custom entites (Parent) bc_learninglicences &amp; ( Child) bc_llbalance, the plug &#8211; in fires on create of bc_llbalance and another for update. bc_llbalance: Containsbc_learninglicense (Look up field on parent entite bc_learninglicences \/ bc_name)bc_units (units that are used by this record)bc_learninglicences: Contains bc_namebc_unitsquantity (This is set to the total qty of units<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6bd72e91ca6e57e553998a9e5e1be593?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJonathan<br \/>\ndatabase wordpress plugins wordpress-plugin wordpress-plugin-dev<br \/>\nI&#8217;m currently writing a plugin for a customer, and while it&#8217;s usually working good, I found that dbDelta does not allow me to create the table I need on plugin activation.I&#8217;m running the below code to bind the activation function:register_activation_hook(__FILE__, &#8216;adminInstallation&#8217;);And this is the function itself:function adminInstallation(){global $wpdb;$objectEquipment = &#8216;wp_object_equipment&#8217;;$equipmentSQL = &#8220;CREATE TABLE &#8220;.$objectEquipment.&#8221; (id mediumint(9) NOT NULL AUTO_INCREMENT,name ti<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/bc10c7edd7524e1a05de670a3f0399a4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWill<br \/>\ngwt grails plugins module share<br \/>\nI have seen in different posts how GWT modules can be shared across different projects.E.g. How to use source code of one gwt application in to another applicationMy Case is a little more specific, as I&#8217;m having two Grails+GWT Plugins: projectA and projectB.projectA contains java beans in src\/java that are both used in the Grails services as well as in the src\/gwt code. I have defined a module.gwt.xml that contains the paths to my java beans, which my main module (EntryPoint.gwt.xml) inherits. T<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ca86c5f0e9b57ed160d00fe2f859b46e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\npoonam<br \/>\npython qgis plugins<br \/>\nI am working with python plugins for QGIS same as rt sql layer.I developed the plugin and copied into local repository *C:\\Documents and Settings\\comp90.qgis\\python\\plugins*. When i open QGIS exe,connection is established ans all the tables are listed.But when i try to open my query builder form,it gives me error sayingQDialog.__init__(self, parent) TypeError: QDialog(QWidget parent=None, Qt.WindowFlags flags=0): argument 1 has unexpected type &#8216;QgisInterface&#8217;My code of query builder form is a<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9daa9b4739a6e95078cbcfb624d7bb8e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDavid N. Welton<br \/>\njquery css iframe internet-explorer-8 ckeditor<br \/>\nThis works in Firefox and Chrome, but not in IE8.&lt;div class=&#8221;container&#8221;&gt;&lt;form action=&#8221;&#8221;&gt;&lt;textarea id=&#8221;myed&#8221; rows=&#8221;&#8221; cols=&#8221;&#8221;&gt;&lt;\/textarea&gt; &lt;\/form&gt;&lt;button id=&#8221;twiddle&#8221;&gt;Twiddle CSS&lt;\/button&gt;&lt;script type=&#8221;text\/javascript&#8221;&gt; $(document).ready(function() {CKEDITOR.replace(&#8216;myed&#8217;, {});$(&#8220;#twiddle&#8221;).click(function () {var oldstyle = $($($(&#8216;#myed&#8217;).parent().find(&#8216;iframe&#8217;)[0]).contents()[0]).find(&#8216;style&#8217;);$(oldstyle).append(&#8220;body { background-color: red; }&#8221;);});<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6af6c4c44575775210dca60bcc8eec47?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAndy<br \/>\nphp javascript ckeditor<br \/>\nI&#8217;m using Ckeditor version 3.1 within CakePHP 2.xI can get the editor to load and replace the textarea. The HTML is saved to the database with HTML formatting tags like this:&lt;p&gt; &lt;strong&gt;&amp;lt;p&amp;gt; This is a test&amp;lt;\/p&amp;gt; &lt;\/strong&gt;&lt;\/p&gt;When I insert that into the CkEditor I get the following appearing in the editor screen:&lt;p&gt; &lt;strong&gt;&amp;lt;p&amp;gt; This is a test&amp;lt;\/p&amp;gt; &lt;\/strong&gt;&lt;\/p&gt;If I use html_entity_decode prior to<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/2rDHJ.jpg?s=32&amp;g=1\" \/><br \/>\nAamir Shahzad<br \/>\njavascript html asp.net css3 ckeditor<br \/>\nI am using CKEditor asp.net page for allowing client to easily edit\/format text. Also i am using tabs option within CKEditor as shown in the fig. attached. But tabs are not working at all. Initially i have created tabs withJS. I thought it&#8217;s the JS that not working with CKEditor so i have chosen alternative solution using css3. But tabs are still not working in CKEditor. I have searched on CKEditor forum but unable to get good resource or help. For css3 I am using checkbox hidden through opacity<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cef6e5e6c34c61b6da403216f033d3a9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJosh<br \/>\njavascript ckeditor<br \/>\nWhen i am passing HTML to a CKEditor instance, a P tag is being inserted within the HTML producing unexpected results.For example, with the following code:CKEDITOR.instances[&#8220;myEditor&#8221;].setData(&#8220;&lt;div&gt;1&lt;\/div&gt;&lt;div&gt;2&lt;\/div&gt;&#8221;);the editor does not display them as block elements (it outputs as &#8220;12&#8221; inline). Calling getData() and i see the HTML is reformatted incorrectly as:&#8221;&lt;div&gt; &lt;p&gt;1&lt;\/div&gt;&lt;div&gt;2&lt;\/div&gt;&lt;\/p&gt; &#8221; I&#8217;ve played with the enterMode conf<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c032a0e8e40dd79b715420e4c5d03b00?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmeagar<br \/>\ndiv ckeditor carriage-return<br \/>\nI noticed that CkEditor has problems with using entermode br (mainly slowness after typing text for a long time).So I&#8217;m looking into the other entermodes (p and div).I see that entermode p is adviced by CkEditor.However, this introduces margins below the content, which is not desired (as the users are not used to typing paragraphs).So, I was thinking of using entermode div , which seems more correct in this case.However, I want to avoid introducing problems by using entermode div.Are there known<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/bc685c2925d132a056ba6f1b1d8ea9f1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nG.Martin<br \/>\nckeditor wysiwyg<br \/>\nI&#8217;ve got several sites up and running on Nginx, but no editor loads. Wysiwyg is configured properly with CKeditor downloaded and in the libraries directory.At this point I&#8217;m unsure if its something I&#8217;m missing, or something in my config that is blocking it.My current config: http:\/\/pastebin.com\/yreZ0kr1EDIT:I&#8217;ve uninstalled the WYSIWYG module, reinstalled it, and it cannot see CKeditor. If I paste the url into the address bar, I can access the CKeditor.js file directly.EDIT2:Found out that the<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/dd11cabc6f1779ffa658654bec8551db?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDan<br \/>\njavascript ios ckeditor<br \/>\nI suppose this is a more specific version of my recent question Browser-sniffing alternative for bugs\/misbehaviors (NOT lack of features). CKEditor is known not to work on certain clients like iOS Safari. Rather than use hackish browser detection, is there a way to see at runtime whether ckeditor will work on the current browser so that I can not load it or fall back to an alternative in case it won&#8217;t?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d1354e2a045df806012db8a473ac8beb?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTom van Enckevort<br \/>\nckeditor<br \/>\nBy default, CKEditor&#8217;s enter key behavior is adding a &lt;p&gt; tag and starting a new paragraph. But that behavior can be modified in the configuration with a .EnterMode parameter.I&#8217;m wondering if there is a way to change Enter key behavior in the runtime, by putting a button into its tool bar, to switch between &lt;p&gt; and &lt;br&gt; (single line vs double line), just like as in Word.Any ideas on how to do this?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fd5b1fc484a553856373b1e6b657dd62?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGreg Pete<br \/>\njavascript jquery html ckeditor<br \/>\nCan I change CKEditor&#8217;s autoGrow_maxHeight at runtime (jquery or etc)? I&#8217;ve tried CKEDITOR.replace (&#8216;editor1&#8217;, { autoGrow_maxHeight: x });And also destroying the instance before trying to recreate it, with a new maxHeight. I&#8217;m trying to keep the maxHeight to the height of the browser window (minus about 220 px of other stuff on the page). This is when I do the main replace of the text area:autoGrow_maxHeight: (window.innerHeight-220)This works for the initial creation of the editor. But the prob<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5192e7cbcf2f72a847d6fb0d1552f049?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njewelsea<br \/>\nwebview ckeditor javafx-2<br \/>\nI&#8217;m using a CKEditor 4.1.1 instance within my JavaFX apps&#8217; WebView. When i hit the paste-button of the editor, a window opens that tells me that the security settings of the browser prevent clipboard access.As the browser in this case is the WebViewcomponent, how can i alter the according settings to enable clipboard access?Test App:import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.web.WebView; import javafx.stage.Stage;public class SimpleWebView extends Appli<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shivam S.Kara javascript android phonegap plugins native-methods I am new on phonegap and android. I created a plugin in phonegap and android to call native function using javascrip.My coode is as below.plugin\/BannerLink.jsvar BannerLink = {callNativeFunction: function (success, fail, resultType) {\/\/alert(resultType);return Cordova.exec( success, fail,&#8221;org.apache.cordova.example.BannerLink&#8221;, &#8220;nativeFunction&#8221;, [resultType]);alert(resultType);} };My html view filefunction bannerPressed(link){alert(link.rel);\/\/window.location.href=link.rel;\/\/window.open(link. St\u00e9phane P\u00e9chard ios plugins cordova [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4172","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4172"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4172\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}