AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

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

2 Posts
2 Users
0 Reactions
2,354 Views
Posts: 1
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@micheles)
New Member
Joined: 8 years ago
[#5317]

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: 10753
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months ago

Hi micheles,

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


Share: