Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[Closed] Getting a value from iframe page on tinymce.

2 Posts
2 Users
0 Reactions
1,881 Views
Posts: 1
Topic starter
(@micheles)
New Member
Joined: 8 years ago

I want to get a value from included page if a button on the page is clicked to pop up box on tinymce plugin.

I try below codes. I have no idea how to make it possible because i am quite new to tinymce plugin. 

My plugin js file looks like,

 

tinymce.PluginManager.add('example2', function(editor, url) {
editor.addButton('example2', {
text: 'My button',
icon: false,
onclick: function() {
editor.windowManager.open({
title: 'TinyMCE site',
url: 'https://jsfiddle.net/sawnmichele021/mjsm11fm/1/embedded/result,js,css',
width: 400,
height: 300,
buttons: [{
text: 'Insert',
onclick: function(){
alert('hi');
}
}]

});

}
});
});
tinymce.init({
selector: "textarea",
plugins: "example2",
toolbar: "example2 undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
});

 

Could anybody else help me?

1 Reply
Robert
Posts: 10606
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi micheles,

wpForo uses WordPress TinyMCE editor. This is not our code. You should ask this question to WordPress or TinyMCE developers.