Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter 2porter

    (@2porter)

    Tried it again. Must be an explorer issue. Works fine in Firefox but consistently inserts to the top of the post in IE8
    Deactivated all other plugins- no change

    I do get this error message though

    Message: ‘postboxes’ is undefined
    Line: 17
    Char: 3
    Code: 0
    URI: http://mywebsite.com/wp-content/plugins/hrecipe/js/hrecipescript.js?ver=3.1.1

    2porter

    (@2porter)

    I uninstalled it and reinstalled and it worked fine. Whatever you updated worked for me so far. Although the plug-in didn’t indicate there was an update available, I now have a new version with the new editor icon

    2porter

    (@2porter)

    Ran the above javascript at http://www.jslint.com and the following errors came up
    Error:

    Problem at line 5 character 10: Expected exactly one space between ‘function’ and ‘(‘.

    (function() {

    Problem at line 7 character 1: Expected ‘tinymce’ at column 5, not column 1.

    tinymce.PluginManager.requireLangPack(‘hrecipe_plugin’);

    Problem at line 7 character 1: ‘tinymce’ is not defined.

    tinymce.PluginManager.requireLangPack(‘hrecipe_plugin’);

    Problem at line 9 character 1: Expected ‘tinymce’ at column 5, not column 1.

    tinymce.create(‘tinymce.plugins.hrecipe_plugin’, {

    Problem at line 9 character 1: ‘tinymce’ is not defined.

    tinymce.create(‘tinymce.plugins.hrecipe_plugin’, {

    Problem at line 10 character 5: Expected ‘getInfo’ at column 9, not column 5.

    getInfo : function() {

    Problem at line 10 character 23: Expected exactly one space between ‘function’ and ‘(‘.

    getInfo : function() {

    Problem at line 11 character 9: Expected ‘return’ at column 13, not column 9.

    return {

    Problem at line 12 character 13: Expected ‘longname’ at column 17, not column 13.

    longname : ‘hRecipe Support for Editor’,

    Problem at line 13 character 13: Expected ‘author’ at column 17, not column 13.

    author : ‘Dave Doolin’,

    Problem at line 14 character 13: Expected ‘authorurl’ at column 17, not column 13.

    authorurl : ‘http://website-in-a-weekend.net/’,

    Problem at line 15 character 13: Expected ‘infourl’ at column 17, not column 13.

    infourl : ‘http://website-in-a-weekend.net/’,

    Problem at line 16 character 13: Expected ‘version’ at column 17, not column 13.

    version : “0.1”

    Problem at line 17 character 9: Expected ‘}’ at column 13, not column 9.

    };

    Problem at line 18 character 5: Expected ‘}’ at column 9, not column 5.

    },

    Problem at line 20 character 5: Expected ‘init’ at column 9, not column 5.

    init : function(ed, url) {

    Problem at line 20 character 20: Expected exactly one space between ‘function’ and ‘(‘.

    init : function(ed, url) {

    Problem at line 21 character 9: Expected ‘ed’ at column 13, not column 9.

    ed.addButton(‘hrecipe_button’, {

    Problem at line 22 character 13: Expected ‘title’ at column 17, not column 13.

    title : ‘hrecipe_plugin.insertbutton’,

    Problem at line 23 character 13: Expected ‘image’ at column 17, not column 13.

    image : url + ‘/../starfull.gif’,

    Problem at line 24 character 13: Expected ‘onclick’ at column 17, not column 13.

    onclick : function () {

    Problem at line 25 character 17: Expected ‘edInsertHRecipe’ at column 21, not column 17.

    edInsertHRecipe();

    Problem at line 25 character 17: ‘edInsertHRecipe’ is not defined.

    edInsertHRecipe();

    Problem at line 26 character 13: Expected ‘}’ at column 17, not column 13.

    }

    Problem at line 27 character 9: Expected ‘}’ at column 13, not column 9.

    });

    Problem at line 28 character 5: Expected ‘}’ at column 9, not column 5.

    },

    Problem at line 30 character 5: Expected ‘createControl’ at column 9, not column 5.

    createControl : function (n, cm) {

    Problem at line 31 character 9: Expected ‘return’ at column 13, not column 9.

    return null;

    Problem at line 32 character 5: Expected ‘}’ at column 9, not column 5.

    }

    Problem at line 34 character 1: Expected ‘}’ at column 5, not column 1.

    });

    Problem at line 37 character 1: Expected ‘tinymce’ at column 5, not column 1.

    tinymce.PluginManager.add(‘hrecipe_plugin’, tinymce.plugins.hrecipe_plugin);

    Problem at line 37 character 1: ‘tinymce’ is not defined.

    tinymce.PluginManager.add(‘hrecipe_plugin’, tinymce.plugins.hrecipe_plugin);

    Problem at line 37 character 45: ‘tinymce’ is not defined.

    tinymce.PluginManager.add(‘hrecipe_plugin’, tinymce.plugins.hrecipe_plugin);

    Problem at line 38 character 76: Expected ‘(end)’ at column 1, not column 76.

    Problem at line 38 character 76: Expected ‘}’ to match ‘{‘ from line 5 and instead saw ‘(end)’.

    Problem at line 38 character 76: Unexpected space between ‘(end)’ and ‘(end)’.

    Problem at line 38 character 76: Expected ‘)’ to match ‘(‘ from line 5 and instead saw ‘(end)’.

    Problem at line 5 character 1: Do not wrap function literals in parens unless they are to be immediately invoked.

    (function() {

    Problem at line 38 character 76: Expected an assignment or function call and instead saw an expression.

    Problem at line 38 character 1: Expected ‘;’ and instead saw ‘(end)’.

    Implied global: tinymce 7,9,37, edInsertHRecipe 25

    2porter

    (@2porter)

    Hope this helps. error generated when clicking on icon

    Message: Object expected
    Line: 25
    Char: 5
    Code: 0
    URI: /wp-content/plugins/hrecipe/tinymceplugin/editor_plugin.js?ver=3393200

    Thread Starter 2porter

    (@2porter)

    Worked perfect. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)