tinymce

How to ignore html tags in tinymce | Vuejs and Laravel

本小妞迷上赌 提交于 2019-12-11 07:23:03
问题 I am building an application using laravel and vuejs but for some reason I cannot use tinymce properly. I see the editor as I want and write whatever I want in it. But when I try to view the content, all the html tags show as you can see in the image I installed it following the github documentation here npm install @tinymce/tinymce-vue Imported in my vue template import Editor from '@tinymce/tinymce-vue'; components: { 'editor' : Editor } And then I bind the element <editor v-model="post

Load file into tinyMCE editor

南笙酒味 提交于 2019-12-11 07:17:42
问题 I have a file picker and want to load HTML and XML files that are chosen into the tinyMCE editor textarea. I have the below code and it is not working. <script type="text/javascript"> tinymce.init({ selector: 'textarea', // change this value according to your HTML height: 400, browser_spellcheck: true, plugins: "code,table,textcolor,save,preview,searchreplace,advlist,textcolor,hr,fullscreen", toolbar: [ 'save | undo redo | styleselect | fontsizeselect | bold strikethrough italic forecolor

Problems with gecko_spellcheck in TinyMCE

独自空忆成欢 提交于 2019-12-11 07:15:51
问题 I want to prevent TinyMCE disabling gecko spellcheck. I've added gecko_spellcheck : true to config. It works fine, but when I type a new paragraph all highlights of previous paragraph are gone. Some illustrations: When I make right click on textarea and disable/enable spellchecking, all of errors are highlighted. How can I make TinyMCE always to highlight errors? 回答1: This is a problem that can be resolved. If you reset the tinymce iframe body everything that is spelled incorrectly gets

TinyMCE - undefined 'e','j','t' when loading for a second time in fancyboxm

╄→гoц情女王★ 提交于 2019-12-11 06:57:29
问题 Morning. I am currently trying to add a quick edit feature to my application. I have simply data passed using fancybox wich loads the appropriate data into tinymce. The problem being once i have closed the fancybox down for the first time and move onto the second item to edit and click, everything loads up ok visualy (including tinyMCE) but i cannot edit within the wysiwyg editor with firebug displaying undefined 'e' or 't' or 'd' whichever one it decides to show... any help would be muchly

How can I add custom bullets to tinyMCE?

不羁岁月 提交于 2019-12-11 06:45:17
问题 I want to add a few extra option to the bullets dropdown on tinyMCE, is that possible? I want to add ► type of bullet and different color options. (red, blue, etc...) 回答1: Yes. In your tinyMCE config, you need to specify: style_formats: [ { title: 'Custom Bullet', selector: 'ul', classes: 'custom1' } ], From there, you need to specify the styling in the CSS: .custom1 { list-style-image: url('custom1.png'); } See this for more info: https://www.tinymce.com/docs/configure/content-formatting/

Catch pressing button in plugin for tinyMCE

佐手、 提交于 2019-12-11 06:28:27
问题 I want to catch the event of some button was pressed. In TinyMCE capture click button event was suggested simple solution of how to do it, but for me it does not work. Could you please help. Here is my code in tinymce/plugins/test folder in editor_plugin_src.js and editor_plugin.js files: (function(){ tinymce.create("tinymce.plugins.testPlugin",{ init:function(ed,url){ ed.addCommand('my_bold', this.my_bold, this); //calls the function my_bold ed.onInit.add(function(editor) { if (editor

Remove “Browse” button from TinyMCE's “Insert Link” dialog when using MoxieManager

左心房为你撑大大i 提交于 2019-12-11 06:13:45
问题 I have correctly configured MoxieManager to be integrated with TinyMCE and all works fine. But I'd like to remove the "browse" button (which opens the MoxieManager dialog) from the "Insert link" dialog. So from the following screenshot, the green should stay but the red should go. 回答1: Self answer, but I guess it will be helpful to other people as well. Each TinyMCE plugin usually has a JS file located under plugins/[plugin_name]/plugin.js (or plugin.min.js, depending on if you are using the

How to enable multiple TinyMCE in the same form

人盡茶涼 提交于 2019-12-11 05:47:16
问题 I want to use 2 different textareas with tinyMCE in the same form. The first one works well but whenever I am adding the 2nd one, the 2nd one disabled (it enables when I enlarge it manually from bottom right corner). Their field name and id is different. Can anyone tell me how can I fix this problem? Thanks in advance. 回答1: Since there is no code from you we cant figure out where your problem is. Maybe to go a way around, init TinyMce for both Textareas over a class: <script type="text

using tinymce with blockui

六眼飞鱼酱① 提交于 2019-12-11 05:39:38
问题 What I want to do is grey out the my webpage background with blockUI, then open an tinymce on top. I can get this to work initially, but I open another tinymce dialog like to insert a link or edit the html source, the dialog opens but it's blocked. I'm wondering if there is a way to unblock this in blockUI. I've tried a few things but haven't been successful. Here is my current code: var editDiv="<div id='tMce'><p>"; editDiv+="<textarea style='width:90%;height:400px;' id='ed_"+theID+"'>"

TinyMCE stripping HTML

一笑奈何 提交于 2019-12-11 04:49:09
问题 Originally I thought the problem was with the iframe, but now I've realized the problem is with TinyMCE stripping HTML from the Text. I'm trying to make TinyMCE stop from stripping the iframe tags for me to save into the database. I tried to use the extended_valid_elements, but TinyMCE doesn't obey to the configuration and keep stripping the iframe's tags. I've been looking for 2 days already and I think i've missed something very basic because I just can't seem to find a solution, nor